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

Unified Diff: ui/compositor/layer.h

Issue 2873593002: Force use of and cache render surface. (Closed)
Patch Set: Rebased to resolve conflict. 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
« no previous file with comments | « components/viz/service/display/surface_aggregator_unittest.cc ('k') | ui/compositor/layer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/layer.h
diff --git a/ui/compositor/layer.h b/ui/compositor/layer.h
index 7feab9bbd4bb11d53998ee4fa24e69a68488a7b3..b84e2fca50788973a3d37b978640298791745176 100644
--- a/ui/compositor/layer.h
+++ b/ui/compositor/layer.h
@@ -418,6 +418,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;
« no previous file with comments | « components/viz/service/display/surface_aggregator_unittest.cc ('k') | ui/compositor/layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698