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

Issue 1908173006: allow imagefilter to manage CTM decomposition (Closed)

Created:
4 years, 8 months ago by reed1
Modified:
4 years, 8 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

Patch Set 1 #

Patch Set 2 : add unittest #

Total comments: 2

Patch Set 3 : switch to simple canHandleAffine pattern #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+63 lines, -2 lines) Patch
M include/core/SkImageFilter.h View 1 2 2 chunks +9 lines, -0 lines 1 comment Download
M include/effects/SkColorFilterImageFilter.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M src/core/SkCanvas.cpp View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M src/core/SkImageFilter.cpp View 1 2 1 chunk +18 lines, -0 lines 3 comments Download
M src/effects/SkColorFilterImageFilter.cpp View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M tests/ImageFilterTest.cpp View 1 2 1 chunk +28 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (12 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1908173006/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1908173006/1
4 years, 8 months ago (2016-04-23 12:08:10 UTC) #3
reed1
4 years, 8 months ago (2016-04-23 12:11:25 UTC) #5
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-23 12:21:01 UTC) #7
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1908173006/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1908173006/20001
4 years, 8 months ago (2016-04-23 12:38:48 UTC) #9
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-23 12:52:19 UTC) #11
f(malita)
lgtm https://codereview.chromium.org/1908173006/diff/20001/include/core/SkImageFilter.h File include/core/SkImageFilter.h (right): https://codereview.chromium.org/1908173006/diff/20001/include/core/SkImageFilter.h#newcode218 include/core/SkImageFilter.h:218: bool decomposeCTM(const SkMatrix& ctm, SkMatrix* filterMatrix, SkMatrix* remainder) ...
4 years, 8 months ago (2016-04-23 14:12:50 UTC) #12
reed1
simpler approach, canHandleAffine https://codereview.chromium.org/1908173006/diff/20001/include/core/SkImageFilter.h File include/core/SkImageFilter.h (right): https://codereview.chromium.org/1908173006/diff/20001/include/core/SkImageFilter.h#newcode218 include/core/SkImageFilter.h:218: bool decomposeCTM(const SkMatrix& ctm, SkMatrix* filterMatrix, ...
4 years, 8 months ago (2016-04-23 19:41:58 UTC) #13
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1908173006/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1908173006/40001
4 years, 8 months ago (2016-04-23 19:42:13 UTC) #15
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-23 19:57:23 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1908173006/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1908173006/40001
4 years, 8 months ago (2016-04-23 22:18:11 UTC) #20
commit-bot: I haz the power
Committed patchset #3 (id:40001) as https://skia.googlesource.com/skia/+/bb34a8ac59850f128d9602e629a7475e3ad1a9d2
4 years, 8 months ago (2016-04-23 22:19:13 UTC) #22
Stephen White
https://codereview.chromium.org/1908173006/diff/40001/include/core/SkImageFilter.h File include/core/SkImageFilter.h (right): https://codereview.chromium.org/1908173006/diff/40001/include/core/SkImageFilter.h#newcode223 include/core/SkImageFilter.h:223: bool canHandleAffine() const { return this->onCanHandleAffine(); } <bikeshed> Could ...
4 years, 8 months ago (2016-04-25 14:09:34 UTC) #24
reed1
4 years, 8 months ago (2016-04-25 14:13:35 UTC) #25
Message was sent while issue was closed.
https://codereview.chromium.org/1908173006/diff/40001/src/core/SkImageFilter.cpp
File src/core/SkImageFilter.cpp (right):

https://codereview.chromium.org/1908173006/diff/40001/src/core/SkImageFilter....
src/core/SkImageFilter.cpp:333: bool SkImageFilter::onCanHandleAffine() const {
On 2016/04/25 14:09:34, Stephen White wrote:
> Wouldn't it be simpler to have (non-virtual) canHandleAffine do the recursion,
> and make onCanHandleAffine non-recursive? That would keep the subclasses
> simpler. Is there a node which needs to control the recursion beyond "I can't
> handle affine transforms; abort"?

Good idea! See follow-on CL https://codereview.chromium.org/1915943002/

Powered by Google App Engine
This is Rietveld 408576698