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

Issue 982933002: Use ComposColorFilter to collaps hierarchy (when possible). (Closed)

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

Use ComposColorFilter to collaps hierarchy (when possible). Clarify asColorFilter ... 1. Rename to isColorFilterNode for DAG reduction 2. Add asAColorFilter for removing the imagefilter entirely (future use-case) Need layouttest rebaseline suppression before this can land in chrome... https://codereview.chromium.org/984023004/ BUG=skia: Committed: https://skia.googlesource.com/skia/+/cedc36f18b2254c5ee21f6348124886b6db4f4c2

Patch Set 1 #

Patch Set 2 : modify test, since we can't claim to be a colorfilter if we have an input #

Total comments: 1

Patch Set 3 : change name to isColorFilterNode, clarify the contract #

Total comments: 5

Patch Set 4 : manual rebase with revert of prev related change. #

Patch Set 5 : fix unused parameter warning #

Unified diffs Side-by-side diffs Delta from patch set Stats (+79 lines, -19 lines) Patch
M include/core/SkImageFilter.h View 1 2 3 4 2 chunks +27 lines, -1 line 0 comments Download
M include/effects/SkColorFilterImageFilter.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/core/SkImageFilter.cpp View 1 2 1 chunk +0 lines, -4 lines 0 comments Download
M src/effects/SkColorFilterImageFilter.cpp View 1 2 3 2 chunks +10 lines, -8 lines 0 comments Download
M tests/ImageFilterTest.cpp View 1 2 3 2 chunks +41 lines, -5 lines 0 comments Download

Messages

Total messages: 23 (6 generated)
reed1
5 years, 9 months ago (2015-03-05 19:14:40 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/982933002/20001
5 years, 9 months ago (2015-03-05 19:15:44 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, 9 months ago (2015-03-05 19:15:45 UTC) #5
Stephen White
https://codereview.chromium.org/982933002/diff/20001/src/effects/SkColorFilterImageFilter.cpp File src/effects/SkColorFilterImageFilter.cpp (right): https://codereview.chromium.org/982933002/diff/20001/src/effects/SkColorFilterImageFilter.cpp#newcode92 src/effects/SkColorFilterImageFilter.cpp:92: if (!this->cropRectIsSet() && !this->getInput(0)) { I think the getInput(0) ...
5 years, 9 months ago (2015-03-05 19:39:53 UTC) #6
reed1
If I'm a colorfilterimagefilter, but I also have an input, then If I return true ...
5 years, 9 months ago (2015-03-05 20:05:46 UTC) #7
reed1
Eureka! I think I understand the disconnect. I was treating asColorFilter to mean -- I ...
5 years, 9 months ago (2015-03-05 20:44:29 UTC) #8
Stephen White
On 2015/03/05 20:44:29, reed1 wrote: > Eureka! I think I understand the disconnect. > > ...
5 years, 9 months ago (2015-03-05 21:19:13 UTC) #9
reed1
ptal
5 years, 9 months ago (2015-03-05 22:21:16 UTC) #10
Stephen White
LGTM https://codereview.chromium.org/982933002/diff/40001/include/core/SkImageFilter.h File include/core/SkImageFilter.h (right): https://codereview.chromium.org/982933002/diff/40001/include/core/SkImageFilter.h#newcode160 include/core/SkImageFilter.h:160: return this->countInputs() > 0 && Nit: since the ...
5 years, 9 months ago (2015-03-06 15:07:16 UTC) #11
reed1
https://codereview.chromium.org/982933002/diff/40001/include/core/SkImageFilter.h File include/core/SkImageFilter.h (right): https://codereview.chromium.org/982933002/diff/40001/include/core/SkImageFilter.h#newcode160 include/core/SkImageFilter.h:160: return this->countInputs() > 0 && On 2015/03/06 15:07:16, Stephen ...
5 years, 9 months ago (2015-03-06 16:05:51 UTC) #12
reed1
https://codereview.chromium.org/982933002/diff/40001/include/core/SkImageFilter.h File include/core/SkImageFilter.h (right): https://codereview.chromium.org/982933002/diff/40001/include/core/SkImageFilter.h#newcode297 include/core/SkImageFilter.h:297: return false; On 2015/03/06 15:07:16, Stephen White wrote: > ...
5 years, 9 months ago (2015-03-06 16:08:00 UTC) #13
Stephen White
https://codereview.chromium.org/982933002/diff/40001/include/core/SkImageFilter.h File include/core/SkImageFilter.h (right): https://codereview.chromium.org/982933002/diff/40001/include/core/SkImageFilter.h#newcode160 include/core/SkImageFilter.h:160: return this->countInputs() > 0 && On 2015/03/06 16:05:50, reed1 ...
5 years, 9 months ago (2015-03-06 16:15:49 UTC) #14
reed1
The prev change was reverted (just due to need to suppress layoutchanges (which were fine), ...
5 years, 9 months ago (2015-03-06 16:18:46 UTC) #15
reed1
On 2015/03/06 16:15:49, Stephen White wrote: > https://codereview.chromium.org/982933002/diff/40001/include/core/SkImageFilter.h > File include/core/SkImageFilter.h (right): > > https://codereview.chromium.org/982933002/diff/40001/include/core/SkImageFilter.h#newcode160 ...
5 years, 9 months ago (2015-03-06 16:19:46 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/982933002/80001
5 years, 9 months ago (2015-03-06 16:40:20 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/982933002/80001
5 years, 9 months ago (2015-03-08 11:37:18 UTC) #22
commit-bot: I haz the power
5 years, 9 months ago (2015-03-08 11:42:56 UTC) #23
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://skia.googlesource.com/skia/+/cedc36f18b2254c5ee21f6348124886b6db4f4c2

Powered by Google App Engine
This is Rietveld 408576698