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 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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. | 275 // Obtains a thorough dump of the LayerTreeHost as a value. |
276 void AsValueInto(base::debug::TracedValue* value) const; | 276 void AsValueInto(base::trace_event::TracedValue* value) const; |
277 | 277 |
278 bool in_paint_layer_contents() const { return in_paint_layer_contents_; } | 278 bool in_paint_layer_contents() const { return in_paint_layer_contents_; } |
279 | 279 |
280 // CreateUIResource creates a resource given a bitmap. The bitmap is | 280 // CreateUIResource creates a resource given a bitmap. The bitmap is |
281 // generated via an interface function, which is called when initializing the | 281 // 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 | 282 // 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 | 283 // 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 | 284 // resource has been lost or not. CreateUIResource returns an Id of the |
285 // resource, which is always positive. | 285 // resource, which is always positive. |
286 virtual UIResourceId CreateUIResource(UIResourceClient* client); | 286 virtual UIResourceId CreateUIResource(UIResourceClient* client); |
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
480 | 480 |
481 uint32_t surface_id_namespace_; | 481 uint32_t surface_id_namespace_; |
482 uint32_t next_surface_sequence_; | 482 uint32_t next_surface_sequence_; |
483 | 483 |
484 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 484 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
485 }; | 485 }; |
486 | 486 |
487 } // namespace cc | 487 } // namespace cc |
488 | 488 |
489 #endif // CC_TREES_LAYER_TREE_HOST_H_ | 489 #endif // CC_TREES_LAYER_TREE_HOST_H_ |
OLD | NEW |