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

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

Issue 2539893002: Mus: Implement GpuMain mojo interface (Closed)
Patch Set: Addressed Sadrul's comments Created 4 years 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/surfaces/display_compositor.cc ('k') | services/ui/ws/gpu_service_proxy.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_SERVICE_PROXY_H_ 5 #ifndef SERVICES_UI_WS_GPU_SERVICE_PROXY_H_
6 #define SERVICES_UI_WS_GPU_SERVICE_PROXY_H_ 6 #define SERVICES_UI_WS_GPU_SERVICE_PROXY_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"
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 void DestroyGpuMemoryBuffer(gfx::GpuMemoryBufferId id, 57 void DestroyGpuMemoryBuffer(gfx::GpuMemoryBufferId id,
58 const gpu::SyncToken& sync_token) override; 58 const gpu::SyncToken& sync_token) override;
59 59
60 GpuServiceProxyDelegate* const delegate_; 60 GpuServiceProxyDelegate* const delegate_;
61 int32_t next_client_id_; 61 int32_t next_client_id_;
62 scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner_; 62 scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner_;
63 mojom::GpuServiceInternalPtr gpu_service_; 63 mojom::GpuServiceInternalPtr gpu_service_;
64 mojo::BindingSet<mojom::GpuService> bindings_; 64 mojo::BindingSet<mojom::GpuService> bindings_;
65 gpu::GPUInfo gpu_info_; 65 gpu::GPUInfo gpu_info_;
66 std::unique_ptr<MusGpuMemoryBufferManager> gpu_memory_buffer_manager_; 66 std::unique_ptr<MusGpuMemoryBufferManager> gpu_memory_buffer_manager_;
67 GpuMain gpu_main_; 67
68 mojom::GpuMainPtr gpu_main_;
69
70 // TODO(fsamuel): GpuServiceProxy should not be holding onto |gpu_main_impl|
71 // because that will live in another process soon.
72 std::unique_ptr<GpuMain> gpu_main_impl_;
68 73
69 DISALLOW_COPY_AND_ASSIGN(GpuServiceProxy); 74 DISALLOW_COPY_AND_ASSIGN(GpuServiceProxy);
70 }; 75 };
71 76
72 } // namespace ws 77 } // namespace ws
73 } // namespace ui 78 } // namespace ui
74 79
75 #endif // SERVICES_UI_WS_GPU_SERVICE_PROXY_H_ 80 #endif // SERVICES_UI_WS_GPU_SERVICE_PROXY_H_
OLDNEW
« no previous file with comments | « services/ui/surfaces/display_compositor.cc ('k') | services/ui/ws/gpu_service_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698