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 <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 DrawTimingSet; | |
| 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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 221 } | 222 } |
| 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(const ScrollAndScaleSet& info); | 232 void ApplyScrollAndScale(ScrollAndScaleSet* info); |
|
enne (OOO)
2014/07/22 20:44:26
?
Mike B
2014/07/25 23:09:41
Someone committed and then uncommitted a change he
| |
| 233 void RecordDrawTiming(const DrawTimingSet& 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 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 454 | 456 |
| 455 ScopedPtrVector<SwapPromise> swap_promise_list_; | 457 ScopedPtrVector<SwapPromise> swap_promise_list_; |
| 456 std::set<SwapPromiseMonitor*> swap_promise_monitor_; | 458 std::set<SwapPromiseMonitor*> swap_promise_monitor_; |
| 457 | 459 |
| 458 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 460 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
| 459 }; | 461 }; |
| 460 | 462 |
| 461 } // namespace cc | 463 } // namespace cc |
| 462 | 464 |
| 463 #endif // CC_TREES_LAYER_TREE_HOST_H_ | 465 #endif // CC_TREES_LAYER_TREE_HOST_H_ |
| OLD | NEW |