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

Unified Diff: services/ui/ws/gpu_service_proxy.h

Issue 2503113002: mus: Get GpuMemoryBuffer from gpu process when possible. (Closed)
Patch Set: . 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « services/ui/common/mus_gpu_memory_buffer_manager.cc ('k') | services/ui/ws/gpu_service_proxy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/gpu_service_proxy.h
diff --git a/services/ui/ws/gpu_service_proxy.h b/services/ui/ws/gpu_service_proxy.h
index 5687b2e383967025e35a2d4f35780a40ce4ede1e..bf562d1bf29ff4dfc6291c71983abcbe764e19f0 100644
--- a/services/ui/ws/gpu_service_proxy.h
+++ b/services/ui/ws/gpu_service_proxy.h
@@ -18,19 +18,18 @@
namespace ui {
-class GpuServiceInternal;
class MusGpuMemoryBufferManager;
namespace ws {
class GpuServiceProxyDelegate;
-// The proxy implementation that relays requests from clients to the real
-// service implementation in the GPU process over mojom.GpuServiceInternal.
-class GpuServiceProxy : public mojom::GpuService {
+// Sets up connection from clients to the real service implementation in the GPU
+// process.
+class GpuServiceProxy {
public:
explicit GpuServiceProxy(GpuServiceProxyDelegate* delegate);
- ~GpuServiceProxy() override;
+ ~GpuServiceProxy();
void Add(mojom::GpuServiceRequest request);
@@ -40,28 +39,11 @@ class GpuServiceProxy : public mojom::GpuService {
private:
void OnInitialized(const gpu::GPUInfo& gpu_info);
- void OnGpuChannelEstablished(const EstablishGpuChannelCallback& callback,
- int32_t client_id,
- mojo::ScopedMessagePipeHandle channel_handle);
-
- // mojom::GpuService overrides:
- void EstablishGpuChannel(
- const EstablishGpuChannelCallback& callback) override;
- void CreateGpuMemoryBuffer(
- gfx::GpuMemoryBufferId id,
- const gfx::Size& size,
- gfx::BufferFormat format,
- gfx::BufferUsage usage,
- const mojom::GpuService::CreateGpuMemoryBufferCallback& callback)
- override;
- void DestroyGpuMemoryBuffer(gfx::GpuMemoryBufferId id,
- const gpu::SyncToken& sync_token) override;
GpuServiceProxyDelegate* const delegate_;
int32_t next_client_id_;
scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner_;
mojom::GpuServiceInternalPtr gpu_service_;
- mojo::BindingSet<mojom::GpuService> bindings_;
gpu::GPUInfo gpu_info_;
std::unique_ptr<MusGpuMemoryBufferManager> gpu_memory_buffer_manager_;
« no previous file with comments | « services/ui/common/mus_gpu_memory_buffer_manager.cc ('k') | services/ui/ws/gpu_service_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698