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

Issue 1075243003: Implementing filling for SkBmpCodec (Closed)

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

Description

Implementing filling for SkBmpCodec The bmp codec currently returns kIncompleteInput when the stream is truncated, which we treat as a partial success. However, we neglect the fill the remaining pixels in the image, leaving these uninitialized. This CL addresses this problem by initializing the remaining pixels in the image to default values. BUG=skia:3257 Committed: https://skia.googlesource.com/skia/+/3c309db75bb8c4c2b58724a0e2f6f3b387ca842c

Patch Set 1 #

Total comments: 4

Patch Set 2 : Redesign of Fill() #

Total comments: 4

Patch Set 3 : Sharing code in static helper #

Unified diffs Side-by-side diffs Delta from patch set Stats (+107 lines, -47 lines) Patch
M src/codec/SkCodec_libbmp.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M src/codec/SkCodec_libbmp.cpp View 1 2 8 chunks +45 lines, -8 lines 0 comments Download
M src/codec/SkCodec_libgif.cpp View 1 2 chunks +3 lines, -3 lines 0 comments Download
M src/codec/SkSwizzler.h View 1 3 chunks +18 lines, -4 lines 0 comments Download
M src/codec/SkSwizzler.cpp View 1 2 chunks +14 lines, -18 lines 0 comments Download
M tests/SwizzlerTest.cpp View 1 3 chunks +17 lines, -12 lines 0 comments Download
M tools/dm_flags.py View 1 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (9 generated)
msarett
5 years, 8 months ago (2015-04-10 17:58:54 UTC) #4
scroggo
Is there a test? (Or an image to be added to DM?) https://codereview.chromium.org/1075243003/diff/40001/src/codec/SkSwizzler.cpp File src/codec/SkSwizzler.cpp ...
5 years, 8 months ago (2015-04-10 18:12:43 UTC) #5
msarett
Fill() now takes a dstStartRow and numRows as parameters. SwizzlerTest has been updated and test ...
5 years, 8 months ago (2015-04-10 20:52:56 UTC) #10
scroggo
lgtm https://codereview.chromium.org/1075243003/diff/140001/src/codec/SkCodec_libbmp.cpp File src/codec/SkCodec_libbmp.cpp (right): https://codereview.chromium.org/1075243003/diff/140001/src/codec/SkCodec_libbmp.cpp#newcode1135 src/codec/SkCodec_libbmp.cpp:1135: void* dstStart = (kTopDown_RowOrder == fRowOrder) ? nit: ...
5 years, 8 months ago (2015-04-10 21:08:32 UTC) #11
msarett
https://codereview.chromium.org/1075243003/diff/140001/src/codec/SkCodec_libbmp.cpp File src/codec/SkCodec_libbmp.cpp (right): https://codereview.chromium.org/1075243003/diff/140001/src/codec/SkCodec_libbmp.cpp#newcode1135 src/codec/SkCodec_libbmp.cpp:1135: void* dstStart = (kTopDown_RowOrder == fRowOrder) ? On 2015/04/10 ...
5 years, 8 months ago (2015-04-10 21:22:32 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1075243003/160001
5 years, 8 months ago (2015-04-10 21:23:28 UTC) #15
commit-bot: I haz the power
5 years, 8 months ago (2015-04-10 21:36:56 UTC) #16
Message was sent while issue was closed.
Committed patchset #3 (id:160001) as
https://skia.googlesource.com/skia/+/3c309db75bb8c4c2b58724a0e2f6f3b387ca842c

Powered by Google App Engine
This is Rietveld 408576698