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

Issue 1226023003: Remove SkImageGenerator pieces only for SkCodec. (Closed)

Created:
5 years, 5 months ago by scroggo_chromium
Modified:
5 years, 5 months ago
Reviewers:
scroggo, reed1
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@severIG
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Remove SkImageGenerator pieces only for SkCodec. Follow up to the split between SkImageGenerator and SkCodec. Now that SkCodec does not inherit from SkImageGenerator, SkImageGenerator no longer needs Options or Result, which were added for SkCodec. Remove them, but keep them behind a flag, since Chromium has its own subclasses of SkImageGenerator which assume the old signature for onGetPixels. Committed: https://skia.googlesource.com/skia/+/5315fd4761a3c510dfff834a84e71e4c471951f9

Patch Set 1 #

Total comments: 2

Patch Set 2 : Rebase (just in case) #

Patch Set 3 : Change the public interface without staging it. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+131 lines, -50 lines) Patch
M include/core/SkImageGenerator.h View 1 2 5 chunks +13 lines, -4 lines 0 comments Download
M src/core/SkImageGenerator.cpp View 1 2 3 chunks +31 lines, -18 lines 0 comments Download
M src/images/SkDecodingImageGenerator.cpp View 5 chunks +38 lines, -0 lines 0 comments Download
M src/lazy/SkCachingPixelRef.cpp View 1 2 1 chunk +3 lines, -9 lines 0 comments Download
M src/lazy/SkDiscardablePixelRef.cpp View 1 2 1 chunk +6 lines, -12 lines 0 comments Download
M src/ports/SkImageGenerator_skia.cpp View 3 chunks +20 lines, -4 lines 0 comments Download
M tests/CachedDecodingPixelRefTest.cpp View 2 chunks +20 lines, -3 lines 0 comments Download

Messages

Total messages: 12 (2 generated)
scroggo
Where do we land the flag in Chromium? This might be a tricky transition due ...
5 years, 5 months ago (2015-07-08 18:53:13 UTC) #2
reed1
seems like we should land the #define in chrome's SkUserConfig.h first, before this CL.
5 years, 5 months ago (2015-07-08 19:01:40 UTC) #3
scroggo_chromium
On 2015/07/08 19:01:40, reed1 wrote: > seems like we should land the #define in chrome's ...
5 years, 5 months ago (2015-07-09 15:19:57 UTC) #4
reed1
https://codereview.chromium.org/1226023003/diff/1/include/core/SkImageGenerator.h File include/core/SkImageGenerator.h (right): https://codereview.chromium.org/1226023003/diff/1/include/core/SkImageGenerator.h#newcode178 include/core/SkImageGenerator.h:178: bool getPixels(const SkImageInfo& info, void* pixels, size_t rowBytes, Can ...
5 years, 5 months ago (2015-07-09 15:26:45 UTC) #5
scroggo
https://codereview.chromium.org/1226023003/diff/1/include/core/SkImageGenerator.h File include/core/SkImageGenerator.h (right): https://codereview.chromium.org/1226023003/diff/1/include/core/SkImageGenerator.h#newcode178 include/core/SkImageGenerator.h:178: bool getPixels(const SkImageInfo& info, void* pixels, size_t rowBytes, On ...
5 years, 5 months ago (2015-07-09 15:51:59 UTC) #6
reed1
Even if there are some in chrome you could still do #ifdef LEGACY void oldGetPixels... ...
5 years, 5 months ago (2015-07-09 15:53:35 UTC) #7
scroggo
On 2015/07/09 15:53:35, reed1 wrote: > Even if there are some in chrome you could ...
5 years, 5 months ago (2015-07-09 15:55:24 UTC) #8
reed1
lgtm
5 years, 5 months ago (2015-07-09 15:57:24 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1226023003/40001
5 years, 5 months ago (2015-07-09 15:58:27 UTC) #11
commit-bot: I haz the power
5 years, 5 months ago (2015-07-09 16:08:03 UTC) #12
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://skia.googlesource.com/skia/+/5315fd4761a3c510dfff834a84e71e4c471951f9

Powered by Google App Engine
This is Rietveld 408576698