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

Unified Diff: mojo/services/surfaces/surfaces_service_impl.cc

Issue 718623004: Use Binding<Interface> in surfaces and gles2 code (Closed) Base URL: git@github.com:domokit/mojo.git@connector
Patch Set: use InterfaceRequest<> instead of InterfaceRequest<>* Created 6 years, 1 month 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 | « mojo/services/surfaces/surfaces_service_impl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/services/surfaces/surfaces_service_impl.cc
diff --git a/mojo/services/surfaces/surfaces_service_impl.cc b/mojo/services/surfaces/surfaces_service_impl.cc
index 919f8a5e1ff3199931af2ba5f52f154311bdf7ce..e0b3ef961383f7a4ce4ba58e3c24d41eb2b06e10 100644
--- a/mojo/services/surfaces/surfaces_service_impl.cc
+++ b/mojo/services/surfaces/surfaces_service_impl.cc
@@ -6,13 +6,17 @@
namespace mojo {
-SurfacesServiceImpl::SurfacesServiceImpl(cc::SurfaceManager* manager,
- uint32_t* next_id_namespace,
- SurfacesImpl::Client* client)
+SurfacesServiceImpl::SurfacesServiceImpl(
+ cc::SurfaceManager* manager,
+ uint32_t* next_id_namespace,
+ SurfacesImpl::Client* client,
+ InterfaceRequest<SurfacesService> request)
: manager_(manager),
next_id_namespace_(next_id_namespace),
- client_(client) {
+ client_(client),
+ binding_(this, request.Pass()) {
}
+
SurfacesServiceImpl::~SurfacesServiceImpl() {
}
@@ -20,7 +24,7 @@ void SurfacesServiceImpl::CreateSurfaceConnection(
const Callback<void(SurfacePtr, uint32_t)>& callback) {
uint32_t id_namespace = (*next_id_namespace_)++;
SurfacePtr surface;
- BindToProxy(new SurfacesImpl(manager_, id_namespace, client_), &surface);
+ new SurfacesImpl(manager_, id_namespace, client_, &surface);
callback.Run(surface.Pass(), id_namespace);
}
« no previous file with comments | « mojo/services/surfaces/surfaces_service_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698