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

Issue 1407603003: Fix SkSwizzler bug (Closed)

Created:
5 years, 2 months ago by msarett
Modified:
5 years, 2 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

Fix SkSwizzler bug Now, that we are subsetting, fX0 is not necessarily less than fSrcWidth (since fSrcWidth is really the subset width). Ex: We may want a 10 pixel subset starting twenty pixels from the left edge. In that case, fX0=20 and fSrcWidth=10. Let's rename the width as fSubsetWidth to avoid confusion and remove the check. BUG=skia: Committed: https://skia.googlesource.com/skia/+/80803ff615e4293e8af2dc5d094a1f4fa81ec396

Patch Set 1 #

Patch Set 2 : Response to comments #

Total comments: 6

Patch Set 3 : Added test and rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+37 lines, -16 lines) Patch
M src/codec/SkMaskSwizzler.h View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M src/codec/SkMaskSwizzler.cpp View 1 2 2 chunks +6 lines, -6 lines 0 comments Download
M src/codec/SkSwizzler.h View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M src/codec/SkSwizzler.cpp View 1 2 2 chunks +7 lines, -6 lines 0 comments Download
M tests/CodexTest.cpp View 1 2 1 chunk +20 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 12 (4 generated)
msarett
Sorry, I meant to commit this with the partial scanlines CL.
5 years, 2 months ago (2015-10-13 22:03:30 UTC) #3
scroggo
> Now, that we are subsetting, fX0 is not necessarily greater than > fSrcWidth. I ...
5 years, 2 months ago (2015-10-14 14:20:24 UTC) #4
msarett
On 2015/10/14 14:20:24, scroggo wrote: > > Now, that we are subsetting, fX0 is not ...
5 years, 2 months ago (2015-10-15 21:43:13 UTC) #5
scroggo
Can you add a test for this? Otherwise, lgtm https://codereview.chromium.org/1407603003/diff/40001/src/codec/SkMaskSwizzler.cpp File src/codec/SkMaskSwizzler.cpp (right): https://codereview.chromium.org/1407603003/diff/40001/src/codec/SkMaskSwizzler.cpp#newcode380 src/codec/SkMaskSwizzler.cpp:380: ...
5 years, 2 months ago (2015-10-16 13:36:17 UTC) #6
msarett
PTAL Sorry about the rebase. Somehow the branch I was on was so old that ...
5 years, 2 months ago (2015-10-16 17:36:52 UTC) #8
scroggo
LGTM
5 years, 2 months ago (2015-10-16 17:42:44 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1407603003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1407603003/80001
5 years, 2 months ago (2015-10-16 17:44:39 UTC) #11
commit-bot: I haz the power
5 years, 2 months ago (2015-10-16 17:54:15 UTC) #12
Message was sent while issue was closed.
Committed patchset #3 (id:80001) as
https://skia.googlesource.com/skia/+/80803ff615e4293e8af2dc5d094a1f4fa81ec396

Powered by Google App Engine
This is Rietveld 408576698