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

Unified Diff: cc/layers/layer_impl.cc

Issue 1715973002: cc: Move tracking of layer_property_changed to main thread (3) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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/layers/layer_impl.h ('k') | cc/layers/layer_proto_converter_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/layer_impl.cc
diff --git a/cc/layers/layer_impl.cc b/cc/layers/layer_impl.cc
index a938515c011eda9e9eddc741a310fe279a8ebcaa..b2a17f9ab7ec45b2090519f4a499f774d79594b2 100644
--- a/cc/layers/layer_impl.cc
+++ b/cc/layers/layer_impl.cc
@@ -62,7 +62,6 @@ LayerImpl::LayerImpl(LayerTreeImpl* tree_impl,
MainThreadScrollingReason::kNotScrollingOnMain),
user_scrollable_horizontal_(true),
user_scrollable_vertical_(true),
- stacking_order_changed_(false),
double_sided_(true),
should_flatten_transform_(true),
should_flatten_transform_from_property_tree_(false),
@@ -610,7 +609,6 @@ void LayerImpl::PushPropertiesTo(LayerImpl* layer) {
update_rect_.Union(layer->update_rect());
layer->SetUpdateRect(update_rect_);
- layer->SetStackingOrderChanged(stacking_order_changed_);
layer->SetDebugInfo(debug_info_);
if (frame_timing_requests_dirty_) {
@@ -619,7 +617,6 @@ void LayerImpl::PushPropertiesTo(LayerImpl* layer) {
}
// Reset any state that should be cleared for the next update.
- stacking_order_changed_ = false;
layer_property_changed_ = false;
update_rect_ = gfx::Rect();
needs_push_properties_ = false;
@@ -686,13 +683,6 @@ base::DictionaryValue* LayerImpl::LayerTreeAsJson() const {
return result;
}
-void LayerImpl::SetStackingOrderChanged(bool stacking_order_changed) {
- if (stacking_order_changed) {
- stacking_order_changed_ = true;
- NoteLayerPropertyChangedForSubtree();
- }
-}
-
bool LayerImpl::LayerPropertyChanged() const {
if (layer_property_changed_)
return true;
@@ -1269,7 +1259,6 @@ void LayerImpl::SetTransformAndInvertibility(const gfx::Transform& transform,
}
transform_ = transform;
transform_is_invertible_ = transform_is_invertible;
- NoteLayerPropertyChangedForSubtree();
}
bool LayerImpl::TransformIsAnimating() const {
« no previous file with comments | « cc/layers/layer_impl.h ('k') | cc/layers/layer_proto_converter_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698