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 #ifndef CC_TREES_LAYER_TREE_HOST_H_ | 5 #ifndef CC_TREES_LAYER_TREE_HOST_H_ |
6 #define CC_TREES_LAYER_TREE_HOST_H_ | 6 #define CC_TREES_LAYER_TREE_HOST_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
241 bool visible() const { return visible_; } | 241 bool visible() const { return visible_; } |
242 | 242 |
243 void SetThrottleFrameProduction(bool throttle); | 243 void SetThrottleFrameProduction(bool throttle); |
244 | 244 |
245 void StartPageScaleAnimation(const gfx::Vector2d& target_offset, | 245 void StartPageScaleAnimation(const gfx::Vector2d& target_offset, |
246 bool use_anchor, | 246 bool use_anchor, |
247 float scale, | 247 float scale, |
248 base::TimeDelta duration); | 248 base::TimeDelta duration); |
249 | 249 |
250 void ApplyScrollAndScale(ScrollAndScaleSet* info); | 250 void ApplyScrollAndScale(ScrollAndScaleSet* info); |
| 251 void ApplyMutations(LayerTreeMutations* mutations); |
251 void SetImplTransform(const gfx::Transform& transform); | 252 void SetImplTransform(const gfx::Transform& transform); |
252 | 253 |
253 void SetDeviceScaleFactor(float device_scale_factor); | 254 void SetDeviceScaleFactor(float device_scale_factor); |
254 void SetPaintedDeviceScaleFactor(float painted_device_scale_factor); | 255 void SetPaintedDeviceScaleFactor(float painted_device_scale_factor); |
255 | 256 |
256 float device_scale_factor() const { return device_scale_factor_; } | 257 float device_scale_factor() const { return device_scale_factor_; } |
257 | 258 |
258 void UpdateTopControlsState(TopControlsState constraints, | 259 void UpdateTopControlsState(TopControlsState constraints, |
259 TopControlsState current, | 260 TopControlsState current, |
260 bool animate); | 261 bool animate); |
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
538 | 539 |
539 uint32_t surface_id_namespace_; | 540 uint32_t surface_id_namespace_; |
540 uint32_t next_surface_sequence_; | 541 uint32_t next_surface_sequence_; |
541 | 542 |
542 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 543 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
543 }; | 544 }; |
544 | 545 |
545 } // namespace cc | 546 } // namespace cc |
546 | 547 |
547 #endif // CC_TREES_LAYER_TREE_HOST_H_ | 548 #endif // CC_TREES_LAYER_TREE_HOST_H_ |
OLD | NEW |