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

Issue 1927413002: Correctly handle damage involving filters in SurfaceAggregator (Closed)

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

Description

Correctly handle damage involving filters in SurfaceAggregator There are two main issues with the handling of damage of contents affected by RenderPassDrawQuad filters: 1) Damage of a small part of a source Surface can affect a large part of the destination and 2) To draw damage on the destination, an unexpectedly large portion of the source must be used. To deal with these, the SurfaceAggregator must keep track of all output render passes affected by filters. Any Surface in an affected RenderPass will cause its parent Surface to be completely damaged (handling #1 above). To handle #2, affected RenderPasses will have their damage rects set to contain the entire output_rect. Then DirectRenderer can use that damage rect to determine what to draw. CopyRequests can also cause areas outside the damage rect to be read, so any RenderPass inside a CopyRequest (directly or indirectly) will have its damage rect set to the output rect. This system is very pessimistic about what should be drawn, but in general it shouldn't affect that many cases and should always be correct. BUG=602941 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Committed: https://crrev.com/575a9b96a2b2776a6a4ae81f2e20c2bf3e975250 Cr-Commit-Position: refs/heads/master@{#391733}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 2

Patch Set 5 : #

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+259 lines, -45 lines) Patch
M cc/output/direct_renderer.cc View 1 2 1 chunk +4 lines, -17 lines 0 comments Download
M cc/surfaces/surface_aggregator.h View 1 2 4 chunks +21 lines, -2 lines 0 comments Download
M cc/surfaces/surface_aggregator.cc View 1 2 3 4 13 chunks +113 lines, -18 lines 0 comments Download
M cc/surfaces/surface_aggregator_unittest.cc View 1 2 5 chunks +114 lines, -8 lines 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 2 3 4 5 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (7 generated)
jbauman
4 years, 7 months ago (2016-05-03 21:54:45 UTC) #4
piman
lgtm https://codereview.chromium.org/1927413002/diff/60001/cc/surfaces/surface_aggregator.cc File cc/surfaces/surface_aggregator.cc (right): https://codereview.chromium.org/1927413002/diff/60001/cc/surfaces/surface_aggregator.cc#newcode567 cc/surfaces/surface_aggregator.cc:567: if (frame_data->render_pass_list.size()) { nit: !frame_data->render_pass_list.empty() https://codereview.chromium.org/1927413002/diff/60001/cc/surfaces/surface_aggregator.cc#newcode600 cc/surfaces/surface_aggregator.cc:600: if ...
4 years, 7 months ago (2016-05-03 23:01:12 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1927413002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1927413002/100001
4 years, 7 months ago (2016-05-05 01:46:45 UTC) #8
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 7 months ago (2016-05-05 02:19:22 UTC) #10
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/575a9b96a2b2776a6a4ae81f2e20c2bf3e975250 Cr-Commit-Position: refs/heads/master@{#391733}
4 years, 7 months ago (2016-05-05 02:20:21 UTC) #12
Stephen White
FYI: filters do have a method, SkImageFilter::filterBounds(), for mapping a rect in both directions. If ...
4 years, 7 months ago (2016-05-05 03:03:15 UTC) #13
jbauman
4 years, 7 months ago (2016-05-09 21:20:43 UTC) #14
Message was sent while issue was closed.
A revert of this CL (patchset #6 id:100001) has been created in
https://codereview.chromium.org/1963693003/ by jbauman@chromium.org.

The reason for reverting is: Seems to cause rendering issues on mac.

BUG=610181.

Powered by Google App Engine
This is Rietveld 408576698