Chromium Code Reviews| 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 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 476 | 478 |
| 477 SharedBitmapManager* shared_bitmap_manager_; | 479 SharedBitmapManager* shared_bitmap_manager_; |
| 478 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager_; | 480 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager_; |
| 479 | 481 |
| 480 ScopedPtrVector<SwapPromise> swap_promise_list_; | 482 ScopedPtrVector<SwapPromise> swap_promise_list_; |
| 481 std::set<SwapPromiseMonitor*> swap_promise_monitor_; | 483 std::set<SwapPromiseMonitor*> swap_promise_monitor_; |
| 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 |
| 488 int swap_interval_; | |
|
brianderson
2015/01/05 23:50:46
Doesn't look like this variable is used?
| |
| 489 | |
| 486 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 490 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
| 487 }; | 491 }; |
| 488 | 492 |
| 489 } // namespace cc | 493 } // namespace cc |
| 490 | 494 |
| 491 #endif // CC_TREES_LAYER_TREE_HOST_H_ | 495 #endif // CC_TREES_LAYER_TREE_HOST_H_ |
| OLD | NEW |