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

Side by Side Diff: services/ui/ws/gpu_host.h

Issue 2939953004: viz: Move some code into //components/viz/common. (Closed)
Patch Set: . Created 3 years, 6 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 | « services/ui/ws/gpu_client.cc ('k') | services/ui/ws/gpu_host.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_WS_GPU_HOST_H_ 5 #ifndef SERVICES_UI_WS_GPU_HOST_H_
6 #define SERVICES_UI_WS_GPU_HOST_H_ 6 #define SERVICES_UI_WS_GPU_HOST_H_
7 7
8 #include "base/single_thread_task_runner.h" 8 #include "base/single_thread_task_runner.h"
9 #include "base/synchronization/waitable_event.h" 9 #include "base/synchronization/waitable_event.h"
10 #include "base/threading/thread.h" 10 #include "base/threading/thread.h"
11 #include "gpu/config/gpu_info.h" 11 #include "gpu/config/gpu_info.h"
12 #include "gpu/ipc/client/gpu_channel_host.h" 12 #include "gpu/ipc/client/gpu_channel_host.h"
13 #include "mojo/public/cpp/bindings/binding_set.h" 13 #include "mojo/public/cpp/bindings/binding_set.h"
14 #include "mojo/public/cpp/bindings/interface_request.h" 14 #include "mojo/public/cpp/bindings/interface_request.h"
15 #include "mojo/public/cpp/bindings/strong_binding_set.h" 15 #include "mojo/public/cpp/bindings/strong_binding_set.h"
16 #include "services/ui/gpu/gpu_main.h" 16 #include "services/ui/gpu/gpu_main.h"
17 #include "services/ui/gpu/interfaces/gpu_host.mojom.h" 17 #include "services/ui/gpu/interfaces/gpu_host.mojom.h"
18 #include "services/ui/gpu/interfaces/gpu_service.mojom.h" 18 #include "services/ui/gpu/interfaces/gpu_service.mojom.h"
19 #include "services/ui/public/interfaces/gpu.mojom.h" 19 #include "services/ui/public/interfaces/gpu.mojom.h"
20 20
21 namespace viz {
22 class ServerGpuMemoryBufferManager;
23 }
24
21 namespace ui { 25 namespace ui {
22 26
23 class ServerGpuMemoryBufferManager;
24
25 namespace ws { 27 namespace ws {
26 28
27 class GpuClient; 29 class GpuClient;
28 30
29 namespace test { 31 namespace test {
30 class GpuHostTest; 32 class GpuHostTest;
31 } // namespace test 33 } // namespace test
32 34
33 class GpuHostDelegate; 35 class GpuHostDelegate;
34 36
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 void RecordLogMessage(int32_t severity, 88 void RecordLogMessage(int32_t severity,
87 const std::string& header, 89 const std::string& header,
88 const std::string& message) override; 90 const std::string& message) override;
89 91
90 GpuHostDelegate* const delegate_; 92 GpuHostDelegate* const delegate_;
91 int32_t next_client_id_; 93 int32_t next_client_id_;
92 scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner_; 94 scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner_;
93 mojom::GpuServicePtr gpu_service_; 95 mojom::GpuServicePtr gpu_service_;
94 mojo::Binding<mojom::GpuHost> gpu_host_binding_; 96 mojo::Binding<mojom::GpuHost> gpu_host_binding_;
95 gpu::GPUInfo gpu_info_; 97 gpu::GPUInfo gpu_info_;
96 std::unique_ptr<ServerGpuMemoryBufferManager> gpu_memory_buffer_manager_; 98 std::unique_ptr<viz::ServerGpuMemoryBufferManager> gpu_memory_buffer_manager_;
97 99
98 mojom::GpuMainPtr gpu_main_; 100 mojom::GpuMainPtr gpu_main_;
99 101
100 // TODO(fsamuel): GpuHost should not be holding onto |gpu_main_impl| 102 // TODO(fsamuel): GpuHost should not be holding onto |gpu_main_impl|
101 // because that will live in another process soon. 103 // because that will live in another process soon.
102 std::unique_ptr<GpuMain> gpu_main_impl_; 104 std::unique_ptr<GpuMain> gpu_main_impl_;
103 105
104 mojo::StrongBindingSet<mojom::Gpu> gpu_bindings_; 106 mojo::StrongBindingSet<mojom::Gpu> gpu_bindings_;
105 107
106 DISALLOW_COPY_AND_ASSIGN(DefaultGpuHost); 108 DISALLOW_COPY_AND_ASSIGN(DefaultGpuHost);
107 }; 109 };
108 110
109 } // namespace ws 111 } // namespace ws
110 } // namespace ui 112 } // namespace ui
111 113
112 #endif // SERVICES_UI_WS_GPU_HOST_H_ 114 #endif // SERVICES_UI_WS_GPU_HOST_H_
OLDNEW
« no previous file with comments | « services/ui/ws/gpu_client.cc ('k') | services/ui/ws/gpu_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698