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

Unified Diff: cc/trees/draw_property_utils.cc

Issue 2873593002: Force use of and cache render surface. (Closed)
Patch Set: Fix for patch 1. Created 3 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/draw_property_utils.cc
diff --git a/cc/trees/draw_property_utils.cc b/cc/trees/draw_property_utils.cc
index 15535c53448ed3030494b59e025a7dccaada694f..98f8d002f67d60fa0ef33baa22f68fc9eb962892 100644
--- a/cc/trees/draw_property_utils.cc
+++ b/cc/trees/draw_property_utils.cc
@@ -555,9 +555,13 @@ static void SetSurfaceIsClipped(const ClipTree& clip_tree,
is_clipped = false;
} else if (render_surface->ClipTreeIndex() ==
render_surface->render_target()->ClipTreeIndex()) {
- // There is no clip between between the render surface and its target, so
+ // There is no clip between the render surface and its target, so
// the surface need not be clipped.
is_clipped = false;
+ } else if (render_surface->ForceRenderSurface()) {
+ // Avoid clipping when force use of render surface. We might need the whole
+ // surface during some animations.
+ is_clipped = false;
} else {
// If the clips between the render surface and its target only expand the
// clips and do not apply any new clip, we need not clip the render surface.

Powered by Google App Engine
This is Rietveld 408576698