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

Unified Diff: cc/layers/layer.h

Issue 2846653002: cc : Stop pushing layers from hidden subtrees at commit
Patch Set: . Created 3 years, 8 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 | « no previous file | cc/layers/layer.cc » ('j') | cc/trees/layer_tree_host_common_unittest.cc » ('J')
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 5b21f5bc78a9ce8e9ff439a7e3cb1a30ead2dec9..40113f734e9765f2003a556ee1e230ed6817c631 100644
--- a/cc/layers/layer.h
+++ b/cc/layers/layer.h
@@ -391,6 +391,10 @@ class CC_EXPORT Layer : public base::RefCounted<Layer> {
return should_flatten_transform_from_property_tree_;
}
+ void SetIsHidden(bool is_hidden);
+
+ bool is_hidden() const { return is_hidden_; }
+
const gfx::Rect& visible_layer_rect_for_testing() const {
return visible_layer_rect_;
}
@@ -624,6 +628,7 @@ class CC_EXPORT Layer : public base::RefCounted<Layer> {
gfx::Vector2dF offset_to_transform_parent_;
bool should_flatten_transform_from_property_tree_ : 1;
bool draws_content_ : 1;
+ bool is_hidden_ : 1;
bool use_local_transform_for_backface_visibility_ : 1;
bool should_check_backface_visibility_ : 1;
bool force_render_surface_for_testing_ : 1;
« no previous file with comments | « no previous file | cc/layers/layer.cc » ('j') | cc/trees/layer_tree_host_common_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698