| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 292 HeadsUpDisplayLayer* hud_layer() const { return hud_layer_.get(); } | 292 HeadsUpDisplayLayer* hud_layer() const { return hud_layer_.get(); } |
| 293 | 293 |
| 294 Proxy* proxy() const { return proxy_.get(); } | 294 Proxy* proxy() const { return proxy_.get(); } |
| 295 TaskRunnerProvider* task_runner_provider() const { | 295 TaskRunnerProvider* task_runner_provider() const { |
| 296 return task_runner_provider_.get(); | 296 return task_runner_provider_.get(); |
| 297 } | 297 } |
| 298 AnimationHost* animation_host() const { return animation_host_.get(); } | 298 AnimationHost* animation_host() const { return animation_host_.get(); } |
| 299 | 299 |
| 300 bool in_paint_layer_contents() const { return in_paint_layer_contents_; } | 300 bool in_paint_layer_contents() const { return in_paint_layer_contents_; } |
| 301 | 301 |
| 302 bool has_output_surface() const { return !!current_output_surface_; } |
| 303 |
| 302 // CreateUIResource creates a resource given a bitmap. The bitmap is | 304 // CreateUIResource creates a resource given a bitmap. The bitmap is |
| 303 // generated via an interface function, which is called when initializing the | 305 // generated via an interface function, which is called when initializing the |
| 304 // resource and when the resource has been lost (due to lost context). The | 306 // resource and when the resource has been lost (due to lost context). The |
| 305 // parameter of the interface is a single boolean, which indicates whether the | 307 // parameter of the interface is a single boolean, which indicates whether the |
| 306 // resource has been lost or not. CreateUIResource returns an Id of the | 308 // resource has been lost or not. CreateUIResource returns an Id of the |
| 307 // resource, which is always positive. | 309 // resource, which is always positive. |
| 308 virtual UIResourceId CreateUIResource(UIResourceClient* client); | 310 virtual UIResourceId CreateUIResource(UIResourceClient* client); |
| 309 // Deletes a UI resource. May safely be called more than once. | 311 // Deletes a UI resource. May safely be called more than once. |
| 310 virtual void DeleteUIResource(UIResourceId id); | 312 virtual void DeleteUIResource(UIResourceId id); |
| 311 // Put the recreation of all UI resources into the resource queue after they | 313 // Put the recreation of all UI resources into the resource queue after they |
| (...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 610 uint32_t surface_client_id_; | 612 uint32_t surface_client_id_; |
| 611 uint32_t next_surface_sequence_; | 613 uint32_t next_surface_sequence_; |
| 612 uint32_t num_consecutive_frames_suitable_for_gpu_ = 0; | 614 uint32_t num_consecutive_frames_suitable_for_gpu_ = 0; |
| 613 | 615 |
| 614 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 616 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
| 615 }; | 617 }; |
| 616 | 618 |
| 617 } // namespace cc | 619 } // namespace cc |
| 618 | 620 |
| 619 #endif // CC_TREES_LAYER_TREE_HOST_H_ | 621 #endif // CC_TREES_LAYER_TREE_HOST_H_ |
| OLD | NEW |