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 <vector> | 10 #include <vector> |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
186 void SetNeedsAnimate(); | 186 void SetNeedsAnimate(); |
187 virtual void SetNeedsUpdateLayers(); | 187 virtual void SetNeedsUpdateLayers(); |
188 virtual void SetNeedsCommit(); | 188 virtual void SetNeedsCommit(); |
189 virtual void SetNeedsFullTreeSync(); | 189 virtual void SetNeedsFullTreeSync(); |
190 void SetNeedsRedraw(); | 190 void SetNeedsRedraw(); |
191 void SetNeedsRedrawRect(gfx::Rect damage_rect); | 191 void SetNeedsRedrawRect(gfx::Rect damage_rect); |
192 bool CommitRequested() const; | 192 bool CommitRequested() const; |
193 | 193 |
194 void SetNextCommitWaitsForActivation(); | 194 void SetNextCommitWaitsForActivation(); |
195 | 195 |
| 196 void SetNextCommitForcesRedraw(); |
| 197 |
196 void SetAnimationEvents(scoped_ptr<AnimationEventsVector> events, | 198 void SetAnimationEvents(scoped_ptr<AnimationEventsVector> events, |
197 base::Time wall_clock_time); | 199 base::Time wall_clock_time); |
198 | 200 |
199 void SetRootLayer(scoped_refptr<Layer> root_layer); | 201 void SetRootLayer(scoped_refptr<Layer> root_layer); |
200 Layer* root_layer() { return root_layer_.get(); } | 202 Layer* root_layer() { return root_layer_.get(); } |
201 const Layer* root_layer() const { return root_layer_.get(); } | 203 const Layer* root_layer() const { return root_layer_.get(); } |
202 | 204 |
203 const LayerTreeSettings& settings() const { return settings_; } | 205 const LayerTreeSettings& settings() const { return settings_; } |
204 | 206 |
205 void SetDebugState(const LayerTreeDebugState& debug_state); | 207 void SetDebugState(const LayerTreeDebugState& debug_state); |
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
411 }; | 413 }; |
412 LCDTextMetrics lcd_text_metrics_; | 414 LCDTextMetrics lcd_text_metrics_; |
413 int tree_id_; | 415 int tree_id_; |
414 | 416 |
415 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 417 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
416 }; | 418 }; |
417 | 419 |
418 } // namespace cc | 420 } // namespace cc |
419 | 421 |
420 #endif // CC_TREES_LAYER_TREE_HOST_H_ | 422 #endif // CC_TREES_LAYER_TREE_HOST_H_ |
OLD | NEW |