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