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

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

Issue 2617883002: Add a new BindInterface() method to Connector. (Closed)
Patch Set: . Created 3 years, 11 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
Index: services/ui/public/cpp/gpu/gpu.cc
diff --git a/services/ui/public/cpp/gpu/gpu.cc b/services/ui/public/cpp/gpu/gpu.cc
index d2adfda22132fec1006ce5db3e639342ce124eca..06238988ac9cfa9d4b02527955740b3cf5a3a21e 100644
--- a/services/ui/public/cpp/gpu/gpu.cc
+++ b/services/ui/public/cpp/gpu/gpu.cc
@@ -30,7 +30,7 @@ Gpu::Gpu(service_manager::Connector* connector,
DCHECK(connector_ || interface_provider_);
mojom::GpuPtr gpu_ptr;
if (connector_)
- connector_->ConnectToInterface(ui::mojom::kServiceName, &gpu_ptr);
+ connector_->BindInterface(ui::mojom::kServiceName, &gpu_ptr);
else
interface_provider_->GetInterface(&gpu_ptr);
gpu_memory_buffer_manager_ =
@@ -101,7 +101,7 @@ void Gpu::EstablishGpuChannel(
return;
if (connector_)
- connector_->ConnectToInterface(ui::mojom::kServiceName, &gpu_);
+ connector_->BindInterface(ui::mojom::kServiceName, &gpu_);
else
interface_provider_->GetInterface(&gpu_);
gpu_->EstablishGpuChannel(
@@ -117,7 +117,7 @@ scoped_refptr<gpu::GpuChannelHost> Gpu::EstablishGpuChannelSync() {
mojo::ScopedMessagePipeHandle channel_handle;
gpu::GPUInfo gpu_info;
if (connector_)
- connector_->ConnectToInterface(ui::mojom::kServiceName, &gpu_);
+ connector_->BindInterface(ui::mojom::kServiceName, &gpu_);
else
interface_provider_->GetInterface(&gpu_);
« no previous file with comments | « services/ui/ime/test_ime_driver/test_ime_application.cc ('k') | services/ui/public/cpp/window_tree_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698