DescriptionAdd an option to create unpremultiplied bitmaps.
Currently they cannot be used directly by Skia, but
the pixels can be used elsewhere.
SkImageDecoder:
Add functions to require unpremultiplied output
and query the presence of the requirement
SkImageDecoder_libpng:
SkImageDecoder_libwebp:
SkImageDecoder_WIC:
Respect the requirement for unpremultiplied output.
TODO: Fix SkImageDecoder_CG.
SkScaledBitmapSampler:
Add procs to skip premultiplication and a boolean
parameter to use those procs.
ImageDecodingTest:
Test unpremultiplied bitmap decoding.
SampleUnpremul:
Add a sample which allows visually comparing between the
unpremultiplied version (copied into a premultiplied bitmap,
since drawing unpremultiplied is not currently supported)
and a premultiplied version of image files.
gm.h:
Add a getter for the resource path, so Samples can use it.
As of patch set 13, https://codereview.chromium.org/16816016/
and https://codereview.chromium.org/16983004/, which were
approved separately.
R=reed@google.com
Committed: https://code.google.com/p/skia/source/detail?r=9612
Patch Set 1 #Patch Set 2 : Continued work in progress. #Patch Set 3 : In progress... #Patch Set 4 : #Patch Set 5 : #Patch Set 6 : #
Total comments: 4
Patch Set 7 : Respond to comments #
Total comments: 5
Patch Set 8 : Add a benchmark #Patch Set 9 : ImageDecodeBench does no rendering. #
Total comments: 3
Patch Set 10 : Respond to comments. #Patch Set 11 : rebase #Patch Set 12 : Merge in issue 16983004 #Patch Set 13 : Merge in issue 16816016 #Patch Set 14 : Fix for andriod only code. #
Messages
Total messages: 12 (0 generated)
|