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 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 virtual void SetNeedsFullTreeSync(); | 177 virtual void SetNeedsFullTreeSync(); |
178 void SetNeedsRedraw(); | 178 void SetNeedsRedraw(); |
179 void SetNeedsRedrawRect(const gfx::Rect& damage_rect); | 179 void SetNeedsRedrawRect(const gfx::Rect& damage_rect); |
180 bool CommitRequested() const; | 180 bool CommitRequested() const; |
181 bool BeginMainFrameRequested() const; | 181 bool BeginMainFrameRequested() const; |
182 | 182 |
183 void SetNextCommitWaitsForActivation(); | 183 void SetNextCommitWaitsForActivation(); |
184 | 184 |
185 void SetNextCommitForcesRedraw(); | 185 void SetNextCommitForcesRedraw(); |
186 | 186 |
187 void SetAnimationEvents(scoped_ptr<AnimationEventsVector> events, | 187 void SetAnimationEvents(scoped_ptr<AnimationEventsVector> events); |
188 base::Time wall_clock_time); | |
189 | 188 |
190 void SetRootLayer(scoped_refptr<Layer> root_layer); | 189 void SetRootLayer(scoped_refptr<Layer> root_layer); |
191 Layer* root_layer() { return root_layer_.get(); } | 190 Layer* root_layer() { return root_layer_.get(); } |
192 const Layer* root_layer() const { return root_layer_.get(); } | 191 const Layer* root_layer() const { return root_layer_.get(); } |
193 const Layer* page_scale_layer() const { return page_scale_layer_.get(); } | 192 const Layer* page_scale_layer() const { return page_scale_layer_.get(); } |
194 void RegisterViewportLayers( | 193 void RegisterViewportLayers( |
195 scoped_refptr<Layer> page_scale_layer, | 194 scoped_refptr<Layer> page_scale_layer, |
196 scoped_refptr<Layer> inner_viewport_scroll_layer, | 195 scoped_refptr<Layer> inner_viewport_scroll_layer, |
197 scoped_refptr<Layer> outer_viewport_scroll_layer); | 196 scoped_refptr<Layer> outer_viewport_scroll_layer); |
198 Layer* inner_viewport_scroll_layer() const { | 197 Layer* inner_viewport_scroll_layer() const { |
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
460 | 459 |
461 ScopedPtrVector<SwapPromise> swap_promise_list_; | 460 ScopedPtrVector<SwapPromise> swap_promise_list_; |
462 std::set<SwapPromiseMonitor*> swap_promise_monitor_; | 461 std::set<SwapPromiseMonitor*> swap_promise_monitor_; |
463 | 462 |
464 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 463 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
465 }; | 464 }; |
466 | 465 |
467 } // namespace cc | 466 } // namespace cc |
468 | 467 |
469 #endif // CC_TREES_LAYER_TREE_HOST_H_ | 468 #endif // CC_TREES_LAYER_TREE_HOST_H_ |
OLD | NEW |