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 <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
265 bool animate); | 265 bool animate); |
266 | 266 |
267 HeadsUpDisplayLayer* hud_layer() const { return hud_layer_.get(); } | 267 HeadsUpDisplayLayer* hud_layer() const { return hud_layer_.get(); } |
268 | 268 |
269 Proxy* proxy() const { return proxy_.get(); } | 269 Proxy* proxy() const { return proxy_.get(); } |
270 | 270 |
271 AnimationRegistrar* animation_registrar() const { | 271 AnimationRegistrar* animation_registrar() const { |
272 return animation_registrar_.get(); | 272 return animation_registrar_.get(); |
273 } | 273 } |
274 | 274 |
275 // Obtains a thorough dump of the LayerTreeHost as a value. | |
276 void AsValueInto(base::trace_event::TracedValue* value) const; | |
277 | |
278 bool in_paint_layer_contents() const { return in_paint_layer_contents_; } | 275 bool in_paint_layer_contents() const { return in_paint_layer_contents_; } |
279 | 276 |
280 // CreateUIResource creates a resource given a bitmap. The bitmap is | 277 // CreateUIResource creates a resource given a bitmap. The bitmap is |
281 // generated via an interface function, which is called when initializing the | 278 // generated via an interface function, which is called when initializing the |
282 // resource and when the resource has been lost (due to lost context). The | 279 // resource and when the resource has been lost (due to lost context). The |
283 // parameter of the interface is a single boolean, which indicates whether the | 280 // parameter of the interface is a single boolean, which indicates whether the |
284 // resource has been lost or not. CreateUIResource returns an Id of the | 281 // resource has been lost or not. CreateUIResource returns an Id of the |
285 // resource, which is always positive. | 282 // resource, which is always positive. |
286 virtual UIResourceId CreateUIResource(UIResourceClient* client); | 283 virtual UIResourceId CreateUIResource(UIResourceClient* client); |
287 // Deletes a UI resource. May safely be called more than once. | 284 // Deletes a UI resource. May safely be called more than once. |
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
466 | 463 |
467 uint32_t surface_id_namespace_; | 464 uint32_t surface_id_namespace_; |
468 uint32_t next_surface_sequence_; | 465 uint32_t next_surface_sequence_; |
469 | 466 |
470 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 467 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
471 }; | 468 }; |
472 | 469 |
473 } // namespace cc | 470 } // namespace cc |
474 | 471 |
475 #endif // CC_TREES_LAYER_TREE_HOST_H_ | 472 #endif // CC_TREES_LAYER_TREE_HOST_H_ |
OLD | NEW |