OLD | NEW |
---|---|
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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_IMPL_H_ | 5 #ifndef CC_TREES_LAYER_TREE_IMPL_H_ |
6 #define CC_TREES_LAYER_TREE_IMPL_H_ | 6 #define CC_TREES_LAYER_TREE_IMPL_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
66 } | 66 } |
67 virtual ~LayerTreeImpl(); | 67 virtual ~LayerTreeImpl(); |
68 | 68 |
69 void Shutdown(); | 69 void Shutdown(); |
70 void ReleaseResources(); | 70 void ReleaseResources(); |
71 | 71 |
72 // Methods called by the layer tree that pass-through or access LTHI. | 72 // Methods called by the layer tree that pass-through or access LTHI. |
73 // --------------------------------------------------------------------------- | 73 // --------------------------------------------------------------------------- |
74 const LayerTreeSettings& settings() const; | 74 const LayerTreeSettings& settings() const; |
75 const RendererCapabilitiesImpl& GetRendererCapabilities() const; | 75 const RendererCapabilitiesImpl& GetRendererCapabilities() const; |
76 ContextProvider* context_provider() const; | 76 scoped_refptr<ContextProvider> context_provider() const; |
danakj
2014/08/25 20:25:01
I don't think we want to add references to this th
dcheng
2014/08/25 20:56:58
This is the logic to try to catch temporary scoped
| |
77 OutputSurface* output_surface() const; | 77 OutputSurface* output_surface() const; |
78 ResourceProvider* resource_provider() const; | 78 ResourceProvider* resource_provider() const; |
79 TileManager* tile_manager() const; | 79 TileManager* tile_manager() const; |
80 FrameRateCounter* frame_rate_counter() const; | 80 FrameRateCounter* frame_rate_counter() const; |
81 PaintTimeCounter* paint_time_counter() const; | 81 PaintTimeCounter* paint_time_counter() const; |
82 MemoryHistory* memory_history() const; | 82 MemoryHistory* memory_history() const; |
83 bool resourceless_software_draw() const; | 83 bool resourceless_software_draw() const; |
84 gfx::Size device_viewport_size() const; | 84 gfx::Size device_viewport_size() const; |
85 bool IsActiveTree() const; | 85 bool IsActiveTree() const; |
86 bool IsPendingTree() const; | 86 bool IsPendingTree() const; |
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
351 | 351 |
352 int render_surface_layer_list_id_; | 352 int render_surface_layer_list_id_; |
353 | 353 |
354 private: | 354 private: |
355 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); | 355 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); |
356 }; | 356 }; |
357 | 357 |
358 } // namespace cc | 358 } // namespace cc |
359 | 359 |
360 #endif // CC_TREES_LAYER_TREE_IMPL_H_ | 360 #endif // CC_TREES_LAYER_TREE_IMPL_H_ |
OLD | NEW |