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

Issue 1840303006: Use Blink's computed filterPrimitiveSubregion() as CropRect (Closed)

Created:
4 years, 8 months ago by Stephen White
Modified:
4 years, 8 months ago
Reviewers:
f(malita)
CC:
chromium-reviews, krit, pdr+graphicswatchlist_chromium.org, drott+blinkwatch_chromium.org, blink-reviews-platform-graphics_chromium.org, dshwang, jbroman, Justin Novosad, Rik, Stephen Chennney, blink-reviews, f(malita), danakj+watch_chromium.org, kinuko+watch, rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use Blink's computed filterPrimitiveSubregion() as CropRect. For filters which affect transparent black, we were falling back to Skia's clip rect to know which pixels to fill. This works for SVG, where we set the clip rect to the filter region. However, this is not possible for CSS filters on HTML content, where there may be multiple reference filters with different filter regions, so we don't actually set a clip rect at all. The easiest fix is to set the crop rect unconditionally for all filters with a non-empty filter primitive subregion (aka all reference filters), which is what we do here. This also gets us closer to being able to removing the individual crop edges from Skia. This has minor pixel diffs in the affected tests. BUG=599933 Committed: https://crrev.com/0abb8cd84553174c24442b173f63110198145e81 Cr-Commit-Position: refs/heads/master@{#385031}

Patch Set 1 #

Patch Set 2 : Update to ToT #

Patch Set 3 : Update to ToT; simplify; add test suppressions #

Patch Set 4 : Mark more tests for rebaseline #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -18 lines) Patch
M third_party/WebKit/LayoutTests/TestExpectations View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/filters/FilterEffect.h View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/filters/FilterEffect.cpp View 1 2 1 chunk +6 lines, -16 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 22 (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/1840303006/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1840303006/20001
4 years, 8 months ago (2016-04-02 15:55:52 UTC) #2
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/205995)
4 years, 8 months ago (2016-04-02 16:56:08 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1840303006/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1840303006/40001
4 years, 8 months ago (2016-04-04 21:01:46 UTC) #6
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1840303006/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1840303006/60001
4 years, 8 months ago (2016-04-04 21:04:13 UTC) #8
Stephen White
Florin: PTAL. Thanks!
4 years, 8 months ago (2016-04-04 21:13:15 UTC) #13
f(malita)
LGTM
4 years, 8 months ago (2016-04-04 21:21:20 UTC) #14
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-04 22:22:01 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1840303006/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1840303006/60001
4 years, 8 months ago (2016-04-04 22:24:02 UTC) #18
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 8 months ago (2016-04-04 22:33:08 UTC) #20
commit-bot: I haz the power
4 years, 8 months ago (2016-04-04 22:34:36 UTC) #22
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/0abb8cd84553174c24442b173f63110198145e81
Cr-Commit-Position: refs/heads/master@{#385031}

Powered by Google App Engine
This is Rietveld 408576698