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