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 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 | 232 |
233 void SetVisible(bool visible); | 233 void SetVisible(bool visible); |
234 bool visible() const { return visible_; } | 234 bool visible() const { return visible_; } |
235 | 235 |
236 void StartPageScaleAnimation(const gfx::Vector2d& target_offset, | 236 void StartPageScaleAnimation(const gfx::Vector2d& target_offset, |
237 bool use_anchor, | 237 bool use_anchor, |
238 float scale, | 238 float scale, |
239 base::TimeDelta duration); | 239 base::TimeDelta duration); |
240 | 240 |
241 void ApplyScrollAndScale(const ScrollAndScaleSet& info); | 241 void ApplyScrollAndScale(const ScrollAndScaleSet& info); |
242 gfx::Vector2d DistributeScrollOffsetToViewports(const gfx::Vector2d offset, | |
243 Layer* layer); | |
244 | |
245 void SetImplTransform(const gfx::Transform& transform); | 242 void SetImplTransform(const gfx::Transform& transform); |
246 | 243 |
247 // Virtual for tests. | 244 // Virtual for tests. |
248 virtual void StartRateLimiter(); | 245 virtual void StartRateLimiter(); |
249 virtual void StopRateLimiter(); | 246 virtual void StopRateLimiter(); |
250 | 247 |
251 void RateLimit(); | 248 void RateLimit(); |
252 | 249 |
253 bool AlwaysUsePartialTextureUpdates(); | 250 bool AlwaysUsePartialTextureUpdates(); |
254 size_t MaxPartialTextureUpdates() const; | 251 size_t MaxPartialTextureUpdates() const; |
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
457 | 454 |
458 ScopedPtrVector<SwapPromise> swap_promise_list_; | 455 ScopedPtrVector<SwapPromise> swap_promise_list_; |
459 std::set<SwapPromiseMonitor*> swap_promise_monitor_; | 456 std::set<SwapPromiseMonitor*> swap_promise_monitor_; |
460 | 457 |
461 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 458 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
462 }; | 459 }; |
463 | 460 |
464 } // namespace cc | 461 } // namespace cc |
465 | 462 |
466 #endif // CC_TREES_LAYER_TREE_HOST_H_ | 463 #endif // CC_TREES_LAYER_TREE_HOST_H_ |
OLD | NEW |