| 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 <list> | 9 #include <list> |
| 10 #include <set> | 10 #include <set> |
| (...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 235 | 235 |
| 236 void SetOverhangBitmap(const SkBitmap& bitmap); | 236 void SetOverhangBitmap(const SkBitmap& bitmap); |
| 237 | 237 |
| 238 PrioritizedResourceManager* contents_texture_manager() const { | 238 PrioritizedResourceManager* contents_texture_manager() const { |
| 239 return contents_texture_manager_.get(); | 239 return contents_texture_manager_.get(); |
| 240 } | 240 } |
| 241 | 241 |
| 242 void SetVisible(bool visible); | 242 void SetVisible(bool visible); |
| 243 bool visible() const { return visible_; } | 243 bool visible() const { return visible_; } |
| 244 | 244 |
| 245 void SetThrottleFrameProduction(bool throttle); |
| 246 |
| 245 void StartPageScaleAnimation(const gfx::Vector2d& target_offset, | 247 void StartPageScaleAnimation(const gfx::Vector2d& target_offset, |
| 246 bool use_anchor, | 248 bool use_anchor, |
| 247 float scale, | 249 float scale, |
| 248 base::TimeDelta duration); | 250 base::TimeDelta duration); |
| 249 | 251 |
| 250 void ApplyScrollAndScale(ScrollAndScaleSet* info); | 252 void ApplyScrollAndScale(ScrollAndScaleSet* info); |
| 251 void SetImplTransform(const gfx::Transform& transform); | 253 void SetImplTransform(const gfx::Transform& transform); |
| 252 | 254 |
| 253 // Virtual for tests. | 255 // Virtual for tests. |
| 254 virtual void StartRateLimiter(); | 256 virtual void StartRateLimiter(); |
| (...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 477 | 479 |
| 478 SharedBitmapManager* shared_bitmap_manager_; | 480 SharedBitmapManager* shared_bitmap_manager_; |
| 479 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager_; | 481 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager_; |
| 480 | 482 |
| 481 ScopedPtrVector<SwapPromise> swap_promise_list_; | 483 ScopedPtrVector<SwapPromise> swap_promise_list_; |
| 482 std::set<SwapPromiseMonitor*> swap_promise_monitor_; | 484 std::set<SwapPromiseMonitor*> swap_promise_monitor_; |
| 483 | 485 |
| 484 uint32_t surface_id_namespace_; | 486 uint32_t surface_id_namespace_; |
| 485 uint32_t next_surface_sequence_; | 487 uint32_t next_surface_sequence_; |
| 486 | 488 |
| 489 int swap_interval_; |
| 490 |
| 487 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 491 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
| 488 }; | 492 }; |
| 489 | 493 |
| 490 } // namespace cc | 494 } // namespace cc |
| 491 | 495 |
| 492 #endif // CC_TREES_LAYER_TREE_HOST_H_ | 496 #endif // CC_TREES_LAYER_TREE_HOST_H_ |
| OLD | NEW |