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 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 17 matching lines...) Expand all Loading... |
28 | 28 |
29 namespace cc { | 29 namespace cc { |
30 namespace proto { | 30 namespace proto { |
31 class CompositorMessage; | 31 class CompositorMessage; |
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 LayerTreeHost; |
37 class LayerTreeSettings; | 37 class LayerTreeSettings; |
| 38 class LocalFrameid; |
38 class Surface; | 39 class Surface; |
39 class SurfaceFactory; | 40 class SurfaceFactory; |
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 |
47 namespace client { | 47 namespace client { |
48 | 48 |
49 class BlimpCompositorDependencies; | 49 class BlimpCompositorDependencies; |
50 | 50 |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 | 195 |
196 // The SurfaceFactory is bound to the lifetime of the |proxy_client_|. When | 196 // The SurfaceFactory is bound to the lifetime of the |proxy_client_|. When |
197 // detached, the surface factory will be destroyed. | 197 // detached, the surface factory will be destroyed. |
198 std::unique_ptr<cc::SurfaceFactory> surface_factory_; | 198 std::unique_ptr<cc::SurfaceFactory> surface_factory_; |
199 base::WeakPtr<BlimpCompositorFrameSinkProxyClient> proxy_client_; | 199 base::WeakPtr<BlimpCompositorFrameSinkProxyClient> proxy_client_; |
200 | 200 |
201 // Whether or not |host_| has asked for a new CompositorFrameSink. | 201 // Whether or not |host_| has asked for a new CompositorFrameSink. |
202 bool compositor_frame_sink_request_pending_; | 202 bool compositor_frame_sink_request_pending_; |
203 | 203 |
204 // Data for the current frame. | 204 // Data for the current frame. |
205 cc::SurfaceId surface_id_; | 205 cc::LocalFrameId local_frame_id_; |
206 gfx::Size current_surface_size_; | 206 gfx::Size current_surface_size_; |
207 | 207 |
208 base::ThreadChecker thread_checker_; | 208 base::ThreadChecker thread_checker_; |
209 | 209 |
210 // Surfaces related stuff and layer which holds the delegated content from the | 210 // Surfaces related stuff and layer which holds the delegated content from the |
211 // compositor. | 211 // compositor. |
212 std::unique_ptr<cc::SurfaceIdAllocator> surface_id_allocator_; | 212 std::unique_ptr<cc::SurfaceIdAllocator> surface_id_allocator_; |
213 scoped_refptr<cc::Layer> layer_; | 213 scoped_refptr<cc::Layer> layer_; |
214 | 214 |
215 // To be notified of any incoming compositor protos that are specifically sent | 215 // To be notified of any incoming compositor protos that are specifically sent |
(...skipping 20 matching lines...) Expand all Loading... |
236 | 236 |
237 base::WeakPtrFactory<BlimpCompositor> weak_ptr_factory_; | 237 base::WeakPtrFactory<BlimpCompositor> weak_ptr_factory_; |
238 | 238 |
239 DISALLOW_COPY_AND_ASSIGN(BlimpCompositor); | 239 DISALLOW_COPY_AND_ASSIGN(BlimpCompositor); |
240 }; | 240 }; |
241 | 241 |
242 } // namespace client | 242 } // namespace client |
243 } // namespace blimp | 243 } // namespace blimp |
244 | 244 |
245 #endif // BLIMP_CLIENT_CORE_COMPOSITOR_BLIMP_COMPOSITOR_H_ | 245 #endif // BLIMP_CLIENT_CORE_COMPOSITOR_BLIMP_COMPOSITOR_H_ |
OLD | NEW |