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

Unified Diff: services/gfx/compositor/compositor_impl.cc

Issue 1682113003: Mojo C++ bindings: Generate InterfaceHandle<> instead of InterfacePtr<>. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: rebase ontop of master, address trung's comments Created 4 years, 10 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
« no previous file with comments | « services/gfx/compositor/compositor_impl.h ('k') | services/gfx/compositor/graph/scene_def.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/gfx/compositor/compositor_impl.cc
diff --git a/services/gfx/compositor/compositor_impl.cc b/services/gfx/compositor/compositor_impl.cc
index 5d140030fc665fd31aa9fba01a64f65cc068fe01..56ed4f5658b9c63a5c1303639bcb62fd2d6d6cd3 100644
--- a/services/gfx/compositor/compositor_impl.cc
+++ b/services/gfx/compositor/compositor_impl.cc
@@ -4,6 +4,8 @@
#include "services/gfx/compositor/compositor_impl.h"
+#include <utility>
+
#include "services/gfx/compositor/scene_impl.h"
namespace compositor {
@@ -22,10 +24,10 @@ void CompositorImpl::CreateScene(
}
void CompositorImpl::CreateRenderer(
- mojo::ContextProviderPtr context_provider,
+ mojo::InterfaceHandle<mojo::ContextProvider> context_provider,
mojo::InterfaceRequest<mojo::gfx::composition::Renderer> renderer_request,
const mojo::String& label) {
- engine_->CreateRenderer(context_provider.Pass(), renderer_request.Pass(),
+ engine_->CreateRenderer(std::move(context_provider), renderer_request.Pass(),
label);
}
« no previous file with comments | « services/gfx/compositor/compositor_impl.h ('k') | services/gfx/compositor/graph/scene_def.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698