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

Issue 967833003: check for inputs before reporting asColorFilter (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 ComposeColorFilter in factory to collapse consecutive filters (when possible). Change asColorFilter to reflect its reliance on the new factory behavior. patch from issue 967143002 at patchset 80001 (http://crrev.com/967143002#ps80001) BUG=skia: Committed: https://skia.googlesource.com/skia/+/dac843bf046c2cd79fd955cb177aee241d7a4b0c

Patch Set 1 #

Patch Set 2 : use asserts in asColorFilter #

Total comments: 4

Patch Set 3 : restore (but reverse) brightness test #

Total comments: 9

Patch Set 4 : check for specifics of the combined colorfilters #

Total comments: 6

Patch Set 5 : fix comments in tests #

Patch Set 6 : rebase #

Patch Set 7 : check if the composecolorfilter succeeded #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+41 lines, -13 lines) Patch
M src/effects/SkColorFilterImageFilter.cpp View 1 2 3 4 5 6 2 chunks +12 lines, -7 lines 1 comment Download
M tests/ImageFilterTest.cpp View 1 2 3 4 2 chunks +29 lines, -6 lines 0 comments Download

Messages

Total messages: 28 (7 generated)
Stephen White
https://codereview.chromium.org/967833003/diff/20001/src/effects/SkColorFilterImageFilter.cpp File src/effects/SkColorFilterImageFilter.cpp (right): https://codereview.chromium.org/967833003/diff/20001/src/effects/SkColorFilterImageFilter.cpp#newcode25 src/effects/SkColorFilterImageFilter.cpp:25: if (!cropRect && input && input->asColorFilter(&inputCF)) { I'm not ...
5 years, 9 months ago (2015-03-04 19:38:37 UTC) #2
reed1
https://codereview.chromium.org/967833003/diff/20001/src/effects/SkColorFilterImageFilter.cpp File src/effects/SkColorFilterImageFilter.cpp (right): https://codereview.chromium.org/967833003/diff/20001/src/effects/SkColorFilterImageFilter.cpp#newcode25 src/effects/SkColorFilterImageFilter.cpp:25: if (!cropRect && input && input->asColorFilter(&inputCF)) { On 2015/03/04 ...
5 years, 9 months ago (2015-03-04 20:00:58 UTC) #3
reed1
ptal
5 years, 9 months ago (2015-03-04 20:03:31 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/967833003/40001
5 years, 9 months ago (2015-03-04 20:04:30 UTC) #6
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-04 20:04:30 UTC) #7
reed1
5 years, 9 months ago (2015-03-04 20:05:27 UTC) #9
robertphillips
https://codereview.chromium.org/967833003/diff/40001/tests/ImageFilterTest.cpp File tests/ImageFilterTest.cpp (right): https://codereview.chromium.org/967833003/diff/40001/tests/ImageFilterTest.cpp#newcode147 tests/ImageFilterTest.cpp:147: static SkImageFilter* make_blue(SkImageFilter* input, const SkImageFilter::CropRect* cropRect) { overlength ...
5 years, 9 months ago (2015-03-04 20:14:41 UTC) #10
Stephen White
https://codereview.chromium.org/967833003/diff/40001/src/effects/SkColorFilterImageFilter.cpp File src/effects/SkColorFilterImageFilter.cpp (right): https://codereview.chromium.org/967833003/diff/40001/src/effects/SkColorFilterImageFilter.cpp#newcode90 src/effects/SkColorFilterImageFilter.cpp:90: SkASSERT(1 == this->countInputs()); Nit: this seems kinda superfluous, since ...
5 years, 9 months ago (2015-03-04 20:26:17 UTC) #11
reed1
https://codereview.chromium.org/967833003/diff/40001/src/effects/SkColorFilterImageFilter.cpp File src/effects/SkColorFilterImageFilter.cpp (right): https://codereview.chromium.org/967833003/diff/40001/src/effects/SkColorFilterImageFilter.cpp#newcode90 src/effects/SkColorFilterImageFilter.cpp:90: SkASSERT(1 == this->countInputs()); On 2015/03/04 20:26:16, Stephen White wrote: ...
5 years, 9 months ago (2015-03-04 20:33:33 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/967833003/60001
5 years, 9 months ago (2015-03-04 20:34:42 UTC) #14
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-04 20:34:43 UTC) #15
robertphillips
lgtm + nits https://codereview.chromium.org/967833003/diff/60001/tests/ImageFilterTest.cpp File tests/ImageFilterTest.cpp (right): https://codereview.chromium.org/967833003/diff/60001/tests/ImageFilterTest.cpp#newcode154 tests/ImageFilterTest.cpp:154: { single _color matrix_ filter ? ...
5 years, 9 months ago (2015-03-04 20:39:49 UTC) #16
reed1
https://codereview.chromium.org/967833003/diff/60001/tests/ImageFilterTest.cpp File tests/ImageFilterTest.cpp (right): https://codereview.chromium.org/967833003/diff/60001/tests/ImageFilterTest.cpp#newcode154 tests/ImageFilterTest.cpp:154: { On 2015/03/04 20:39:48, robertphillips wrote: > single _color ...
5 years, 9 months ago (2015-03-04 20:45:25 UTC) #17
Stephen White
This change looks ok on its own, but I'm concerned about the GPU implementation of ...
5 years, 9 months ago (2015-03-04 20:53:27 UTC) #19
reed1
#1 sounds like a bug that already exists in the colormatrix frag. Those stages should ...
5 years, 9 months ago (2015-03-04 21:01:35 UTC) #20
Stephen White
On 2015/03/04 21:01:35, reed1 wrote: > #1 sounds like a bug that already exists in ...
5 years, 9 months ago (2015-03-04 21:09:30 UTC) #21
Stephen White
On 2015/03/04 21:09:30, Stephen White wrote: > On 2015/03/04 21:01:35, reed1 wrote: > > #1 ...
5 years, 9 months ago (2015-03-04 21:16:41 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/967833003/110001
5 years, 9 months ago (2015-03-05 18:16:54 UTC) #25
commit-bot: I haz the power
Committed patchset #7 (id:110001) as https://skia.googlesource.com/skia/+/dac843bf046c2cd79fd955cb177aee241d7a4b0c
5 years, 9 months ago (2015-03-05 18:22:23 UTC) #26
Stephen White
https://codereview.chromium.org/967833003/diff/110001/src/effects/SkColorFilterImageFilter.cpp File src/effects/SkColorFilterImageFilter.cpp (right): https://codereview.chromium.org/967833003/diff/110001/src/effects/SkColorFilterImageFilter.cpp#newcode94 src/effects/SkColorFilterImageFilter.cpp:94: // if we have an input, it is *not* ...
5 years, 9 months ago (2015-03-05 18:52:18 UTC) #27
reed1
5 years, 9 months ago (2015-03-05 22:47:20 UTC) #28
Message was sent while issue was closed.
A revert of this CL (patchset #7 id:110001) has been created in
https://codereview.chromium.org/978923005/ by reed@google.com.

The reason for reverting is: Need to suppress these for rebaselining, so
reverting for now.

Regressions: Unexpected image-only failures (5)
  css3/filters/effect-brightness-clamping-hw.html [ ImageOnlyFailure ]
  css3/filters/effect-combined-hw.html [ ImageOnlyFailure ]
  virtual/slimmingpaint/css3/filters/effect-brightness-clamping-hw.html [
ImageOnlyFailure ]
  virtual/slimmingpaint/css3/filters/effect-combined-hw.html [ ImageOnlyFailure
]
.

Powered by Google App Engine
This is Rietveld 408576698