OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 BLIMP_CLIENT_CORE_COMPOSITOR_BLIMP_COMPOSITOR_H_ | 5 #ifndef BLIMP_CLIENT_CORE_COMPOSITOR_BLIMP_COMPOSITOR_H_ |
6 #define BLIMP_CLIENT_CORE_COMPOSITOR_BLIMP_COMPOSITOR_H_ | 6 #define BLIMP_CLIENT_CORE_COMPOSITOR_BLIMP_COMPOSITOR_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 14 matching lines...) Expand all Loading... |
25 class Thread; | 25 class Thread; |
26 } // namespace base | 26 } // namespace base |
27 | 27 |
28 namespace cc { | 28 namespace cc { |
29 namespace proto { | 29 namespace proto { |
30 class CompositorMessage; | 30 class CompositorMessage; |
31 } // namespace proto | 31 } // namespace proto |
32 | 32 |
33 class ContextProvider; | 33 class ContextProvider; |
34 class Layer; | 34 class Layer; |
35 class LayerTreeHost; | 35 class LayerTreeHostInterface; |
36 class LayerTreeSettings; | 36 class LayerTreeSettings; |
37 class Surface; | 37 class Surface; |
38 class SurfaceFactory; | 38 class SurfaceFactory; |
39 class SurfaceId; | 39 class SurfaceId; |
40 class SurfaceIdAllocator; | 40 class SurfaceIdAllocator; |
41 } // namespace cc | 41 } // namespace cc |
42 | 42 |
43 namespace blimp { | 43 namespace blimp { |
44 class BlimpMessage; | 44 class BlimpMessage; |
45 | 45 |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 // associated state. | 171 // associated state. |
172 void DestroyLayerTreeHost(); | 172 void DestroyLayerTreeHost(); |
173 | 173 |
174 // The unique identifier for the render widget for this compositor. | 174 // The unique identifier for the render widget for this compositor. |
175 const int render_widget_id_; | 175 const int render_widget_id_; |
176 | 176 |
177 BlimpCompositorClient* client_; | 177 BlimpCompositorClient* client_; |
178 | 178 |
179 BlimpCompositorDependencies* compositor_dependencies_; | 179 BlimpCompositorDependencies* compositor_dependencies_; |
180 | 180 |
181 std::unique_ptr<cc::LayerTreeHost> host_; | 181 std::unique_ptr<cc::LayerTreeHostInterface> host_; |
182 | 182 |
183 // Whether or not |host_| should be visible. This is stored in case |host_| | 183 // Whether or not |host_| should be visible. This is stored in case |host_| |
184 // is null when SetVisible() is called. | 184 // is null when SetVisible() is called. |
185 bool host_should_be_visible_; | 185 bool host_should_be_visible_; |
186 | 186 |
187 // The SurfaceFactory is bound to the lifetime of the BlimpOutputSurface. When | 187 // The SurfaceFactory is bound to the lifetime of the BlimpOutputSurface. When |
188 // detached, the surface factory will be destroyed. | 188 // detached, the surface factory will be destroyed. |
189 std::unique_ptr<cc::SurfaceFactory> surface_factory_; | 189 std::unique_ptr<cc::SurfaceFactory> surface_factory_; |
190 base::WeakPtr<BlimpOutputSurface> output_surface_; | 190 base::WeakPtr<BlimpOutputSurface> output_surface_; |
191 | 191 |
(...skipping 24 matching lines...) Expand all Loading... |
216 | 216 |
217 base::WeakPtrFactory<BlimpCompositor> weak_ptr_factory_; | 217 base::WeakPtrFactory<BlimpCompositor> weak_ptr_factory_; |
218 | 218 |
219 DISALLOW_COPY_AND_ASSIGN(BlimpCompositor); | 219 DISALLOW_COPY_AND_ASSIGN(BlimpCompositor); |
220 }; | 220 }; |
221 | 221 |
222 } // namespace client | 222 } // namespace client |
223 } // namespace blimp | 223 } // namespace blimp |
224 | 224 |
225 #endif // BLIMP_CLIENT_CORE_COMPOSITOR_BLIMP_COMPOSITOR_H_ | 225 #endif // BLIMP_CLIENT_CORE_COMPOSITOR_BLIMP_COMPOSITOR_H_ |
OLD | NEW |