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

Unified Diff: cc/trees/layer_tree_host_impl.cc

Issue 1966073002: Reland: Correctly handle damage involving filters in SurfaceAggregator (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: cc/trees/layer_tree_host_impl.cc
diff --git a/cc/trees/layer_tree_host_impl.cc b/cc/trees/layer_tree_host_impl.cc
index 89e1ebb179cce05fffe452724bca7143f55ae8a7..97852176f80da1697da3ce3e18ad66f2df08d3a9 100644
--- a/cc/trees/layer_tree_host_impl.cc
+++ b/cc/trees/layer_tree_host_impl.cc
@@ -819,6 +819,13 @@ DrawResult LayerTreeHostImpl::CalculateRenderPasses(
render_surface->AppendRenderPasses(frame);
}
+ // Damage rects for non-root passes aren't meaningful, so set them to be
+ // equal to the output rect.
+ for (size_t i = 0; i + 1 < frame->render_passes.size(); ++i) {
+ RenderPass* pass = frame->render_passes[i].get();
+ pass->damage_rect = pass->output_rect;
+ }
+
// When we are displaying the HUD, change the root damage rect to cover the
// entire root surface. This will disable partial-swap/scissor optimizations
// that would prevent the HUD from updating, since the HUD does not cause
« cc/surfaces/surface_aggregator.cc ('K') | « cc/surfaces/surface_aggregator_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698