DescriptionHandle SkStream::rewind properly.
include/core/SkStream.h:
Update documentation to state that rewinding a stream at the beginning
should return true. This is important because our decoders fail if
rewind returns false, assuming that the stream is not at the beginning.
src/images/SkImageDecoder_libpng.cpp:
If rewind fails, call png_error.
src/images/SkImageDecoder_libwebp.cpp:
If rewind fails, report an error and return false.
src/images/SkImageRef.cpp:
If rewind fails report an error and return false.
FIXME: Need to handle flattening properly. Should I perhaps move
writeStream into SkOrderedWriteBuffer?
src/images/SkJpegUtility.cpp:
Report a jpeg error on failure to rewind.
BUG=https://b.corp.google.com/issue?id=8432093
R=bungeman@google.com, djsollen@google.com, reed@google.com
Committed: https://code.google.com/p/skia/source/detail?r=10977
Patch Set 1 #
Total comments: 9
Patch Set 2 : Update comment. #Patch Set 3 : SkDEBUGF -> SkDebugf #Patch Set 4 : Improve comments in SkImageRef.cpp #Patch Set 5 : New comment for rewind. #
Total comments: 1
Patch Set 6 : More fine-tuning lawyer-ese. #
Total comments: 2
Patch Set 7 : More refinement. #
Total comments: 2
Patch Set 8 : Another comment rewrite. #
Messages
Total messages: 19 (0 generated)
|