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

Unified Diff: cc/layers/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 | « cc/ipc/struct_traits_unittest.cc ('k') | cc/layers/layer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/layer.h
diff --git a/cc/layers/layer.h b/cc/layers/layer.h
index f6b419b959cfb8baab4a8176acecadae3eb5f009..7476721f4398567728754cba46cd6d140453d94e 100644
--- a/cc/layers/layer.h
+++ b/cc/layers/layer.h
@@ -268,6 +268,9 @@ class CC_EXPORT Layer : public base::RefCounted<Layer> {
inputs_.did_scroll_callback = std::move(callback);
}
+ void SetCacheRenderSurface(bool cache_render_surface);
+ bool cache_render_surface() const { return cache_render_surface_; }
+
void SetForceRenderSurfaceForTesting(bool force_render_surface);
bool force_render_surface_for_testing() const {
return force_render_surface_for_testing_;
@@ -637,6 +640,8 @@ class CC_EXPORT Layer : public base::RefCounted<Layer> {
bool should_flatten_transform_from_property_tree_ : 1;
bool draws_content_ : 1;
bool should_check_backface_visibility_ : 1;
+ // Force use of and cache render surface.
+ bool cache_render_surface_ : 1;
bool force_render_surface_for_testing_ : 1;
bool subtree_property_changed_ : 1;
bool may_contain_video_ : 1;
« no previous file with comments | « cc/ipc/struct_traits_unittest.cc ('k') | cc/layers/layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698