| 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 clip_tree_index_(-1), | 85 clip_tree_index_(-1), |
| 86 scroll_tree_index_(-1), | 86 scroll_tree_index_(-1), |
| 87 draw_depth_(0.f), | 87 draw_depth_(0.f), |
| 88 sorting_context_id_(0), | 88 sorting_context_id_(0), |
| 89 current_draw_mode_(DRAW_MODE_NONE), | 89 current_draw_mode_(DRAW_MODE_NONE), |
| 90 element_id_(0), | 90 element_id_(0), |
| 91 mutable_properties_(MutableProperty::kNone), | 91 mutable_properties_(MutableProperty::kNone), |
| 92 debug_info_(nullptr), | 92 debug_info_(nullptr), |
| 93 force_render_surface_(false), | 93 force_render_surface_(false), |
| 94 frame_timing_requests_dirty_(false), | 94 frame_timing_requests_dirty_(false), |
| 95 layer_or_descendant_is_drawn_(false), | 95 scrolls_drawn_descendant_(false), |
| 96 layer_or_descendant_has_touch_handler_(false) { | 96 layer_or_descendant_has_touch_handler_(false) { |
| 97 DCHECK_GT(layer_id_, 0); | 97 DCHECK_GT(layer_id_, 0); |
| 98 | 98 |
| 99 DCHECK(layer_tree_impl_); | 99 DCHECK(layer_tree_impl_); |
| 100 layer_tree_impl_->RegisterLayer(this); | 100 layer_tree_impl_->RegisterLayer(this); |
| 101 layer_tree_impl_->AddToElementMap(this); | 101 layer_tree_impl_->AddToElementMap(this); |
| 102 | 102 |
| 103 SetNeedsPushProperties(); | 103 SetNeedsPushProperties(); |
| 104 } | 104 } |
| 105 | 105 |
| (...skipping 1527 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1633 .layer_transforms_should_scale_layer_contents) { | 1633 .layer_transforms_should_scale_layer_contents) { |
| 1634 return default_scale; | 1634 return default_scale; |
| 1635 } | 1635 } |
| 1636 | 1636 |
| 1637 gfx::Vector2dF transform_scales = MathUtil::ComputeTransform2dScaleComponents( | 1637 gfx::Vector2dF transform_scales = MathUtil::ComputeTransform2dScaleComponents( |
| 1638 DrawTransform(), default_scale); | 1638 DrawTransform(), default_scale); |
| 1639 return std::max(transform_scales.x(), transform_scales.y()); | 1639 return std::max(transform_scales.x(), transform_scales.y()); |
| 1640 } | 1640 } |
| 1641 | 1641 |
| 1642 } // namespace cc | 1642 } // namespace cc |
| OLD | NEW |