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

Unified Diff: services/fake_surfaces/fake_surfaces_service_application.cc

Issue 807733002: Split surface id and simplify connecting to surfaces service (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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: services/fake_surfaces/fake_surfaces_service_application.cc
diff --git a/services/fake_surfaces/fake_surfaces_service_application.cc b/services/fake_surfaces/fake_surfaces_service_application.cc
index 8db908e4aa964f8be36362b7b083a042413644b4..70e4aa33eeb0ef52d6654d0df32720e17d063c02 100644
--- a/services/fake_surfaces/fake_surfaces_service_application.cc
+++ b/services/fake_surfaces/fake_surfaces_service_application.cc
@@ -17,11 +17,13 @@ namespace fake_surfaces {
class FakeSurfaceImpl : public mojo::Surface {
public:
FakeSurfaceImpl(uint32_t id_namespace, mojo::SurfacePtr* ptr)
- : binding_(this, ptr) {}
+ : binding_(this, ptr) {
+ binding_.client()->SetIdNamespace(id_namespace);
+ }
~FakeSurfaceImpl() override {}
// mojo::Surface implementation.
- void CreateSurface(mojo::SurfaceIdPtr id, mojo::SizePtr size) override {}
+ void CreateSurface(mojo::SurfaceIdPtr id) override {}
void SubmitFrame(mojo::SurfaceIdPtr id,
mojo::FramePtr frame,

Powered by Google App Engine
This is Rietveld 408576698