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

Unified Diff: examples/surfaces_app/child_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_impl.cc
diff --git a/examples/surfaces_app/child_impl.cc b/examples/surfaces_app/child_impl.cc
index de5279eaf77a14c6c11f5b418cd2a906670b3a63..7224c632f641d8ddb851e336866a3072d73d5425 100644
--- a/examples/surfaces_app/child_impl.cc
+++ b/examples/surfaces_app/child_impl.cc
@@ -33,7 +33,8 @@ static const uint32_t kLocalId = 1u;
ChildImpl::ChildImpl(ApplicationConnection* surfaces_service_connection)
: id_namespace_(0u) {
surfaces_service_connection->ConnectToService(&surface_);
- surface_.set_client(this);
+ surface_->GetIdNamespace(
+ base::Bind(&ChildImpl::SetIdNamespace, base::Unretained(this)));
surface_.WaitForIncomingMethodCall(); // Wait for ID namespace to arrive.
DCHECK_NE(0u, id_namespace_);
}
@@ -46,11 +47,6 @@ void ChildImpl::SetIdNamespace(uint32_t id_namespace) {
id_namespace_ = id_namespace;
}
-void ChildImpl::ReturnResources(
- Array<ReturnedResourcePtr> resources) {
- DCHECK(!resources.size());
-}
-
void ChildImpl::ProduceFrame(ColorPtr color,
SizePtr size_ptr,
const ProduceCallback& callback) {

Powered by Google App Engine
This is Rietveld 408576698