DescriptionAdd the ability to provide function pointers to SkPicture serialization
and deserialization for encoding and decoding bitmaps.
Remove kForceFlattenBitmapPixels_Flag, which is no longer used.
When an SkOrderedReadBuffer needs to read a bitmap, if it does not
have an image decoder, use a dummy bitmap.
In GM, add a tolerance option for color differences, used when
testing picture serialization, so it can assume two images are the
same even though PNG encoding/decoding may have resulted in small
differences.
Create dummy implementations for SkImageDecoder and SkImageEncoder
functions in SkImageDecoder_empty so that a project that does not
want to include the images project it can still build.
Allow ports to build without images project.
In Mac's image encoder, copy 4444 to 8888 before encoding.
Add SkWriter32::reservePad, to provide a pointer to write non 4 byte
aligned data, padded with zeroes.
In bench_ and render_ pictures, pass decode function to SkPicture
creation from a stream.
BUG=https://code.google.com/p/skia/issues/detail?id=842
Committed: https://code.google.com/p/skia/source/detail?r=5818
Patch Set 1 #
Total comments: 1
Patch Set 2 : #
Total comments: 10
Patch Set 3 : Respond to comments. #Patch Set 4 : Only copy from 4444 to 8888 for PNG encoding. #Patch Set 5 : Remove all dependency of core on images. #
Total comments: 2
Patch Set 6 : Add comments; pass Decode to render_ and bench_ pictures. #Patch Set 7 : Rebase; fix comment #
MessagesTotal messages: 10
|