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

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

Issue 2276963002: services/ui: Introduce mojom.GpuServiceInternal. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mus-gpu-renames
Patch Set: . Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « services/ui/ws/DEPS ('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 1650c523d92f363664864f0a76a6ffc2d88e42c2..cb90c3c8ddadb1fc92b4d8d9ff47cc7e166f10dc 100644
--- a/services/ui/ws/gpu_service_proxy.h
+++ b/services/ui/ws/gpu_service_proxy.h
@@ -5,8 +5,10 @@
#ifndef SERVICES_UI_WS_GPU_SERVICE_PROXY_H_
#define SERVICES_UI_WS_GPU_SERVICE_PROXY_H_
+#include "gpu/config/gpu_info.h"
#include "mojo/public/cpp/bindings/binding_set.h"
#include "mojo/public/cpp/bindings/interface_request.h"
+#include "services/ui/gpu/interfaces/gpu_service_internal.mojom.h"
#include "services/ui/public/interfaces/gpu_memory_buffer.mojom.h"
#include "services/ui/public/interfaces/gpu_service.mojom.h"
@@ -24,9 +26,14 @@ class GpuServiceProxy : public mojom::GpuService {
void Add(mojom::GpuServiceRequest request);
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 mojom::GpuService::EstablishGpuChannelCallback& callback) override;
+ const EstablishGpuChannelCallback& callback) override;
void CreateGpuMemoryBuffer(
mojom::GpuMemoryBufferIdPtr id,
@@ -40,8 +47,10 @@ class GpuServiceProxy : public mojom::GpuService {
void DestroyGpuMemoryBuffer(mojom::GpuMemoryBufferIdPtr id,
const gpu::SyncToken& sync_token) override;
- GpuServiceInternal* gpu_service_;
+ int32_t next_client_id_;
+ mojom::GpuServiceInternalPtr gpu_service_;
mojo::BindingSet<GpuService> bindings_;
+ gpu::GPUInfo gpu_info_;
DISALLOW_COPY_AND_ASSIGN(GpuServiceProxy);
};
« no previous file with comments | « services/ui/ws/DEPS ('k') | services/ui/ws/gpu_service_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698