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

Unified Diff: services/ui/gpu/gpu_service_internal.h

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/gpu/gpu_main.cc ('k') | services/ui/gpu/gpu_service_internal.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/gpu/gpu_service_internal.h
diff --git a/services/ui/gpu/gpu_service_internal.h b/services/ui/gpu/gpu_service_internal.h
index 8fd4603608d87cb190b9d4335e4b3fb794fc09fc..5b0e25036a76f3991262a0350c741b0c78ba1760 100644
--- a/services/ui/gpu/gpu_service_internal.h
+++ b/services/ui/gpu/gpu_service_internal.h
@@ -21,6 +21,7 @@
#include "gpu/ipc/service/x_util.h"
#include "mojo/public/cpp/bindings/binding.h"
#include "mojo/public/cpp/bindings/binding_set.h"
+#include "services/ui/gpu/interfaces/gpu_service_host.mojom.h"
#include "services/ui/gpu/interfaces/gpu_service_internal.mojom.h"
#include "ui/gfx/native_widget_types.h"
@@ -52,6 +53,7 @@ class GpuServiceInternal : public gpu::GpuChannelManagerDelegate,
~GpuServiceInternal() override;
+ void InitializeWithHost(mojom::GpuServiceHostPtr gpu_host);
void Bind(mojom::GpuServiceInternalRequest request);
private:
@@ -94,7 +96,6 @@ class GpuServiceInternal : public gpu::GpuChannelManagerDelegate,
gpu::SurfaceHandle child_window) override;
#endif
void SetActiveURL(const GURL& url) override;
- void Initialize();
// mojom::GpuServiceInternal:
void EstablishGpuChannel(
@@ -128,6 +129,7 @@ class GpuServiceInternal : public gpu::GpuChannelManagerDelegate,
// Information about the GPU, such as device and vendor ID.
gpu::GPUInfo gpu_info_;
+ mojom::GpuServiceHostPtr gpu_host_;
std::unique_ptr<gpu::SyncPointManager> owned_sync_point_manager_;
std::unique_ptr<gpu::GpuChannelManager> gpu_channel_manager_;
std::unique_ptr<media::MediaGpuChannelManager> media_gpu_channel_manager_;
« no previous file with comments | « services/ui/gpu/gpu_main.cc ('k') | services/ui/gpu/gpu_service_internal.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698