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

Unified Diff: examples/surfaces_app/child_gl_impl.cc

Issue 871373015: De-Client Surface interface (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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/surfaces_app/child_gl_impl.cc
diff --git a/examples/surfaces_app/child_gl_impl.cc b/examples/surfaces_app/child_gl_impl.cc
index fd27ca6c53831b95d0f165647b175926170cb7e1..1264e4972859bbbd227abeef05e9fce051f5bab6 100644
--- a/examples/surfaces_app/child_gl_impl.cc
+++ b/examples/surfaces_app/child_gl_impl.cc
@@ -49,9 +49,14 @@ ChildGLImpl::ChildGLImpl(ApplicationConnection* surfaces_service_connection,
: id_namespace_(0u),
local_id_(1u),
start_time_(base::TimeTicks::Now()),
- next_resource_id_(1) {
+ next_resource_id_(1),
+ returner_binding_(this) {
surfaces_service_connection->ConnectToService(&surface_);
- surface_.set_client(this);
+ surface_->GetIdNamespace(
+ base::Bind(&ChildGLImpl::SetIdNamespace, base::Unretained(this)));
+ ResourceReturnerPtr returner_ptr;
+ returner_binding_.Bind(GetProxy(&returner_ptr));
+ surface_->SetResourceReturner(returner_ptr.Pass());
context_ =
MojoGLES2CreateContext(command_buffer.PassMessagePipe().release().value(),
&ContextLostThunk,

Powered by Google App Engine
This is Rietveld 408576698