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

Issue 1998233002: cc: Implement and use FilterOperations::MapRectReverse for mapping backdrop bounding box. (Closed)

Created:
4 years, 7 months ago by jbroman
Modified:
4 years, 5 months ago
CC:
cc-bugs_chromium.org, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

cc: Implement and use FilterOperations::MapRectReverse for mapping backdrop bounding box. This is more precise than GetFilterOutsets (e.g. in the case of an SVG <feOffset> filter), and more correct if a filter contains a scale, even by -1. BUG=600821 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Committed: https://crrev.com/ca9b612516efc2af1143c09a4d67f5b99e566c79 Cr-Commit-Position: refs/heads/master@{#402974}

Patch Set 1 #

Patch Set 2 : #

Total comments: 3

Patch Set 3 : hidpi fix, pixel tests #

Patch Set 4 : hidpi fix, pixel tests #

Patch Set 5 : allow for negative scale (due to framebuffer flipping) in gaussian blur calculation #

Total comments: 6

Patch Set 6 : #

Total comments: 2

Patch Set 7 : use SkImageFilter::MapDirection #

Patch Set 8 : unit test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+214 lines, -20 lines) Patch
M cc/output/filter_operation.h View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M cc/output/filter_operation.cc View 1 2 3 4 5 6 1 chunk +41 lines, -14 lines 0 comments Download
M cc/output/filter_operations.h View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M cc/output/filter_operations.cc View 1 2 3 4 5 6 1 chunk +10 lines, -0 lines 0 comments Download
M cc/output/filter_operations_unittest.cc View 1 2 3 4 5 6 7 5 chunks +71 lines, -0 lines 0 comments Download
M cc/output/gl_renderer.cc View 1 2 3 4 5 6 7 1 chunk +10 lines, -3 lines 0 comments Download
M cc/output/software_renderer.cc View 1 2 3 4 5 6 7 1 chunk +4 lines, -3 lines 0 comments Download
A cc/test/data/offset_background_filter_1x.png View 1 2 3 Binary file 0 comments Download
A cc/test/data/offset_background_filter_2x.png View 1 2 3 Binary file 0 comments Download
M cc/trees/layer_tree_host_pixeltest_filters.cc View 1 2 3 4 5 6 7 1 chunk +70 lines, -0 lines 0 comments Download

Messages

Total messages: 29 (8 generated)
jbroman
PTAL.
4 years, 6 months ago (2016-05-26 15:18:11 UTC) #3
jbroman
ping
4 years, 6 months ago (2016-06-01 16:07:41 UTC) #5
Stephen White
Perhaps a backdrop-filter layout test with hiDPI might be useful here. https://codereview.chromium.org/1998233002/diff/20001/cc/output/gl_renderer.cc File cc/output/gl_renderer.cc (right): ...
4 years, 6 months ago (2016-06-01 17:42:46 UTC) #6
jbroman
https://codereview.chromium.org/1998233002/diff/20001/cc/output/gl_renderer.cc File cc/output/gl_renderer.cc (right): https://codereview.chromium.org/1998233002/diff/20001/cc/output/gl_renderer.cc#newcode800 cc/output/gl_renderer.cc:800: quad->background_filters.MapRectReverse(backdrop_rect, SkMatrix::I()); On 2016/06/01 at 17:42:46, Stephen White wrote: ...
4 years, 6 months ago (2016-06-01 19:41:20 UTC) #7
Stephen White
On 2016/06/01 19:41:20, jbroman wrote: > https://codereview.chromium.org/1998233002/diff/20001/cc/output/gl_renderer.cc > File cc/output/gl_renderer.cc (right): > > https://codereview.chromium.org/1998233002/diff/20001/cc/output/gl_renderer.cc#newcode800 > ...
4 years, 6 months ago (2016-06-01 22:14:08 UTC) #8
jbroman
OK, PTAL (required fixing up a few other things). I'm particularly uneasy about dealing with ...
4 years, 6 months ago (2016-06-07 14:30:43 UTC) #9
Stephen White
https://codereview.chromium.org/1998233002/diff/80001/cc/output/filter_operation.cc File cc/output/filter_operation.cc (right): https://codereview.chromium.org/1998233002/diff/80001/cc/output/filter_operation.cc#newcode359 cc/output/filter_operation.cc:359: gfx::Rect FilterOperation::MapRectReverse(const gfx::Rect& rect, This looks awfully similar to ...
4 years, 6 months ago (2016-06-07 16:00:34 UTC) #10
jbroman
https://codereview.chromium.org/1998233002/diff/80001/cc/output/filter_operation.cc File cc/output/filter_operation.cc (right): https://codereview.chromium.org/1998233002/diff/80001/cc/output/filter_operation.cc#newcode359 cc/output/filter_operation.cc:359: gfx::Rect FilterOperation::MapRectReverse(const gfx::Rect& rect, On 2016/06/07 at 16:00:34, Stephen ...
4 years, 6 months ago (2016-06-08 15:17:37 UTC) #11
Stephen White
https://codereview.chromium.org/1998233002/diff/80001/cc/output/filter_operation.cc File cc/output/filter_operation.cc (right): https://codereview.chromium.org/1998233002/diff/80001/cc/output/filter_operation.cc#newcode364 cc/output/filter_operation.cc:364: float spreadX = std::abs(spread.x()); On 2016/06/08 15:17:37, jbroman wrote: ...
4 years, 6 months ago (2016-06-08 22:05:23 UTC) #12
jbroman
https://codereview.chromium.org/1998233002/diff/100001/cc/output/filter_operation.cc File cc/output/filter_operation.cc (right): https://codereview.chromium.org/1998233002/diff/100001/cc/output/filter_operation.cc#newcode320 cc/output/filter_operation.cc:320: enum class MapDirection { FORWARD, REVERSE }; On 2016/06/08 ...
4 years, 6 months ago (2016-06-13 14:57:33 UTC) #13
jbroman
4 years, 5 months ago (2016-06-23 15:22:07 UTC) #14
jbroman
senorblanco seems to be OOO; enne, do you have time to have a look?
4 years, 5 months ago (2016-06-27 19:59:17 UTC) #16
enne (OOO)
Looks good in general. Can you convince me that you're accumulating transformations in the right ...
4 years, 5 months ago (2016-06-27 20:59:33 UTC) #17
jbroman
added unit tests for a combination of filters which do not geometrically commute (Used a ...
4 years, 5 months ago (2016-06-29 20:38:29 UTC) #18
enne (OOO)
lgtm, thanks for the extra test!
4 years, 5 months ago (2016-06-29 20:43:13 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/1998233002/140001
4 years, 5 months ago (2016-06-29 20:49:52 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/194174)
4 years, 5 months ago (2016-06-29 21:59:17 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/1998233002/140001
4 years, 5 months ago (2016-06-29 22:11:23 UTC) #25
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 5 months ago (2016-06-29 23:04:45 UTC) #26
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-06-29 23:05:16 UTC) #27
commit-bot: I haz the power
4 years, 5 months ago (2016-06-29 23:06:22 UTC) #29
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/ca9b612516efc2af1143c09a4d67f5b99e566c79
Cr-Commit-Position: refs/heads/master@{#402974}

Powered by Google App Engine
This is Rietveld 408576698