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

Issue 101973005: SkDecodingImageGenerator now uses SkStreamRewindable (Closed)

Created:
7 years ago by hal.canary
Modified:
7 years ago
CC:
skia-review_googlegroups.com
Visibility:
Public.

Description

SkDecodingImageGenerator now uses SkStreamRewindable This makes sense since Android will be giving us a stream and the decoders expect a stream. This also removes some glue code, DecodeMemoryToTarget, that works better using a SkImageGenerator. Motivation: This is a necessary step to move from SkImageRef to SkDiscardablePixelRef. SkImageDecoder::DecodeMemoryToTarget function removed. BUG= R=reed@google.com, scroggo@google.com Committed: https://code.google.com/p/skia/source/detail?r=12560

Patch Set 1 #

Total comments: 10

Patch Set 2 : changes from bungeman #

Patch Set 3 : accurate comments + windows build fix #

Patch Set 4 : fix SkDWriteFontFileStream #

Patch Set 5 : fix assert on release #

Patch Set 6 : revert SkTypes change #

Patch Set 7 : remove SkData changes #

Patch Set 8 : remove SkStream changes #

Patch Set 9 : rebased again #

Unified diffs Side-by-side diffs Delta from patch set Stats (+236 lines, -195 lines) Patch
M include/core/SkImageDecoder.h View 1 chunk +0 lines, -27 lines 0 comments Download
M src/images/SkDecodingImageGenerator.h View 1 2 3 4 5 6 7 3 chunks +63 lines, -2 lines 0 comments Download
M src/images/SkDecodingImageGenerator.cpp View 1 2 3 4 5 6 7 2 chunks +173 lines, -14 lines 0 comments Download
M src/images/SkImageDecoder.cpp View 1 chunk +0 lines, -147 lines 0 comments Download
M src/ports/SkImageDecoder_empty.cpp View 1 1 chunk +0 lines, -5 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
hal.canary
7 years ago (2013-12-05 20:34:22 UTC) #1
bungeman-skia
https://codereview.chromium.org/101973005/diff/1/include/core/SkStream.h File include/core/SkStream.h (right): https://codereview.chromium.org/101973005/diff/1/include/core/SkStream.h#newcode133 include/core/SkStream.h:133: virtual SkData* getData() const { return NULL; } I ...
7 years ago (2013-12-05 21:03:44 UTC) #2
scroggo
lgtm https://codereview.chromium.org/101973005/diff/1/include/core/SkData.h File include/core/SkData.h (right): https://codereview.chromium.org/101973005/diff/1/include/core/SkData.h#newcode79 include/core/SkData.h:79: * You probably want to try stream->getData() first. ...
7 years ago (2013-12-05 21:07:18 UTC) #3
hal.canary
https://codereview.chromium.org/101973005/diff/1/include/core/SkData.h File include/core/SkData.h (right): https://codereview.chromium.org/101973005/diff/1/include/core/SkData.h#newcode79 include/core/SkData.h:79: * You probably want to try stream->getData() first. On ...
7 years ago (2013-12-05 22:29:29 UTC) #4
scroggo
lgtm
7 years ago (2013-12-06 16:09:47 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/halcanary@google.com/101973005/90001
7 years ago (2013-12-06 21:07:10 UTC) #6
commit-bot: I haz the power
Presubmit check for 101973005-90001 failed and returned exit status 1. Running presubmit commit checks ...
7 years ago (2013-12-06 21:07:14 UTC) #7
hal.canary
I removed changes to SkData and SkStream. If those should happen, they can happen in ...
7 years ago (2013-12-06 22:59:07 UTC) #8
reed1
lgtm
7 years ago (2013-12-09 13:01:20 UTC) #9
hal.canary
7 years ago (2013-12-09 13:45:08 UTC) #10
Message was sent while issue was closed.
Committed patchset #9 manually as r12560 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698