| OLD | NEW |
| 1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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/trees/layer_tree_impl.h" | 5 #include "cc/trees/layer_tree_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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 #include "ui/gfx/geometry/point_conversions.h" | 43 #include "ui/gfx/geometry/point_conversions.h" |
| 44 #include "ui/gfx/geometry/rect_conversions.h" | 44 #include "ui/gfx/geometry/rect_conversions.h" |
| 45 #include "ui/gfx/geometry/size_conversions.h" | 45 #include "ui/gfx/geometry/size_conversions.h" |
| 46 #include "ui/gfx/geometry/vector2d_conversions.h" | 46 #include "ui/gfx/geometry/vector2d_conversions.h" |
| 47 | 47 |
| 48 namespace cc { | 48 namespace cc { |
| 49 | 49 |
| 50 namespace { | 50 namespace { |
| 51 | 51 |
| 52 const uint32_t kMainLayerFlags = | 52 const uint32_t kMainLayerFlags = |
| 53 kMutablePropertyOpacity | kMutablePropertyTransform; | 53 MutableProperty::kOpacity | MutableProperty::kTransform; |
| 54 const uint32_t kScrollLayerFlags = | 54 const uint32_t kScrollLayerFlags = |
| 55 kMutablePropertyScrollLeft | kMutablePropertyScrollTop; | 55 MutableProperty::kScrollLeft | MutableProperty::kScrollTop; |
| 56 | 56 |
| 57 } // namespace | 57 } // namespace |
| 58 | 58 |
| 59 LayerTreeImpl::LayerTreeImpl( | 59 LayerTreeImpl::LayerTreeImpl( |
| 60 LayerTreeHostImpl* layer_tree_host_impl, | 60 LayerTreeHostImpl* layer_tree_host_impl, |
| 61 scoped_refptr<SyncedProperty<ScaleGroup>> page_scale_factor, | 61 scoped_refptr<SyncedProperty<ScaleGroup>> page_scale_factor, |
| 62 scoped_refptr<SyncedTopControls> top_controls_shown_ratio, | 62 scoped_refptr<SyncedTopControls> top_controls_shown_ratio, |
| 63 scoped_refptr<SyncedElasticOverscroll> elastic_overscroll) | 63 scoped_refptr<SyncedElasticOverscroll> elastic_overscroll) |
| 64 : layer_tree_host_impl_(layer_tree_host_impl), | 64 : layer_tree_host_impl_(layer_tree_host_impl), |
| 65 source_frame_number_(-1), | 65 source_frame_number_(-1), |
| (...skipping 2009 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2075 const gfx::BoxF& box, | 2075 const gfx::BoxF& box, |
| 2076 gfx::BoxF* bounds) const { | 2076 gfx::BoxF* bounds) const { |
| 2077 *bounds = gfx::BoxF(); | 2077 *bounds = gfx::BoxF(); |
| 2078 return layer_tree_host_impl_->animation_host() | 2078 return layer_tree_host_impl_->animation_host() |
| 2079 ? layer_tree_host_impl_->animation_host() | 2079 ? layer_tree_host_impl_->animation_host() |
| 2080 ->TransformAnimationBoundsForBox(layer->id(), box, bounds) | 2080 ->TransformAnimationBoundsForBox(layer->id(), box, bounds) |
| 2081 : true; | 2081 : true; |
| 2082 } | 2082 } |
| 2083 | 2083 |
| 2084 } // namespace cc | 2084 } // namespace cc |
| OLD | NEW |