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

Unified Diff: cc/layers/layer.h

Issue 2873593002: Force use of and cache render surface. (Closed)
Patch Set: Created 3 years, 7 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: cc/layers/layer.h
diff --git a/cc/layers/layer.h b/cc/layers/layer.h
index 4debc46d83335be4ba9f89de9bae9ffe42d59afc..8778926985d2cacd99c7aac7e0e5b87fc0444d1f 100644
--- a/cc/layers/layer.h
+++ b/cc/layers/layer.h
@@ -252,10 +252,8 @@ class CC_EXPORT Layer : public base::RefCounted<Layer> {
inputs_.did_scroll_callback = callback;
}
- void SetForceRenderSurfaceForTesting(bool force_render_surface);
- bool force_render_surface_for_testing() const {
- return force_render_surface_for_testing_;
- }
+ void SetForceRenderSurface(bool force_render_surface);
+ bool force_render_surface() const { return force_render_surface_; }
gfx::ScrollOffset CurrentScrollOffset() const {
return inputs_.scroll_offset;
@@ -622,7 +620,7 @@ class CC_EXPORT Layer : public base::RefCounted<Layer> {
bool draws_content_ : 1;
bool use_local_transform_for_backface_visibility_ : 1;
bool should_check_backface_visibility_ : 1;
- bool force_render_surface_for_testing_ : 1;
+ bool force_render_surface_ : 1;
bool subtree_property_changed_ : 1;
bool may_contain_video_ : 1;
bool is_scroll_clip_layer_ : 1;
« no previous file with comments | « cc/ipc/cc_param_traits.cc ('k') | cc/layers/layer.cc » ('j') | cc/output/direct_renderer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698