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

Unified Diff: examples/ui/noodles/noodles_view.cc

Issue 1660143006: Mojo C++ bindings: Move MakeProxy() -> InterfacePtr::Create(). (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: fix failed 'gn' 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: examples/ui/noodles/noodles_view.cc
diff --git a/examples/ui/noodles/noodles_view.cc b/examples/ui/noodles/noodles_view.cc
index e48ef79cb5d366284681761e8828f5bb819ca661..991ddad834522e469b1793d6e21f1c2c23a67fd7 100644
--- a/examples/ui/noodles/noodles_view.cc
+++ b/examples/ui/noodles/noodles_view.cc
@@ -7,6 +7,7 @@
#include <math.h>
#include <cstdlib>
+#include <utility>
#include "base/bind.h"
#include "base/logging.h"
@@ -170,9 +171,9 @@ NoodlesView::RasterizerDelegate::~RasterizerDelegate() {}
void NoodlesView::RasterizerDelegate::CreateRasterizer(
mojo::InterfaceHandle<mojo::ApplicationConnector> connector_info,
mojo::InterfaceHandle<mojo::gfx::composition::Scene> scene_info) {
- rasterizer_.reset(
- new Rasterizer(mojo::MakeProxy(connector_info.Pass()).Pass(),
- mojo::MakeProxy(scene_info.Pass()).Pass()));
+ rasterizer_.reset(new Rasterizer(
+ mojo::ApplicationConnectorPtr::Create(std::move(connector_info)),
+ mojo::gfx::composition::ScenePtr::Create(std::move(scene_info))));
}
void NoodlesView::RasterizerDelegate::PublishNextFrame() {
« no previous file with comments | « no previous file | mojo/public/cpp/bindings/interface_ptr.h » ('j') | mojo/public/cpp/bindings/tests/validation_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698