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

Issue 1402133002: change back to method for localmatrix imagefilter (Closed)

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

Description

change back to method for localmatrix imagefilter This method is different from MatrixFilter, in that MatrixFilter does not require a pre-existing filter, but LocalM does. Also change the comment to be more general, as there is no promise that we return a different subclass, and certainly not a specific subclass. This pattern of obj->newWithModifiers() also more closely matches the pattern in SkImage (newSubset). BUG=skia: Committed: https://skia.googlesource.com/skia/+/94dd7a52d3fe0632cd830f2e9cd14103c2726aac

Patch Set 1 #

Total comments: 1

Patch Set 2 : add comment for const-cast #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -12 lines) Patch
M gm/localmatriximagefilter.cpp View 1 chunk +1 line, -2 lines 0 comments Download
M include/core/SkImageFilter.h View 1 chunk +6 lines, -7 lines 0 comments Download
M src/core/SkImageFilter.cpp View 1 1 chunk +5 lines, -3 lines 0 comments Download

Messages

Total messages: 14 (5 generated)
reed1
ptal I didn't notice the api change last night when I reviewed the prev. CL. ...
5 years, 2 months ago (2015-10-14 14:23:41 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1402133002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1402133002/1
5 years, 2 months ago (2015-10-14 14:23:52 UTC) #4
commit-bot: I haz the power
Note for Reviewers: The CQ is waiting for an approval. If you believe that the ...
5 years, 2 months ago (2015-10-14 14:23:53 UTC) #5
Stephen White
https://codereview.chromium.org/1402133002/diff/1/src/core/SkImageFilter.cpp File src/core/SkImageFilter.cpp (right): https://codereview.chromium.org/1402133002/diff/1/src/core/SkImageFilter.cpp#newcode444 src/core/SkImageFilter.cpp:444: return SkLocalMatrixImageFilter::Create(matrix, const_cast<SkImageFilter*>(this)); Could we make this method non-const, ...
5 years, 2 months ago (2015-10-14 14:26:31 UTC) #7
reed1
On 2015/10/14 14:26:31, Stephen White wrote: > https://codereview.chromium.org/1402133002/diff/1/src/core/SkImageFilter.cpp > File src/core/SkImageFilter.cpp (right): > > https://codereview.chromium.org/1402133002/diff/1/src/core/SkImageFilter.cpp#newcode444 ...
5 years, 2 months ago (2015-10-14 14:28:10 UTC) #8
Stephen White
OK, LGTM.
5 years, 2 months ago (2015-10-14 14:29:21 UTC) #9
reed1
I'll add a comment to this effect at the site of the cast, so the ...
5 years, 2 months ago (2015-10-14 14:32:11 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1402133002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1402133002/20001
5 years, 2 months ago (2015-10-14 14:37:20 UTC) #13
commit-bot: I haz the power
5 years, 2 months ago (2015-10-14 14:49:37 UTC) #14
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://skia.googlesource.com/skia/+/94dd7a52d3fe0632cd830f2e9cd14103c2726aac

Powered by Google App Engine
This is Rietveld 408576698