Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(519)

Side by Side Diff: blimp/client/core/compositor/blimp_compositor.h

Issue 2314933004: cc/blimp: Remove the LayerTreeSettings serialization. (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | blimp/client/core/compositor/blimp_compositor.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 10 matching lines...) Expand all
21 #include "ui/gfx/native_widget_types.h" 21 #include "ui/gfx/native_widget_types.h"
22 22
23 namespace base { 23 namespace base {
24 class SingleThreadTaskRunner; 24 class SingleThreadTaskRunner;
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 class InitializeImpl;
32 } // namespace proto 31 } // namespace proto
33 32
34 class ContextProvider; 33 class ContextProvider;
35 class Layer; 34 class Layer;
36 class LayerTreeHost; 35 class LayerTreeHost;
37 class LayerTreeSettings; 36 class LayerTreeSettings;
38 class Surface; 37 class Surface;
39 class SurfaceFactory; 38 class SurfaceFactory;
40 class SurfaceId; 39 class SurfaceId;
41 class SurfaceIdAllocator; 40 class SurfaceIdAllocator;
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 // Helper method to get the embedder dependencies. 158 // Helper method to get the embedder dependencies.
160 CompositorDependencies* GetEmbedderDeps(); 159 CompositorDependencies* GetEmbedderDeps();
161 160
162 // TODO(khushalsagar): Move all of this to the |DocumentView| or another 161 // TODO(khushalsagar): Move all of this to the |DocumentView| or another
163 // platform specific class. So we use the DelegatedFrameHostAndroid like the 162 // platform specific class. So we use the DelegatedFrameHostAndroid like the
164 // RenderWidgetHostViewAndroid. 163 // RenderWidgetHostViewAndroid.
165 void DestroyDelegatedContent(); 164 void DestroyDelegatedContent();
166 165
167 // Helper method to build the internal CC LayerTreeHost instance from 166 // Helper method to build the internal CC LayerTreeHost instance from
168 // |message|. 167 // |message|.
169 void CreateLayerTreeHost(const cc::proto::InitializeImpl& initialize_message); 168 void CreateLayerTreeHost();
170 169
171 // Helper method to destroy the internal CC LayerTreeHost instance and all its 170 // Helper method to destroy the internal CC LayerTreeHost instance and all its
172 // associated state. 171 // associated state.
173 void DestroyLayerTreeHost(); 172 void DestroyLayerTreeHost();
174 173
175 // The unique identifier for the render widget for this compositor. 174 // The unique identifier for the render widget for this compositor.
176 const int render_widget_id_; 175 const int render_widget_id_;
177 176
178 BlimpCompositorClient* client_; 177 BlimpCompositorClient* client_;
179 178
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 216
218 base::WeakPtrFactory<BlimpCompositor> weak_ptr_factory_; 217 base::WeakPtrFactory<BlimpCompositor> weak_ptr_factory_;
219 218
220 DISALLOW_COPY_AND_ASSIGN(BlimpCompositor); 219 DISALLOW_COPY_AND_ASSIGN(BlimpCompositor);
221 }; 220 };
222 221
223 } // namespace client 222 } // namespace client
224 } // namespace blimp 223 } // namespace blimp
225 224
226 #endif // BLIMP_CLIENT_CORE_COMPOSITOR_BLIMP_COMPOSITOR_H_ 225 #endif // BLIMP_CLIENT_CORE_COMPOSITOR_BLIMP_COMPOSITOR_H_
OLDNEW
« no previous file with comments | « no previous file | blimp/client/core/compositor/blimp_compositor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698