| 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 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 265 SkColor background_color() const { return background_color_; } | 265 SkColor background_color() const { return background_color_; } |
| 266 void set_background_color(SkColor color) { background_color_ = color; } | 266 void set_background_color(SkColor color) { background_color_ = color; } |
| 267 | 267 |
| 268 void set_has_transparent_background(bool transparent) { | 268 void set_has_transparent_background(bool transparent) { |
| 269 has_transparent_background_ = transparent; | 269 has_transparent_background_ = transparent; |
| 270 } | 270 } |
| 271 | 271 |
| 272 void SetVisible(bool visible); | 272 void SetVisible(bool visible); |
| 273 bool visible() const { return visible_; } | 273 bool visible() const { return visible_; } |
| 274 | 274 |
| 275 void SetThrottleFrameProduction(bool throttle); | |
| 276 | |
| 277 void StartPageScaleAnimation(const gfx::Vector2d& target_offset, | 275 void StartPageScaleAnimation(const gfx::Vector2d& target_offset, |
| 278 bool use_anchor, | 276 bool use_anchor, |
| 279 float scale, | 277 float scale, |
| 280 base::TimeDelta duration); | 278 base::TimeDelta duration); |
| 281 | 279 |
| 282 void ApplyScrollAndScale(ScrollAndScaleSet* info); | 280 void ApplyScrollAndScale(ScrollAndScaleSet* info); |
| 283 void SetImplTransform(const gfx::Transform& transform); | 281 void SetImplTransform(const gfx::Transform& transform); |
| 284 | 282 |
| 285 void SetDeviceScaleFactor(float device_scale_factor); | 283 void SetDeviceScaleFactor(float device_scale_factor); |
| 286 void SetPaintedDeviceScaleFactor(float painted_device_scale_factor); | 284 void SetPaintedDeviceScaleFactor(float painted_device_scale_factor); |
| (...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 589 | 587 |
| 590 uint32_t surface_id_namespace_; | 588 uint32_t surface_id_namespace_; |
| 591 uint32_t next_surface_sequence_; | 589 uint32_t next_surface_sequence_; |
| 592 | 590 |
| 593 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 591 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
| 594 }; | 592 }; |
| 595 | 593 |
| 596 } // namespace cc | 594 } // namespace cc |
| 597 | 595 |
| 598 #endif // CC_TREES_LAYER_TREE_HOST_H_ | 596 #endif // CC_TREES_LAYER_TREE_HOST_H_ |
| OLD | NEW |