Chromium Code Reviews| 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 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 259 bool animate); | 259 bool animate); |
| 260 | 260 |
| 261 HeadsUpDisplayLayer* hud_layer() const { return hud_layer_.get(); } | 261 HeadsUpDisplayLayer* hud_layer() const { return hud_layer_.get(); } |
| 262 | 262 |
| 263 Proxy* proxy() const { return proxy_.get(); } | 263 Proxy* proxy() const { return proxy_.get(); } |
| 264 | 264 |
| 265 AnimationRegistrar* animation_registrar() const { | 265 AnimationRegistrar* animation_registrar() const { |
| 266 return animation_registrar_.get(); | 266 return animation_registrar_.get(); |
| 267 } | 267 } |
| 268 | 268 |
| 269 bool BlocksPendingCommit() const; | 269 void SetNextCommitWaitsForActivation() { |
| 270 commit_waits_for_activation_ = true; | |
|
danakj
2013/08/29 01:58:18
It occured to me, maybe this should just set a bit
| |
| 271 } | |
| 272 bool CommitWaitsForActivation() const { | |
| 273 return commit_waits_for_activation_; | |
| 274 } | |
| 270 | 275 |
| 271 // Obtains a thorough dump of the LayerTreeHost as a value. | 276 // Obtains a thorough dump of the LayerTreeHost as a value. |
| 272 scoped_ptr<base::Value> AsValue() const; | 277 scoped_ptr<base::Value> AsValue() const; |
| 273 | 278 |
| 274 bool in_paint_layer_contents() const { return in_paint_layer_contents_; } | 279 bool in_paint_layer_contents() const { return in_paint_layer_contents_; } |
| 275 | 280 |
| 276 // CreateUIResource creates a resource given a bitmap. The bitmap is | 281 // CreateUIResource creates a resource given a bitmap. The bitmap is |
| 277 // generated via an interface function, which is called when initializing the | 282 // 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 | 283 // 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 | 284 // parameter of the interface is a single boolean, which indicates whether the |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 328 int next_ui_resource_id_; | 333 int next_ui_resource_id_; |
| 329 | 334 |
| 330 typedef std::list<UIResourceRequest> UIResourceRequestQueue; | 335 typedef std::list<UIResourceRequest> UIResourceRequestQueue; |
| 331 UIResourceRequestQueue ui_resource_request_queue_; | 336 UIResourceRequestQueue ui_resource_request_queue_; |
| 332 | 337 |
| 333 void CalculateLCDTextMetricsCallback(Layer* layer); | 338 void CalculateLCDTextMetricsCallback(Layer* layer); |
| 334 | 339 |
| 335 bool animating_; | 340 bool animating_; |
| 336 bool needs_full_tree_sync_; | 341 bool needs_full_tree_sync_; |
| 337 bool needs_filter_context_; | 342 bool needs_filter_context_; |
| 343 bool commit_waits_for_activation_; | |
| 338 | 344 |
| 339 base::CancelableClosure prepaint_callback_; | 345 base::CancelableClosure prepaint_callback_; |
| 340 | 346 |
| 341 LayerTreeHostClient* client_; | 347 LayerTreeHostClient* client_; |
| 342 scoped_ptr<Proxy> proxy_; | 348 scoped_ptr<Proxy> proxy_; |
| 343 | 349 |
| 344 int source_frame_number_; | 350 int source_frame_number_; |
| 345 scoped_ptr<RenderingStatsInstrumentation> rendering_stats_instrumentation_; | 351 scoped_ptr<RenderingStatsInstrumentation> rendering_stats_instrumentation_; |
| 346 | 352 |
| 347 bool output_surface_can_be_initialized_; | 353 bool output_surface_can_be_initialized_; |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 411 }; | 417 }; |
| 412 LCDTextMetrics lcd_text_metrics_; | 418 LCDTextMetrics lcd_text_metrics_; |
| 413 int tree_id_; | 419 int tree_id_; |
| 414 | 420 |
| 415 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 421 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
| 416 }; | 422 }; |
| 417 | 423 |
| 418 } // namespace cc | 424 } // namespace cc |
| 419 | 425 |
| 420 #endif // CC_TREES_LAYER_TREE_HOST_H_ | 426 #endif // CC_TREES_LAYER_TREE_HOST_H_ |
| OLD | NEW |