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

Issue 2018983003: cc: Use FilterOperations::MapRect in RenderSurfaceImpl::DrawableContentRect. (Closed)

Created:
4 years, 6 months ago by jbroman
Modified:
4 years, 6 months ago
Reviewers:
ajuma, Stephen White
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: Use FilterOperations::MapRect in RenderSurfaceImpl::DrawableContentRect. GetOutsets provided imprecise -- or possibly incorrect -- outsets for certain reference filters, such as <feOffset>. Instead RenderSurfaceImpl should explicitly specify that it wants forward mapping here. Also fix this to incorporate scale factors in the filter rect calculations (e.g. due to a high DPI display), and add unit tests. BUG=600821 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Committed: https://crrev.com/1c44d5b5ff7b1c422b75f2d68e409583db0a71bc Cr-Commit-Position: refs/heads/master@{#398126}

Patch Set 1 #

Total comments: 5

Patch Set 2 : high-dpi #

Total comments: 1

Patch Set 3 : adjust LayerTreeHostCommonTest.RenderSurfaceListForFilter #

Total comments: 1

Patch Set 4 : remove logging #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+69 lines, -4 lines) Patch
M cc/layers/render_surface_impl.cc View 1 3 1 chunk +5 lines, -3 lines 0 comments Download
M cc/trees/layer_tree_host_common_unittest.cc View 1 2 2 chunks +64 lines, -1 line 1 comment Download

Messages

Total messages: 23 (7 generated)
jbroman
On the continuing quest to kill GetOutsets. If this LGTY, I'll grab a cc owner ...
4 years, 6 months ago (2016-05-27 17:37:45 UTC) #3
jbroman
https://codereview.chromium.org/2018983003/diff/1/cc/layers/render_surface_impl.cc File cc/layers/render_surface_impl.cc (left): https://codereview.chromium.org/2018983003/diff/1/cc/layers/render_surface_impl.cc#oldcode80 cc/layers/render_surface_impl.cc:80: surface_content_rect.Inset(-left, -top, -right, -bottom); Output of the test before ...
4 years, 6 months ago (2016-05-27 17:43:48 UTC) #4
jbroman
ping
4 years, 6 months ago (2016-06-01 16:07:52 UTC) #5
Stephen White
LGTM
4 years, 6 months ago (2016-06-01 17:16:18 UTC) #6
Stephen White
https://codereview.chromium.org/2018983003/diff/1/cc/layers/render_surface_impl.cc File cc/layers/render_surface_impl.cc (right): https://codereview.chromium.org/2018983003/diff/1/cc/layers/render_surface_impl.cc#newcode79 cc/layers/render_surface_impl.cc:79: owning_layer_->filters().MapRect(surface_content_rect, SkMatrix::I()); Er, wait. Shouldn't we be using the ...
4 years, 6 months ago (2016-06-01 17:17:38 UTC) #7
jbroman
https://codereview.chromium.org/2018983003/diff/1/cc/layers/render_surface_impl.cc File cc/layers/render_surface_impl.cc (right): https://codereview.chromium.org/2018983003/diff/1/cc/layers/render_surface_impl.cc#newcode79 cc/layers/render_surface_impl.cc:79: owning_layer_->filters().MapRect(surface_content_rect, SkMatrix::I()); On 2016/06/01 at 17:17:38, Stephen White wrote: ...
4 years, 6 months ago (2016-06-01 19:38:01 UTC) #8
Stephen White
https://codereview.chromium.org/2018983003/diff/1/cc/layers/render_surface_impl.cc File cc/layers/render_surface_impl.cc (right): https://codereview.chromium.org/2018983003/diff/1/cc/layers/render_surface_impl.cc#newcode79 cc/layers/render_surface_impl.cc:79: owning_layer_->filters().MapRect(surface_content_rect, SkMatrix::I()); On 2016/06/01 19:38:00, jbroman wrote: > On ...
4 years, 6 months ago (2016-06-01 22:13:12 UTC) #9
jbroman
Ah, you're right, that rect does already have the DSF applied. Adjusted, with a unit ...
4 years, 6 months ago (2016-06-06 17:17:00 UTC) #12
jbroman
On 2016/06/06 at 17:17:00, jbroman wrote: > Yes, but the rectangle isn't in device space ...
4 years, 6 months ago (2016-06-06 17:17:36 UTC) #13
Stephen White
LGTM https://codereview.chromium.org/2018983003/diff/40001/cc/layers/render_surface_impl.cc File cc/layers/render_surface_impl.cc (right): https://codereview.chromium.org/2018983003/diff/40001/cc/layers/render_surface_impl.cc#newcode78 cc/layers/render_surface_impl.cc:78: LOG(ERROR) << "content_rect " << content_rect().ToString(); I'm assuming ...
4 years, 6 months ago (2016-06-06 17:27:03 UTC) #14
jbroman
On 2016/06/06 at 17:27:03, senorblanco wrote: > LGTM > > https://codereview.chromium.org/2018983003/diff/40001/cc/layers/render_surface_impl.cc > File cc/layers/render_surface_impl.cc (right): ...
4 years, 6 months ago (2016-06-06 17:33:06 UTC) #15
jbroman
4 years, 6 months ago (2016-06-06 17:34:30 UTC) #16
ajuma
lgtm https://codereview.chromium.org/2018983003/diff/60001/cc/trees/layer_tree_host_common_unittest.cc File cc/trees/layer_tree_host_common_unittest.cc (right): https://codereview.chromium.org/2018983003/diff/60001/cc/trees/layer_tree_host_common_unittest.cc#newcode1414 cc/trees/layer_tree_host_common_unittest.cc:1414: // (-60,-60 220x220). Thanks for adding this comment ...
4 years, 6 months ago (2016-06-06 18:08:21 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2018983003/60001
4 years, 6 months ago (2016-06-06 20:17:45 UTC) #20
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 6 months ago (2016-06-06 21:19:46 UTC) #21
commit-bot: I haz the power
4 years, 6 months ago (2016-06-06 21:22:03 UTC) #23
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/1c44d5b5ff7b1c422b75f2d68e409583db0a71bc
Cr-Commit-Position: refs/heads/master@{#398126}

Powered by Google App Engine
This is Rietveld 408576698