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

Issue 980903002: Option for SkCodec to treat dst as all zeroes. (Closed)

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

Description

Option for SkCodec to treat dst as all zeroes. This recreates SkImageDecoder's feature to skip writing zeroes for SkCodec. Committed: https://skia.googlesource.com/skia/+/9552662e9fee5eb0ef435e52ab9db505d7ebe4ad

Patch Set 1 #

Total comments: 2

Patch Set 2 : Pass ZeroInitialized to getPixels in Options. #

Total comments: 5

Patch Set 3 : Rebase #

Patch Set 4 : Update SkBmpCodec to use new ZeroInitialized API. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+94 lines, -32 lines) Patch
M gyp/skia_for_chromium_defines.gypi View 1 1 chunk +1 line, -0 lines 0 comments Download
M include/codec/SkCodec.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M include/core/SkImageGenerator.h View 1 4 chunks +38 lines, -2 lines 0 comments Download
M src/codec/SkCodec_libbmp.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/codec/SkCodec_libbmp.cpp View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M src/codec/SkCodec_libpng.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M src/codec/SkCodec_libpng.cpp View 1 2 2 chunks +4 lines, -4 lines 0 comments Download
M src/codec/SkSwizzler.h View 1 2 2 chunks +10 lines, -9 lines 0 comments Download
M src/codec/SkSwizzler.cpp View 1 2 3 chunks +6 lines, -4 lines 0 comments Download
M src/core/SkImageGenerator.cpp View 1 4 chunks +21 lines, -4 lines 0 comments Download
M src/images/SkDecodingImageGenerator.cpp View 1 2 chunks +3 lines, -2 lines 0 comments Download
M src/lazy/SkDiscardablePixelRef.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M src/ports/SkImageGenerator_skia.cpp View 1 1 chunk +1 line, -0 lines 0 comments Download
M tests/CachedDecodingPixelRefTest.cpp View 1 1 chunk +1 line, -0 lines 0 comments Download
M tests/DrawBitmapRectTest.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 13 (3 generated)
scroggo
https://codereview.chromium.org/980903002/diff/1/include/codec/SkCodec.h File include/codec/SkCodec.h (right): https://codereview.chromium.org/980903002/diff/1/include/codec/SkCodec.h#newcode54 include/codec/SkCodec.h:54: enum ZeroInitialized { I decided to go with ZeroInitialized ...
5 years, 9 months ago (2015-03-05 16:12:23 UTC) #2
scroggo
PTAL
5 years, 9 months ago (2015-03-05 21:25:11 UTC) #3
reed1
can we chat about this tomorrow?
5 years, 9 months ago (2015-03-05 22:20:06 UTC) #4
scroggo
On 2015/03/05 22:20:06, reed1 wrote: > can we chat about this tomorrow? Sure. I just ...
5 years, 9 months ago (2015-03-05 22:30:55 UTC) #5
scroggo
As discussed in our meeting this morning, I moved ZeroInitialized to getPixels. PTAL.
5 years, 9 months ago (2015-03-06 19:44:07 UTC) #6
djsollen
https://codereview.chromium.org/980903002/diff/20001/include/core/SkImageGenerator.h File include/core/SkImageGenerator.h (right): https://codereview.chromium.org/980903002/diff/20001/include/core/SkImageGenerator.h#newcode18 include/core/SkImageGenerator.h:18: //#define SK_SUPPORT_LEGACY_OPTIONLESS_GET_PIXELS remove this https://codereview.chromium.org/980903002/diff/20001/include/core/SkImageGenerator.h#newcode146 include/core/SkImageGenerator.h:146: ZeroInitialized fZeroInitialized; I ...
5 years, 9 months ago (2015-03-06 20:41:57 UTC) #7
scroggo
https://codereview.chromium.org/980903002/diff/20001/include/core/SkImageGenerator.h File include/core/SkImageGenerator.h (right): https://codereview.chromium.org/980903002/diff/20001/include/core/SkImageGenerator.h#newcode18 include/core/SkImageGenerator.h:18: //#define SK_SUPPORT_LEGACY_OPTIONLESS_GET_PIXELS On 2015/03/06 20:41:56, djsollen wrote: > remove ...
5 years, 9 months ago (2015-03-06 20:54:25 UTC) #8
djsollen
lgtm https://codereview.chromium.org/980903002/diff/20001/include/core/SkImageGenerator.h File include/core/SkImageGenerator.h (right): https://codereview.chromium.org/980903002/diff/20001/include/core/SkImageGenerator.h#newcode146 include/core/SkImageGenerator.h:146: ZeroInitialized fZeroInitialized; The API as it stands is ...
5 years, 9 months ago (2015-03-06 21:14:49 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/980903002/60001
5 years, 9 months ago (2015-03-17 11:55:40 UTC) #12
commit-bot: I haz the power
5 years, 9 months ago (2015-03-17 12:02:21 UTC) #13
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://skia.googlesource.com/skia/+/9552662e9fee5eb0ef435e52ab9db505d7ebe4ad

Powered by Google App Engine
This is Rietveld 408576698