| Index: ui/compositor/layer.h
|
| diff --git a/ui/compositor/layer.h b/ui/compositor/layer.h
|
| index 10533a94c933c5236518cfd07316287863f3b45a..b6277eae3800094efc7a397045413c3ebec7fd8e 100644
|
| --- a/ui/compositor/layer.h
|
| +++ b/ui/compositor/layer.h
|
| @@ -411,6 +411,12 @@ class COMPOSITOR_EXPORT Layer
|
| return frame_size_in_dip_;
|
| }
|
|
|
| + // Force use of and cache 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 SetCacheRenderSurface(bool cache_render_surface);
|
| +
|
| private:
|
| friend class LayerOwner;
|
| class LayerMirror;
|
|
|