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

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

Issue 2559113002: mus/gpu: Introduce the GpuServiceHost mojom interface. (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/ws/gpu_service_proxy.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/gpu_service_proxy.cc
diff --git a/services/ui/ws/gpu_service_proxy.cc b/services/ui/ws/gpu_service_proxy.cc
index e956b9ac6adf5025de72b19485f6f9a6c5b68f9e..5a720432e7b6ca270f412a502685d205b6ce9f6c 100644
--- a/services/ui/ws/gpu_service_proxy.cc
+++ b/services/ui/ws/gpu_service_proxy.cc
@@ -98,14 +98,14 @@ class GpuServiceImpl : public mojom::GpuService {
GpuServiceProxy::GpuServiceProxy(GpuServiceProxyDelegate* delegate)
: delegate_(delegate),
next_client_id_(kInternalGpuChannelClientId + 1),
- main_thread_task_runner_(base::ThreadTaskRunnerHandle::Get()) {
+ main_thread_task_runner_(base::ThreadTaskRunnerHandle::Get()),
+ gpu_host_binding_(this) {
gpu_main_impl_ = base::MakeUnique<GpuMain>(GetProxy(&gpu_main_));
gpu_main_impl_->OnStart();
// TODO(sad): Once GPU process is split, this would look like:
// connector->ConnectToInterface("gpu", &gpu_main_);
- gpu_main_->CreateGpuService(
- GetProxy(&gpu_service_),
- base::Bind(&GpuServiceProxy::OnInitialized, base::Unretained(this)));
+ gpu_main_->CreateGpuService(GetProxy(&gpu_service_),
+ gpu_host_binding_.CreateInterfacePtrAndBind());
gpu_memory_buffer_manager_ = base::MakeUnique<MusGpuMemoryBufferManager>(
gpu_service_.get(), next_client_id_++);
}
@@ -127,10 +127,24 @@ void GpuServiceProxy::CreateDisplayCompositor(
gpu_main_->CreateDisplayCompositor(std::move(request), std::move(client));
}
-void GpuServiceProxy::OnInitialized(const gpu::GPUInfo& gpu_info) {
+void GpuServiceProxy::DidInitialize(const gpu::GPUInfo& gpu_info) {
gpu_info_ = gpu_info;
delegate_->OnGpuServiceInitialized();
}
+void GpuServiceProxy::DidCreateOffscreenContext(const GURL& url) {}
+
+void GpuServiceProxy::DidDestroyOffscreenContext(const GURL& url) {}
+
+void GpuServiceProxy::DidDestroyChannel(int32_t client_id) {}
+
+void GpuServiceProxy::DidLoseContext(bool offscreen,
+ gpu::error::ContextLostReason reason,
+ const GURL& active_url) {}
+
+void GpuServiceProxy::StoreShaderToDisk(int32_t client_id,
+ const std::string& key,
+ const std::string& shader) {}
+
} // namespace ws
} // namespace ui
« no previous file with comments | « services/ui/ws/gpu_service_proxy.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698