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

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

Issue 2292723003: Move remaining Blimp feature code to core. (Closed)
Patch Set: Fix build break 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 | « blimp/client/core/compositor/BUILD.gn ('k') | 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_FEATURE_COMPOSITOR_BLIMP_COMPOSITOR_H_ 5 #ifndef BLIMP_CLIENT_CORE_COMPOSITOR_BLIMP_COMPOSITOR_H_
6 #define BLIMP_CLIENT_FEATURE_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"
11 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 #include "blimp/client/core/compositor/blimp_output_surface.h" 12 #include "blimp/client/core/compositor/blimp_output_surface.h"
13 #include "blimp/client/feature/compositor/blimp_input_manager.h" 13 #include "blimp/client/core/input/blimp_input_manager.h"
14 #include "cc/surfaces/surface_factory_client.h" 14 #include "cc/surfaces/surface_factory_client.h"
15 #include "cc/trees/layer_tree_host.h" 15 #include "cc/trees/layer_tree_host.h"
16 #include "cc/trees/layer_tree_host_client.h" 16 #include "cc/trees/layer_tree_host_client.h"
17 #include "cc/trees/layer_tree_settings.h" 17 #include "cc/trees/layer_tree_settings.h"
18 #include "cc/trees/remote_proto_channel.h" 18 #include "cc/trees/remote_proto_channel.h"
19 #include "ui/gfx/geometry/size.h" 19 #include "ui/gfx/geometry/size.h"
20 #include "ui/gfx/native_widget_types.h" 20 #include "ui/gfx/native_widget_types.h"
21 21
22 namespace base { 22 namespace base {
23 class SingleThreadTaskRunner; 23 class SingleThreadTaskRunner;
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 // Helper method to get the embedder dependencies. 158 // Helper method to get the embedder dependencies.
159 CompositorDependencies* GetEmbedderDeps(); 159 CompositorDependencies* GetEmbedderDeps();
160 160
161 // TODO(khushalsagar): Move all of this to the |DocumentView| or another 161 // TODO(khushalsagar): Move all of this to the |DocumentView| or another
162 // platform specific class. So we use the DelegatedFrameHostAndroid like the 162 // platform specific class. So we use the DelegatedFrameHostAndroid like the
163 // RenderWidgetHostViewAndroid. 163 // RenderWidgetHostViewAndroid.
164 void DestroyDelegatedContent(); 164 void DestroyDelegatedContent();
165 165
166 // Helper method to build the internal CC LayerTreeHost instance from 166 // Helper method to build the internal CC LayerTreeHost instance from
167 // |message|. 167 // |message|.
168 void CreateLayerTreeHost( 168 void CreateLayerTreeHost(const cc::proto::InitializeImpl& initialize_message);
169 const cc::proto::InitializeImpl& initialize_message);
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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 std::unique_ptr<BlimpInputManager> input_manager_; 215 std::unique_ptr<BlimpInputManager> input_manager_;
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_FEATURE_COMPOSITOR_BLIMP_COMPOSITOR_H_ 225 #endif // BLIMP_CLIENT_CORE_COMPOSITOR_BLIMP_COMPOSITOR_H_
OLDNEW
« no previous file with comments | « blimp/client/core/compositor/BUILD.gn ('k') | blimp/client/core/compositor/blimp_compositor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698