| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "cc/layers/layer_impl.h" | 5 #include "cc/layers/layer_impl.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <algorithm> | 10 #include <algorithm> |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 layer_tree_impl_->AddToElementMap(this); | 84 layer_tree_impl_->AddToElementMap(this); |
| 85 | 85 |
| 86 SetNeedsPushProperties(); | 86 SetNeedsPushProperties(); |
| 87 } | 87 } |
| 88 | 88 |
| 89 LayerImpl::~LayerImpl() { | 89 LayerImpl::~LayerImpl() { |
| 90 DCHECK_EQ(DRAW_MODE_NONE, current_draw_mode_); | 90 DCHECK_EQ(DRAW_MODE_NONE, current_draw_mode_); |
| 91 | 91 |
| 92 layer_tree_impl_->UnregisterScrollLayer(this); | 92 layer_tree_impl_->UnregisterScrollLayer(this); |
| 93 layer_tree_impl_->UnregisterLayer(this); | 93 layer_tree_impl_->UnregisterLayer(this); |
| 94 layer_tree_impl_->RemoveLayerShouldPushProperties(this); | |
| 95 | 94 |
| 96 layer_tree_impl_->RemoveFromElementMap(this); | 95 layer_tree_impl_->RemoveFromElementMap(this); |
| 97 | 96 |
| 98 TRACE_EVENT_OBJECT_DELETED_WITH_ID( | 97 TRACE_EVENT_OBJECT_DELETED_WITH_ID( |
| 99 TRACE_DISABLED_BY_DEFAULT("cc.debug"), "cc::LayerImpl", this); | 98 TRACE_DISABLED_BY_DEFAULT("cc.debug"), "cc::LayerImpl", this); |
| 100 } | 99 } |
| 101 | 100 |
| 102 void LayerImpl::SetHasWillChangeTransformHint(bool has_will_change) { | 101 void LayerImpl::SetHasWillChangeTransformHint(bool has_will_change) { |
| 103 has_will_change_transform_hint_ = has_will_change; | 102 has_will_change_transform_hint_ = has_will_change; |
| 104 } | 103 } |
| (...skipping 1090 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1195 .layer_transforms_should_scale_layer_contents) { | 1194 .layer_transforms_should_scale_layer_contents) { |
| 1196 return default_scale; | 1195 return default_scale; |
| 1197 } | 1196 } |
| 1198 | 1197 |
| 1199 gfx::Vector2dF transform_scales = MathUtil::ComputeTransform2dScaleComponents( | 1198 gfx::Vector2dF transform_scales = MathUtil::ComputeTransform2dScaleComponents( |
| 1200 ScreenSpaceTransform(), default_scale); | 1199 ScreenSpaceTransform(), default_scale); |
| 1201 return std::max(transform_scales.x(), transform_scales.y()); | 1200 return std::max(transform_scales.x(), transform_scales.y()); |
| 1202 } | 1201 } |
| 1203 | 1202 |
| 1204 } // namespace cc | 1203 } // namespace cc |
| OLD | NEW |