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

Side by Side Diff: services/ui/gpu/gpu_main.h

Issue 2342003003: [WIP] Mus: Pass the mojo connector to OzonePlatform::InitializeForGPU (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 | « gpu/ipc/service/gpu_init.cc ('k') | services/ui/gpu/gpu_main.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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 SERVICES_UI_GPU_GPU_MAIN_H_ 5 #ifndef SERVICES_UI_GPU_GPU_MAIN_H_
6 #define SERVICES_UI_GPU_GPU_MAIN_H_ 6 #define SERVICES_UI_GPU_GPU_MAIN_H_
7 7
8 #include "gpu/ipc/service/gpu_init.h" 8 #include "gpu/ipc/service/gpu_init.h"
9 #include "services/ui/gpu/interfaces/gpu_service_internal.mojom.h" 9 #include "services/ui/gpu/interfaces/gpu_service_internal.mojom.h"
10 10
11 namespace shell {
12 class Connector;
13 }
14
11 namespace gpu { 15 namespace gpu {
12 class GpuMemoryBufferFactory; 16 class GpuMemoryBufferFactory;
13 } 17 }
14 18
15 namespace ui { 19 namespace ui {
16 20
17 class GpuServiceInternal; 21 class GpuServiceInternal;
18 22
19 class GpuMain : public gpu::GpuSandboxHelper { 23 class GpuMain : public gpu::GpuSandboxHelper {
20 public: 24 public:
21 GpuMain(); 25 explicit GpuMain(shell::Connector* connector);
22 ~GpuMain() override; 26 ~GpuMain() override;
23 27
24 void Add(mojom::GpuServiceInternalRequest request); 28 void Add(mojom::GpuServiceInternalRequest request);
25 29
26 GpuServiceInternal* gpu_service() { return gpu_service_internal_.get(); } 30 GpuServiceInternal* gpu_service() { return gpu_service_internal_.get(); }
27 31
28 private: 32 private:
29 // gpu::GpuSandboxHelper: 33 // gpu::GpuSandboxHelper:
30 void PreSandboxStartup() override; 34 void PreSandboxStartup() override;
31 bool EnsureSandboxInitialized() override; 35 bool EnsureSandboxInitialized() override;
32 36
33 std::unique_ptr<GpuServiceInternal> gpu_service_internal_; 37 std::unique_ptr<GpuServiceInternal> gpu_service_internal_;
34 gpu::GpuInit gpu_init_; 38 gpu::GpuInit gpu_init_;
35 std::unique_ptr<gpu::GpuMemoryBufferFactory> gpu_memory_buffer_factory_; 39 std::unique_ptr<gpu::GpuMemoryBufferFactory> gpu_memory_buffer_factory_;
36 40
37 DISALLOW_COPY_AND_ASSIGN(GpuMain); 41 DISALLOW_COPY_AND_ASSIGN(GpuMain);
38 }; 42 };
39 43
40 } // namespace ui 44 } // namespace ui
41 45
42 #endif // SERVICES_UI_GPU_GPU_MAIN_H_ 46 #endif // SERVICES_UI_GPU_GPU_MAIN_H_
OLDNEW
« no previous file with comments | « gpu/ipc/service/gpu_init.cc ('k') | services/ui/gpu/gpu_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698