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

Unified Diff: cc/layers/layer.h

Issue 1231453002: Compute if a layer is clipped outside CalcDrawProps (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: is_clipped moved from draw_properties to layer Created 5 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 | « no previous file | cc/layers/layer.cc » ('j') | cc/trees/property_tree_builder.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 3ff2810c9d630f30d7b24ca0b75f66a28a906f6c..e338a6abd0a7c5086336d31e4b4d9324abdd3c4e 100644
--- a/cc/layers/layer.h
+++ b/cc/layers/layer.h
@@ -500,6 +500,14 @@ class CC_EXPORT Layer : public base::RefCounted<Layer>,
return should_flatten_transform_from_property_tree_;
}
+ void set_is_clipped_from_property_tree(bool is_clipped) {
+ is_clipped_from_property_tree_ = is_clipped;
+ SetNeedsPushProperties();
+ }
+ bool is_clipped_from_property_tree() const {
+ return is_clipped_from_property_tree_;
+ }
+
// TODO(vollick): These values are temporary and will be removed as soon as
// render surface determinations are moved out of CDP. They only exist because
// certain logic depends on whether or not a layer would render to a separate
@@ -698,6 +706,7 @@ class CC_EXPORT Layer : public base::RefCounted<Layer>,
int num_children_with_scroll_parent_;
gfx::Vector2dF offset_to_transform_parent_;
bool should_flatten_transform_from_property_tree_ : 1;
+ bool is_clipped_from_property_tree_ : 1;
bool should_scroll_on_main_thread_ : 1;
bool have_wheel_event_handlers_ : 1;
bool have_scroll_event_handlers_ : 1;
« no previous file with comments | « no previous file | cc/layers/layer.cc » ('j') | cc/trees/property_tree_builder.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698