Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(533)

Issue 23477009: Change SkImageDecoders to take an SkStreamRewindable. (Closed)

Created:
7 years, 3 months ago by scroggo
Modified:
7 years, 2 months ago
CC:
skia-review_googlegroups.com
Visibility:
Public.

Description

Change SkImageDecoders to take an SkStreamRewindable. Only affects factories, static functions that will use the factories, and subset decoding, which all require rewinding. The decoders themselves continue to take an SkStream. This is merely documentation stating which functions will possibly rewind the passed in SkStream. This is part of the general change to coordinate SkStreams with Android's streams, which don't necessarily support rewinding in all cases. Update callers to use SkStreamRewindable. BUG=skia:1572 R=bungeman@google.com, reed@google.com Committed: https://code.google.com/p/skia/source/detail?r=11460

Patch Set 1 : Remove accidental whitespace change #

Total comments: 4

Patch Set 2 : Rebase #

Patch Set 3 : Fix a small overfix. #

Patch Set 4 : Only switch to SkStreamRewindable when necessary. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+109 lines, -104 lines) Patch
M include/core/SkImageDecoder.h View 1 2 3 10 chunks +14 lines, -13 lines 0 comments Download
M include/images/SkImageRef.h View 4 chunks +6 lines, -5 lines 0 comments Download
M include/images/SkImageRef_GlobalPool.h View 2 chunks +3 lines, -2 lines 0 comments Download
M include/images/SkMovie.h View 2 chunks +2 lines, -2 lines 0 comments Download
M samplecode/SamplePicture.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/animator/SkDrawBitmap.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/images/SkImageDecoder.cpp View 1 2 3 3 chunks +6 lines, -5 lines 0 comments Download
M src/images/SkImageDecoder_FactoryDefault.cpp View 1 1 chunk +4 lines, -4 lines 0 comments Download
M src/images/SkImageDecoder_FactoryRegistrar.cpp View 1 2 chunks +4 lines, -4 lines 0 comments Download
M src/images/SkImageDecoder_libbmp.cpp View 1 2 3 3 chunks +3 lines, -3 lines 0 comments Download
M src/images/SkImageDecoder_libgif.cpp View 1 2 3 3 chunks +3 lines, -3 lines 0 comments Download
M src/images/SkImageDecoder_libico.cpp View 1 2 3 3 chunks +3 lines, -3 lines 0 comments Download
M src/images/SkImageDecoder_libjpeg.cpp View 1 2 3 6 chunks +7 lines, -7 lines 0 comments Download
M src/images/SkImageDecoder_libpng.cpp View 1 2 3 7 chunks +11 lines, -11 lines 0 comments Download
M src/images/SkImageDecoder_libwebp.cpp View 1 2 3 4 chunks +4 lines, -4 lines 0 comments Download
M src/images/SkImageDecoder_wbmp.cpp View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M src/images/SkImageRef.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M src/images/SkImageRef_GlobalPool.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M src/images/SkImageRef_ashmem.h View 2 chunks +2 lines, -2 lines 0 comments Download
M src/images/SkImageRef_ashmem.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M src/images/SkMovie.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/images/SkMovie_gif.cpp View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M src/ports/SkImageDecoder_CG.cpp View 1 2 3 6 chunks +6 lines, -8 lines 0 comments Download
M src/ports/SkImageDecoder_WIC.cpp View 1 2 3 5 chunks +6 lines, -8 lines 0 comments Download
M src/ports/SkImageDecoder_empty.cpp View 1 2 3 5 chunks +6 lines, -5 lines 0 comments Download
M src/utils/win/SkIStream.cpp View 2 chunks +4 lines, -0 lines 0 comments Download
M tests/ImageDecodingTest.cpp View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
scroggo
7 years, 3 months ago (2013-08-28 19:11:09 UTC) #1
reed1
Knowing nothing about streams... lgtm
7 years, 3 months ago (2013-08-28 19:19:39 UTC) #2
bungeman-skia
It seems somewhat interesting that now we have the SkFrontBufferedStream which could fit between SkStream ...
7 years, 3 months ago (2013-09-19 16:15:49 UTC) #3
scroggo
After uploading patch set 3, it occurred to me that this change is larger than ...
7 years, 2 months ago (2013-09-25 20:25:09 UTC) #4
bungeman-skia
Patch Set 4 lgtm
7 years, 2 months ago (2013-09-25 20:37:50 UTC) #5
scroggo
7 years, 2 months ago (2013-09-25 21:34:42 UTC) #6
Message was sent while issue was closed.
Committed patchset #4 manually as r11460 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698