Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1531)

Issue 4079048: [PDF] Support image alpha channel plus a couple small fixes. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 10 months ago by Steve VanDeBogart
Modified:
13 years, 10 months ago
Reviewers:
reed1
CC:
skia-review_googlegroups.com
Base URL:
http://skia.googlecode.com/svn/trunk
Visibility:
Public.

Description

[PDF] Support image alpha channel plus a couple small fixes. Fix bug in rendering paths with cubic segments. Only compress data if the compressed size is smaller than the uncompressed size. Committed: http://code.google.com/p/skia/source/detail?r=747

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+248 lines, -67 lines) Patch
M include/pdf/SkPDFImage.h View 2 chunks +32 lines, -9 lines 0 comments Download
M src/pdf/SkPDFDevice.cpp View 3 chunks +5 lines, -1 line 0 comments Download
M src/pdf/SkPDFGraphicState.cpp View 1 chunk +1 line, -1 line 1 comment Download
M src/pdf/SkPDFImage.cpp View 11 chunks +205 lines, -55 lines 0 comments Download
M src/pdf/SkPDFStream.cpp View 1 chunk +5 lines, -1 line 0 comments Download

Messages

Total messages: 2
Steve VanDeBogart
13 years, 10 months ago (2011-01-29 02:02:47 UTC) #1
reed1
13 years, 10 months ago (2011-01-29 16:42:55 UTC) #2
Looks like a lot of new code around image extraction. It will be fun to write
some good gm/ tests for this.

LGTM

http://codereview.appspot.com/4079048/diff/1/src/pdf/SkPDFGraphicState.cpp
File src/pdf/SkPDFGraphicState.cpp (right):

http://codereview.appspot.com/4079048/diff/1/src/pdf/SkPDFGraphicState.cpp#ne...
src/pdf/SkPDFGraphicState.cpp:88: new SkPDFScalar(fPaint.getAlpha()/maxAlpha);
This works assuming scalar==float. The more portable way to express this is
either:

SkIntToScalar(fPaint.getAlpha()) / 0xFF;

or

fPaint.getAlpha() * SkScalarInvert(0xFF)
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b