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 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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::LayerTreeHostInterface> host_; | 181 std::unique_ptr<cc::LayerTreeHostInterface> host_; |
182 | 182 |
183 // Whether or not |host_| should be visible. This is stored in case |host_| | |
184 // is null when SetVisible() is called. | |
185 bool host_should_be_visible_; | |
186 | |
187 // The SurfaceFactory is bound to the lifetime of the BlimpOutputSurface. When | 183 // The SurfaceFactory is bound to the lifetime of the BlimpOutputSurface. When |
188 // detached, the surface factory will be destroyed. | 184 // detached, the surface factory will be destroyed. |
189 std::unique_ptr<cc::SurfaceFactory> surface_factory_; | 185 std::unique_ptr<cc::SurfaceFactory> surface_factory_; |
190 base::WeakPtr<BlimpOutputSurface> output_surface_; | 186 base::WeakPtr<BlimpOutputSurface> output_surface_; |
191 | 187 |
192 // Whether or not |host_| has asked for an output surface. | 188 // Whether or not |host_| has asked for an output surface. |
193 bool output_surface_request_pending_; | 189 bool output_surface_request_pending_; |
194 | 190 |
195 // Data for the current frame. | 191 // Data for the current frame. |
196 cc::SurfaceId surface_id_; | 192 cc::SurfaceId surface_id_; |
(...skipping 19 matching lines...) Expand all Loading... |
216 | 212 |
217 base::WeakPtrFactory<BlimpCompositor> weak_ptr_factory_; | 213 base::WeakPtrFactory<BlimpCompositor> weak_ptr_factory_; |
218 | 214 |
219 DISALLOW_COPY_AND_ASSIGN(BlimpCompositor); | 215 DISALLOW_COPY_AND_ASSIGN(BlimpCompositor); |
220 }; | 216 }; |
221 | 217 |
222 } // namespace client | 218 } // namespace client |
223 } // namespace blimp | 219 } // namespace blimp |
224 | 220 |
225 #endif // BLIMP_CLIENT_CORE_COMPOSITOR_BLIMP_COMPOSITOR_H_ | 221 #endif // BLIMP_CLIENT_CORE_COMPOSITOR_BLIMP_COMPOSITOR_H_ |
OLD | NEW |