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

Unified Diff: services/gfx/compositor/graph/scene_def.cc

Issue 1682113003: Mojo C++ bindings: Generate InterfaceHandle<> instead of InterfacePtr<>. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: delay InterfacePtr::Create() until you actually need an InterfacePtr. GetProxy() and ConnectToAppl… 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
Index: services/gfx/compositor/graph/scene_def.cc
diff --git a/services/gfx/compositor/graph/scene_def.cc b/services/gfx/compositor/graph/scene_def.cc
index ae772737b1bf24a4d6ab926e66264adaa245e7f0..a23c1088a2376bb4d1a43442fe92e1a62f808248 100644
--- a/services/gfx/compositor/graph/scene_def.cc
+++ b/services/gfx/compositor/graph/scene_def.cc
@@ -5,6 +5,7 @@
#include "services/gfx/compositor/graph/scene_def.h"
#include <ostream>
+#include <utility>
#include "base/bind.h"
#include "base/logging.h"
@@ -292,7 +293,9 @@ ResourceDef* SceneDef::CreateResource(
base::MessageLoop::current()->task_runner(),
base::Bind(
&ReleaseMailboxTexture,
- base::Passed(mailbox_texture_resource_decl->callback.Pass())));
+ base::Passed(
+ mojo::gfx::composition::MailboxTextureCallbackPtr::Create(
+ std::move(mailbox_texture_resource_decl->callback)))));
if (!image) {
err << "Could not create MailboxTexture";
return nullptr;

Powered by Google App Engine
This is Rietveld 408576698