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

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

Issue 2546563002: mus: Reconnect to gpu process when it dies.
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 | « no previous file | 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 514c53b548af6accdb2883721deb96dade77c360..cf037e6f4eb7c2d1706ea69972aa5daaeb1de51c 100644
--- a/services/ui/ws/gpu_service_proxy.h
+++ b/services/ui/ws/gpu_service_proxy.h
@@ -12,6 +12,7 @@
#include "gpu/ipc/client/gpu_channel_host.h"
#include "mojo/public/cpp/bindings/binding_set.h"
#include "mojo/public/cpp/bindings/interface_request.h"
+#include "mojo/public/cpp/bindings/strong_binding.h"
#include "services/ui/gpu/gpu_main.h"
#include "services/ui/gpu/interfaces/gpu_service_internal.mojom.h"
#include "services/ui/public/interfaces/gpu_service.mojom.h"
@@ -39,6 +40,7 @@ class GpuServiceProxy {
private:
void OnInitialized(const gpu::GPUInfo& gpu_info);
+ void OnGpuConnectionGone();
GpuServiceProxyDelegate* const delegate_;
int32_t next_client_id_;
@@ -47,6 +49,7 @@ class GpuServiceProxy {
gpu::GPUInfo gpu_info_;
std::unique_ptr<MusGpuMemoryBufferManager> gpu_memory_buffer_manager_;
GpuMain gpu_main_;
+ std::vector<mojo::StrongBindingPtr<mojom::GpuService>> clients_;
DISALLOW_COPY_AND_ASSIGN(GpuServiceProxy);
};
« no previous file with comments | « no previous file | services/ui/ws/gpu_service_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698