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

Unified Diff: ui/compositor/layer.h

Issue 2873593002: Force use of and cache render surface. (Closed)
Patch Set: Fix test to init has_damage_from_contributing_content_. Created 3 years, 5 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 9cf998d9a8e7bf036d601b56c734ec45253b99e6..5ab924eb7edee5a85d16fe5bbef47a87287adba6 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.
reveman 2017/07/14 19:36:27 This explains it perfectly. Thanks!
+ void SetCacheRenderSurface(bool cache_render_surface);
+
private:
friend class LayerOwner;
class LayerMirror;

Powered by Google App Engine
This is Rietveld 408576698