Chromium Code Reviews| Index: cc/trees/layer_tree_host.h |
| =================================================================== |
| --- cc/trees/layer_tree_host.h (revision 210393) |
| +++ cc/trees/layer_tree_host.h (working copy) |
| @@ -23,6 +23,7 @@ |
| #include "cc/input/top_controls_state.h" |
| #include "cc/layers/layer_lists.h" |
| #include "cc/output/output_surface.h" |
| +#include "cc/resources/ui_resource_manager.h" |
| #include "cc/scheduler/rate_limiter.h" |
| #include "cc/trees/layer_tree_host_client.h" |
| #include "cc/trees/layer_tree_host_common.h" |
| @@ -62,6 +63,7 @@ |
| class ResourceProvider; |
| class ResourceUpdateQueue; |
| class TopControlsManager; |
| + |
| struct RenderingStats; |
| struct ScrollAndScaleSet; |
| @@ -255,6 +257,17 @@ |
| bool in_paint_layer_contents() const { return in_paint_layer_contents_; } |
| + // UI Resource management |
| + UIResourceId CreateUIResource(scoped_refptr<UIResourceBitmap> bitmap, |
| + UIResourceManagerClient* client); |
| + void UpdateUIResource(UIResourceId uid, |
| + scoped_refptr<UIResourceBitmap> bitmap, |
| + gfx::Rect update_region); |
| + // Deletes a UI resource. May safely be called more than once. |
| + void DeleteUIResource(UIResourceId id); |
| + void UIResourceReady(UIResourceId id); |
|
enne (OOO)
2013/07/09 17:57:48
What does UIResourceReady mean? Does that mean tha
aelias_OOO_until_Jul13
2013/07/09 20:22:19
Yes, it means it's uploaded and ready to draw.
Th
enne (OOO)
2013/07/09 20:32:52
Huh. I guess I'm just curious about what you woul
aelias_OOO_until_Jul13
2013/07/09 20:54:30
My thinking is that the impl-side will always bloc
|
| + void UIResourceLost(UIResourceId id); |
|
enne (OOO)
2013/07/09 17:57:48
Do you think we'll ever want to lose just one reso
aelias_OOO_until_Jul13
2013/07/09 20:22:19
Since the only cause is lost context in the curren
|
| + |
| protected: |
| LayerTreeHost(LayerTreeHostClient* client, const LayerTreeSettings& settings); |
| bool Initialize(scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner); |
| @@ -281,6 +294,13 @@ |
| bool AnimateLayersRecursive(Layer* current, base::TimeTicks time); |
| + |
| + typedef base::hash_map<UIResourceId, UIResourceManagerClient* > |
| + UIResourceClientMap; |
| + UIResourceClientMap ui_resource_client_map_; |
| + int ui_resource_counter_; |
| + |
| + |
| void CalculateLCDTextMetricsCallback(Layer* layer); |
| bool animating_; |