| Index: cc/layers/layer_impl.cc
|
| diff --git a/cc/layers/layer_impl.cc b/cc/layers/layer_impl.cc
|
| index 9b7f53277d3db9a06d03a8b6680943f3260e2049..5bbaf325c6f6ed2cb6458396d68a13cc8bb4a366 100644
|
| --- a/cc/layers/layer_impl.cc
|
| +++ b/cc/layers/layer_impl.cc
|
| @@ -84,7 +84,8 @@ LayerImpl::LayerImpl(LayerTreeImpl* tree_impl, int id)
|
| mutable_properties_(MutableProperty::kNone),
|
| debug_info_(nullptr),
|
| scrolls_drawn_descendant_(false),
|
| - layer_or_descendant_has_touch_handler_(false) {
|
| + layer_or_descendant_has_touch_handler_(false),
|
| + has_will_change_transform_hint_(false) {
|
| DCHECK_GT(layer_id_, 0);
|
|
|
| DCHECK(layer_tree_impl_);
|
| @@ -495,6 +496,8 @@ void LayerImpl::PushPropertiesTo(LayerImpl* layer) {
|
| if (owned_debug_info_)
|
| layer->SetDebugInfo(std::move(owned_debug_info_));
|
|
|
| + layer->set_has_will_change_transform_hint(has_will_change_transform_hint());
|
| +
|
| // Reset any state that should be cleared for the next update.
|
| layer_property_changed_ = false;
|
| update_rect_ = gfx::Rect();
|
| @@ -1270,6 +1273,9 @@ void LayerImpl::AsValueInto(base::trace_event::TracedValue* state) const {
|
| state->SetBoolean("has_animation_bounds",
|
| layer_tree_impl_->HasAnimationThatInflatesBounds(this));
|
|
|
| + state->SetBoolean("has_will_change_transform_hint",
|
| + has_will_change_transform_hint());
|
| +
|
| gfx::BoxF box;
|
| if (LayerUtils::GetAnimationBounds(*this, &box))
|
| MathUtil::AddToTracedValue("animation_bounds", box, state);
|
|
|