Chromium Code Reviews| Index: cc/trees/layer_tree_host.h |
| diff --git a/cc/trees/layer_tree_host.h b/cc/trees/layer_tree_host.h |
| index 5610ff703430ad2fd8e0630e05e8b64c01de46c8..606e472712fcc6785fb06b43564e9c064f6384e1 100644 |
| --- a/cc/trees/layer_tree_host.h |
| +++ b/cc/trees/layer_tree_host.h |
| @@ -54,7 +54,7 @@ class CC_EXPORT LayerTreeHost { |
| // Returns the UIResourceManager used to create UIResources for |
| // UIResourceLayers pushed to the LayerTree. |
| - virtual UIResourceManager* GetUIResourceManager() const = 0; |
| + virtual UIResourceManager* GetUIResourceManager() = 0; |
|
danakj
2016/09/30 22:37:13
can stay const?
Khushal
2016/10/01 00:53:48
Done.
|
| // Returns the TaskRunnerProvider used to access the main and compositor |
| // thread task runners. |
| @@ -199,6 +199,10 @@ class CC_EXPORT LayerTreeHost { |
| // The LayerTreeHost tracks whether the content is suitable for Gpu raster. |
| // Calling this will reset it back to not suitable state. |
| virtual void ResetGpuRasterizationTracking() = 0; |
| + |
| + protected: |
| + // Used to generate a unique identifier for a LayerTreeHost. |
| + static int GenerateHostId(); |
|
danakj
2016/09/30 22:37:13
Ya, prefer to keep this inside each impl.
Khushal
2016/10/01 00:53:48
Done.
|
| }; |
| } // namespace cc |