DescriptionAdd SkPngChunkReader.
This class allows a client of SkCodec to read chunks in the data
stream that are not recognized by libpng. This is used by Android
to specify ninepatch data.
Taken from SkImageDecoder::Peeker. Modify the name of the class
and its method to be more specific to their use. Make
SkImageDecoder::Peeker a subclass of the new class, to help stage
the change in Android.
Add a test to verify that it works.
BUG=skia:4574
BUG=skia:3257
Committed: https://skia.googlesource.com/skia/+/3389e00136188800b98ca69488c0418c374fd78b
Committed: https://skia.googlesource.com/skia/+/cf98fa93116cf5efcc42d48c22fb4bd76896acdc
Patch Set 1 #Patch Set 2 : Peeker -> SkChunkReader, passed to constructor. #
Total comments: 5
Patch Set 3 : Rename to SkPngChunkReader. Remove unneeded include. #Patch Set 4 : Fix spacing #Patch Set 5 : Rebase #Patch Set 6 : Fix use after delete. #Patch Set 7 : Add test; stage #Patch Set 8 : Test rewinding; add dox #
Total comments: 7
Patch Set 9 : Put ChunkReader on the stack #Patch Set 10 : Update SkImageDecoder_empty #
Messages
Total messages: 29 (10 generated)
|