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