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 <limits> | 8 #include <limits> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
234 | 234 |
235 void SetOverhangBitmap(const SkBitmap& bitmap); | 235 void SetOverhangBitmap(const SkBitmap& bitmap); |
236 | 236 |
237 PrioritizedResourceManager* contents_texture_manager() const { | 237 PrioritizedResourceManager* contents_texture_manager() const { |
238 return contents_texture_manager_.get(); | 238 return contents_texture_manager_.get(); |
239 } | 239 } |
240 | 240 |
241 void SetVisible(bool visible); | 241 void SetVisible(bool visible); |
242 bool visible() const { return visible_; } | 242 bool visible() const { return visible_; } |
243 | 243 |
| 244 void SetThrottleFrameProduction(bool throttle); |
| 245 |
244 void StartPageScaleAnimation(const gfx::Vector2d& target_offset, | 246 void StartPageScaleAnimation(const gfx::Vector2d& target_offset, |
245 bool use_anchor, | 247 bool use_anchor, |
246 float scale, | 248 float scale, |
247 base::TimeDelta duration); | 249 base::TimeDelta duration); |
248 | 250 |
249 void ApplyScrollAndScale(ScrollAndScaleSet* info); | 251 void ApplyScrollAndScale(ScrollAndScaleSet* info); |
250 void SetImplTransform(const gfx::Transform& transform); | 252 void SetImplTransform(const gfx::Transform& transform); |
251 | 253 |
252 // Virtual for tests. | 254 // Virtual for tests. |
253 virtual void StartRateLimiter(); | 255 virtual void StartRateLimiter(); |
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
482 | 484 |
483 uint32_t surface_id_namespace_; | 485 uint32_t surface_id_namespace_; |
484 uint32_t next_surface_sequence_; | 486 uint32_t next_surface_sequence_; |
485 | 487 |
486 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 488 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
487 }; | 489 }; |
488 | 490 |
489 } // namespace cc | 491 } // namespace cc |
490 | 492 |
491 #endif // CC_TREES_LAYER_TREE_HOST_H_ | 493 #endif // CC_TREES_LAYER_TREE_HOST_H_ |
OLD | NEW |