| 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 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 184 const RendererCapabilities& GetRendererCapabilities() const; | 184 const RendererCapabilities& GetRendererCapabilities() const; |
| 185 | 185 |
| 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(); | |
| 195 | |
| 196 void SetAnimationEvents(scoped_ptr<AnimationEventsVector> events, | 194 void SetAnimationEvents(scoped_ptr<AnimationEventsVector> events, |
| 197 base::Time wall_clock_time); | 195 base::Time wall_clock_time); |
| 198 | 196 |
| 199 void SetRootLayer(scoped_refptr<Layer> root_layer); | 197 void SetRootLayer(scoped_refptr<Layer> root_layer); |
| 200 Layer* root_layer() { return root_layer_.get(); } | 198 Layer* root_layer() { return root_layer_.get(); } |
| 201 const Layer* root_layer() const { return root_layer_.get(); } | 199 const Layer* root_layer() const { return root_layer_.get(); } |
| 202 | 200 |
| 203 const LayerTreeSettings& settings() const { return settings_; } | 201 const LayerTreeSettings& settings() const { return settings_; } |
| 204 | 202 |
| 205 void SetDebugState(const LayerTreeDebugState& debug_state); | 203 void SetDebugState(const LayerTreeDebugState& debug_state); |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 261 bool animate); | 259 bool animate); |
| 262 | 260 |
| 263 HeadsUpDisplayLayer* hud_layer() const { return hud_layer_.get(); } | 261 HeadsUpDisplayLayer* hud_layer() const { return hud_layer_.get(); } |
| 264 | 262 |
| 265 Proxy* proxy() const { return proxy_.get(); } | 263 Proxy* proxy() const { return proxy_.get(); } |
| 266 | 264 |
| 267 AnimationRegistrar* animation_registrar() const { | 265 AnimationRegistrar* animation_registrar() const { |
| 268 return animation_registrar_.get(); | 266 return animation_registrar_.get(); |
| 269 } | 267 } |
| 270 | 268 |
| 269 bool BlocksPendingCommit() const; |
| 270 |
| 271 // Obtains a thorough dump of the LayerTreeHost as a value. | 271 // Obtains a thorough dump of the LayerTreeHost as a value. |
| 272 scoped_ptr<base::Value> AsValue() const; | 272 scoped_ptr<base::Value> AsValue() const; |
| 273 | 273 |
| 274 bool in_paint_layer_contents() const { return in_paint_layer_contents_; } | 274 bool in_paint_layer_contents() const { return in_paint_layer_contents_; } |
| 275 | 275 |
| 276 // CreateUIResource creates a resource given a bitmap. The bitmap is | 276 // CreateUIResource creates a resource given a bitmap. The bitmap is |
| 277 // generated via an interface function, which is called when initializing the | 277 // generated via an interface function, which is called when initializing the |
| 278 // resource and when the resource has been lost (due to lost context). The | 278 // resource and when the resource has been lost (due to lost context). The |
| 279 // parameter of the interface is a single boolean, which indicates whether the | 279 // parameter of the interface is a single boolean, which indicates whether the |
| 280 // resource has been lost or not. CreateUIResource returns an Id of the | 280 // resource has been lost or not. CreateUIResource returns an Id of the |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 411 }; | 411 }; |
| 412 LCDTextMetrics lcd_text_metrics_; | 412 LCDTextMetrics lcd_text_metrics_; |
| 413 int tree_id_; | 413 int tree_id_; |
| 414 | 414 |
| 415 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 415 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
| 416 }; | 416 }; |
| 417 | 417 |
| 418 } // namespace cc | 418 } // namespace cc |
| 419 | 419 |
| 420 #endif // CC_TREES_LAYER_TREE_HOST_H_ | 420 #endif // CC_TREES_LAYER_TREE_HOST_H_ |
| OLD | NEW |