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

Unified Diff: mojo/services/surfaces/surfaces_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_impl.h ('k') | mojo/services/surfaces/surfaces_service_application.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/services/surfaces/surfaces_impl.cc
diff --git a/mojo/services/surfaces/surfaces_impl.cc b/mojo/services/surfaces/surfaces_impl.cc
index 8e385e437f693a45fac4cd2168270ba63d802fa0..6d98c9ddefddb7dea7e039a2300566ef883c855f 100644
--- a/mojo/services/surfaces/surfaces_impl.cc
+++ b/mojo/services/surfaces/surfaces_impl.cc
@@ -17,11 +17,13 @@ namespace mojo {
SurfacesImpl::SurfacesImpl(cc::SurfaceManager* manager,
uint32_t id_namespace,
- Client* client)
+ Client* client,
+ SurfacePtr* surface)
: manager_(manager),
factory_(manager, this),
id_namespace_(id_namespace),
- client_(client) {
+ client_(client),
+ binding_(this, surface) {
}
SurfacesImpl::~SurfacesImpl() {
@@ -92,7 +94,7 @@ void SurfacesImpl::ReturnResources(const cc::ReturnedResourceArray& resources) {
for (size_t i = 0; i < resources.size(); ++i) {
ret[i] = ReturnedResource::From(resources[i]);
}
- client()->ReturnResources(ret.Pass());
+ binding_.client()->ReturnResources(ret.Pass());
}
void SurfacesImpl::DisplayDamaged() {
« no previous file with comments | « mojo/services/surfaces/surfaces_impl.h ('k') | mojo/services/surfaces/surfaces_service_application.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698