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

Unified Diff: ui/compositor/layer.h

Issue 2873593002: Force use of and cache render surface. (Closed)
Patch Set: 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: ui/compositor/layer.h
diff --git a/ui/compositor/layer.h b/ui/compositor/layer.h
index 89602807c8cfc58626b3b81f10f9e7de684fc8e4..0bd2faedf395a46e523719cc1b1909d022202749 100644
--- a/ui/compositor/layer.h
+++ b/ui/compositor/layer.h
@@ -405,6 +405,12 @@ class COMPOSITOR_EXPORT Layer
return frame_size_in_dip_;
}
+ // Force use of render surface. Note that this also disables
+ // occlusion culling in favor of efficient caching. This should
+ // only be used when paying the cost of creating a render
+ // surface even if layer is invisible is not a problem.
+ void SetForceRenderSurface(bool force);
danakj 2017/05/09 14:56:54 This seems like something the Layer should set whe
reveman 2017/05/09 15:49:25 The main use-case is to enable this when animating
danakj 2017/05/09 15:51:51 Background filters are implemented via a separate
reveman 2017/05/10 13:06:17 Animations for now sounds good. There might be som
wutao 2017/05/11 19:36:35 Acknowledged.
+
private:
friend class LayerOwner;
class LayerMirror;

Powered by Google App Engine
This is Rietveld 408576698