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

Unified Diff: cc/layers/layer_impl.cc

Issue 1908593002: cc : Stop pushing transform origin from Layer and LayerImpl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 | « cc/layers/layer_impl.h ('k') | cc/layers/layer_impl_test_properties.h » ('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 b7c0c1fd6018d51937571a8b0541ba37729f8065..adb0a954555863ce07bcd13708f922bbbe30ee05 100644
--- a/cc/layers/layer_impl.cc
+++ b/cc/layers/layer_impl.cc
@@ -53,6 +53,7 @@ LayerImpl::LayerImpl(LayerTreeImpl* tree_impl, int id)
replica_layer_(nullptr),
layer_id_(id),
layer_tree_impl_(tree_impl),
+ test_properties_(nullptr),
scroll_clip_layer_id_(Layer::INVALID_ID),
main_thread_scrolling_reasons_(
MainThreadScrollingReason::kNotScrollingOnMain),
@@ -485,7 +486,6 @@ void LayerImpl::set_main_thread_scrolling_reasons(
}
void LayerImpl::PushPropertiesTo(LayerImpl* layer) {
- layer->SetTransformOrigin(transform_origin_);
layer->SetBackgroundColor(background_color_);
layer->SetSafeOpaqueBackgroundColor(safe_opaque_background_color_);
layer->SetBounds(bounds_);
@@ -1051,12 +1051,6 @@ void LayerImpl::SetHideLayerAndSubtree(bool hide) {
hide_layer_and_subtree_ = hide;
}
-void LayerImpl::SetTransformOrigin(const gfx::Point3F& transform_origin) {
- if (transform_origin_ == transform_origin)
- return;
- transform_origin_ = transform_origin;
-}
-
void LayerImpl::SetBackgroundColor(SkColor background_color) {
if (background_color_ == background_color)
return;
@@ -1394,8 +1388,6 @@ void LayerImpl::AsValueInto(base::trace_event::TracedValue* state) const {
MathUtil::AddToTracedValue("scroll_offset", CurrentScrollOffset(), state);
- MathUtil::AddToTracedValue("transform_origin", transform_origin_, state);
-
if (!transform().IsIdentity())
MathUtil::AddToTracedValue("transform", transform(), state);
« no previous file with comments | « cc/layers/layer_impl.h ('k') | cc/layers/layer_impl_test_properties.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698