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

Unified Diff: cc/trees/draw_property_utils.cc

Issue 2873593002: Force use of and cache render surface. (Closed)
Patch Set: Calculate damage of |force_render_surface|. 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 43120259e3db8674761c76254eedd46c3418a0a0..a91d9318178e2cef0fc9a6ef1770486ed5c6d1c0 100644
--- a/cc/trees/draw_property_utils.cc
+++ b/cc/trees/draw_property_utils.cc
@@ -562,9 +562,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()) {
weiliangc 2017/06/07 21:19:01 I don't think this is where "force no clip" should
wutao 2017/06/09 02:31:33 Done.
+ // 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