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 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
228 | 228 |
229 void SetOverhangBitmap(const SkBitmap& bitmap); | 229 void SetOverhangBitmap(const SkBitmap& bitmap); |
230 | 230 |
231 PrioritizedResourceManager* contents_texture_manager() const { | 231 PrioritizedResourceManager* contents_texture_manager() const { |
232 return contents_texture_manager_.get(); | 232 return contents_texture_manager_.get(); |
233 } | 233 } |
234 | 234 |
235 void SetVisible(bool visible); | 235 void SetVisible(bool visible); |
236 bool visible() const { return visible_; } | 236 bool visible() const { return visible_; } |
237 | 237 |
238 void StartPageScaleAnimation(gfx::Vector2d target_offset, | 238 void StartPageScaleAnimation(const gfx::Vector2d& target_offset, |
239 bool use_anchor, | 239 bool use_anchor, |
240 float scale, | 240 float scale, |
241 base::TimeDelta duration); | 241 base::TimeDelta duration); |
242 | 242 |
243 void ApplyScrollAndScale(const ScrollAndScaleSet& info); | 243 void ApplyScrollAndScale(const ScrollAndScaleSet& info); |
244 gfx::Vector2d DistributeScrollOffsetToViewports(const gfx::Vector2d offset, | 244 gfx::Vector2d DistributeScrollOffsetToViewports(const gfx::Vector2d offset, |
245 Layer* layer); | 245 Layer* layer); |
246 | 246 |
247 void SetImplTransform(const gfx::Transform& transform); | 247 void SetImplTransform(const gfx::Transform& transform); |
248 | 248 |
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
460 | 460 |
461 ScopedPtrVector<SwapPromise> swap_promise_list_; | 461 ScopedPtrVector<SwapPromise> swap_promise_list_; |
462 std::set<SwapPromiseMonitor*> swap_promise_monitor_; | 462 std::set<SwapPromiseMonitor*> swap_promise_monitor_; |
463 | 463 |
464 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 464 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
465 }; | 465 }; |
466 | 466 |
467 } // namespace cc | 467 } // namespace cc |
468 | 468 |
469 #endif // CC_TREES_LAYER_TREE_HOST_H_ | 469 #endif // CC_TREES_LAYER_TREE_HOST_H_ |
OLD | NEW |