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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 class PrioritizedResourceManager; | 53 class PrioritizedResourceManager; |
54 class Region; | 54 class Region; |
55 class RenderingStatsInstrumentation; | 55 class RenderingStatsInstrumentation; |
56 class ResourceProvider; | 56 class ResourceProvider; |
57 class ResourceUpdateQueue; | 57 class ResourceUpdateQueue; |
58 class SharedBitmapManager; | 58 class SharedBitmapManager; |
59 class TopControlsManager; | 59 class TopControlsManager; |
60 class UIResourceRequest; | 60 class UIResourceRequest; |
61 struct RenderingStats; | 61 struct RenderingStats; |
62 struct ScrollAndScaleSet; | 62 struct ScrollAndScaleSet; |
| 63 struct CompositeTimingSet; |
63 | 64 |
64 // Provides information on an Impl's rendering capabilities back to the | 65 // Provides information on an Impl's rendering capabilities back to the |
65 // LayerTreeHost. | 66 // LayerTreeHost. |
66 struct CC_EXPORT RendererCapabilities { | 67 struct CC_EXPORT RendererCapabilities { |
67 RendererCapabilities(ResourceFormat best_texture_format, | 68 RendererCapabilities(ResourceFormat best_texture_format, |
68 bool allow_partial_texture_updates, | 69 bool allow_partial_texture_updates, |
69 int max_texture_size, | 70 int max_texture_size, |
70 bool using_shared_memory_resources); | 71 bool using_shared_memory_resources); |
71 | 72 |
72 RendererCapabilities(); | 73 RendererCapabilities(); |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
222 | 223 |
223 void SetVisible(bool visible); | 224 void SetVisible(bool visible); |
224 bool visible() const { return visible_; } | 225 bool visible() const { return visible_; } |
225 | 226 |
226 void StartPageScaleAnimation(const gfx::Vector2d& target_offset, | 227 void StartPageScaleAnimation(const gfx::Vector2d& target_offset, |
227 bool use_anchor, | 228 bool use_anchor, |
228 float scale, | 229 float scale, |
229 base::TimeDelta duration); | 230 base::TimeDelta duration); |
230 | 231 |
231 void ApplyScrollAndScale(ScrollAndScaleSet* info); | 232 void ApplyScrollAndScale(ScrollAndScaleSet* info); |
| 233 void RecordCompositeTiming(const CompositeTimingSet& info); |
232 void SetImplTransform(const gfx::Transform& transform); | 234 void SetImplTransform(const gfx::Transform& transform); |
233 | 235 |
234 // Virtual for tests. | 236 // Virtual for tests. |
235 virtual void StartRateLimiter(); | 237 virtual void StartRateLimiter(); |
236 virtual void StopRateLimiter(); | 238 virtual void StopRateLimiter(); |
237 | 239 |
238 void RateLimit(); | 240 void RateLimit(); |
239 | 241 |
240 bool AlwaysUsePartialTextureUpdates(); | 242 bool AlwaysUsePartialTextureUpdates(); |
241 size_t MaxPartialTextureUpdates() const; | 243 size_t MaxPartialTextureUpdates() const; |
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
455 | 457 |
456 ScopedPtrVector<SwapPromise> swap_promise_list_; | 458 ScopedPtrVector<SwapPromise> swap_promise_list_; |
457 std::set<SwapPromiseMonitor*> swap_promise_monitor_; | 459 std::set<SwapPromiseMonitor*> swap_promise_monitor_; |
458 | 460 |
459 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 461 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
460 }; | 462 }; |
461 | 463 |
462 } // namespace cc | 464 } // namespace cc |
463 | 465 |
464 #endif // CC_TREES_LAYER_TREE_HOST_H_ | 466 #endif // CC_TREES_LAYER_TREE_HOST_H_ |
OLD | NEW |