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

Unified Diff: services/ui/public/cpp/gpu/gpu.h

Issue 2514923002: content: Use mus client-lib's gpu-service from renderers. (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 | « content/renderer/renderer_blink_platform_impl.cc ('k') | services/ui/public/cpp/gpu/gpu.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/public/cpp/gpu/gpu.h
diff --git a/services/ui/public/cpp/gpu/gpu.h b/services/ui/public/cpp/gpu/gpu.h
index 021c4f06b6406f25ee1107fcfbdec552d771e79c..c8386681209e603827a29f5f3f0b79365fed6484 100644
--- a/services/ui/public/cpp/gpu/gpu.h
+++ b/services/ui/public/cpp/gpu/gpu.h
@@ -19,6 +19,7 @@
namespace service_manager {
class Connector;
+class InterfaceProvider;
}
namespace ui {
@@ -38,6 +39,9 @@ class Gpu : public gpu::GpuChannelHostFactory,
static std::unique_ptr<Gpu> Create(
service_manager::Connector* connector,
scoped_refptr<base::SingleThreadTaskRunner> task_runner = nullptr);
+ static std::unique_ptr<Gpu> Create(
+ service_manager::InterfaceProvider*,
+ scoped_refptr<base::SingleThreadTaskRunner> task_runner = nullptr);
// gpu::GpuChannelEstablishFactory:
void EstablishGpuChannel(
@@ -49,6 +53,7 @@ class Gpu : public gpu::GpuChannelHostFactory,
friend struct base::DefaultSingletonTraits<Gpu>;
Gpu(service_manager::Connector* connector,
+ service_manager::InterfaceProvider* provider,
scoped_refptr<base::SingleThreadTaskRunner> task_runner);
scoped_refptr<gpu::GpuChannelHost> GetGpuChannel();
@@ -66,11 +71,12 @@ class Gpu : public gpu::GpuChannelHostFactory,
scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_;
scoped_refptr<base::SingleThreadTaskRunner> io_task_runner_;
service_manager::Connector* connector_;
+ service_manager::InterfaceProvider* interface_provider_;
base::WaitableEvent shutdown_event_;
std::unique_ptr<base::Thread> io_thread_;
std::unique_ptr<ClientGpuMemoryBufferManager> gpu_memory_buffer_manager_;
- ui::mojom::GpuPtr gpu_service_;
+ ui::mojom::GpuPtr gpu_;
scoped_refptr<gpu::GpuChannelHost> gpu_channel_;
std::vector<gpu::GpuChannelEstablishedCallback> establish_callbacks_;
« no previous file with comments | « content/renderer/renderer_blink_platform_impl.cc ('k') | services/ui/public/cpp/gpu/gpu.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698