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; |