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

Unified Diff: services/gfx/compositor/scene_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/scene_impl.h ('k') | services/gles2/command_buffer_driver.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/gfx/compositor/scene_impl.cc
diff --git a/services/gfx/compositor/scene_impl.cc b/services/gfx/compositor/scene_impl.cc
index c02486e67bc8dc264c0b60c5097fb384dde08cf4..5db165cd110d71fbde3e083c104a5bafbea9ece1 100644
--- a/services/gfx/compositor/scene_impl.cc
+++ b/services/gfx/compositor/scene_impl.cc
@@ -4,6 +4,8 @@
#include "services/gfx/compositor/scene_impl.h"
+#include <utility>
+
#include "base/bind.h"
#include "base/bind_helpers.h"
@@ -25,8 +27,10 @@ SceneImpl::SceneImpl(
SceneImpl::~SceneImpl() {}
-void SceneImpl::SetListener(mojo::gfx::composition::SceneListenerPtr listener) {
- engine_->SetListener(state_, listener.Pass());
+void SceneImpl::SetListener(
+ mojo::InterfaceHandle<mojo::gfx::composition::SceneListener> listener) {
+ engine_->SetListener(state_, mojo::gfx::composition::SceneListenerPtr::Create(
+ std::move(listener)));
}
void SceneImpl::Update(mojo::gfx::composition::SceneUpdatePtr update) {
« no previous file with comments | « services/gfx/compositor/scene_impl.h ('k') | services/gles2/command_buffer_driver.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698