| 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 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 219 } | 219 } |
| 220 | 220 |
| 221 void SetVisible(bool visible); | 221 void SetVisible(bool visible); |
| 222 bool visible() const { return visible_; } | 222 bool visible() const { return visible_; } |
| 223 | 223 |
| 224 void StartPageScaleAnimation(const gfx::Vector2d& target_offset, | 224 void StartPageScaleAnimation(const gfx::Vector2d& target_offset, |
| 225 bool use_anchor, | 225 bool use_anchor, |
| 226 float scale, | 226 float scale, |
| 227 base::TimeDelta duration); | 227 base::TimeDelta duration); |
| 228 | 228 |
| 229 void ApplyScrollAndScale(const ScrollAndScaleSet& info); | 229 void ApplyScrollAndScale(ScrollAndScaleSet* info); |
| 230 void SetImplTransform(const gfx::Transform& transform); | 230 void SetImplTransform(const gfx::Transform& transform); |
| 231 | 231 |
| 232 // Virtual for tests. | 232 // Virtual for tests. |
| 233 virtual void StartRateLimiter(); | 233 virtual void StartRateLimiter(); |
| 234 virtual void StopRateLimiter(); | 234 virtual void StopRateLimiter(); |
| 235 | 235 |
| 236 void RateLimit(); | 236 void RateLimit(); |
| 237 | 237 |
| 238 bool AlwaysUsePartialTextureUpdates(); | 238 bool AlwaysUsePartialTextureUpdates(); |
| 239 size_t MaxPartialTextureUpdates() const; | 239 size_t MaxPartialTextureUpdates() const; |
| (...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 450 | 450 |
| 451 ScopedPtrVector<SwapPromise> swap_promise_list_; | 451 ScopedPtrVector<SwapPromise> swap_promise_list_; |
| 452 std::set<SwapPromiseMonitor*> swap_promise_monitor_; | 452 std::set<SwapPromiseMonitor*> swap_promise_monitor_; |
| 453 | 453 |
| 454 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 454 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
| 455 }; | 455 }; |
| 456 | 456 |
| 457 } // namespace cc | 457 } // namespace cc |
| 458 | 458 |
| 459 #endif // CC_TREES_LAYER_TREE_HOST_H_ | 459 #endif // CC_TREES_LAYER_TREE_HOST_H_ |
| OLD | NEW |