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

Unified Diff: examples/surfaces_app/child_impl.h

Issue 826423008: Use local ids for Surfaces APIs that can only apply to local surfaces (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
« no previous file with comments | « examples/surfaces_app/child_gl_impl.cc ('k') | examples/surfaces_app/child_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: examples/surfaces_app/child_impl.h
diff --git a/examples/surfaces_app/child_impl.h b/examples/surfaces_app/child_impl.h
index 408a0f31d6efd012ac395c822055f5ca8b5aa0ef..f915bd52227295ce08399f5a09ae4b6f705e44b2 100644
--- a/examples/surfaces_app/child_impl.h
+++ b/examples/surfaces_app/child_impl.h
@@ -40,19 +40,20 @@ class ChildImpl : public InterfaceImpl<Child>, public SurfaceClient {
~ChildImpl() override;
private:
+ using ProduceCallback = mojo::Callback<void(SurfaceIdPtr id)>;
+
// SurfaceClient implementation
void SetIdNamespace(uint32_t id_namespace) override;
void ReturnResources(Array<ReturnedResourcePtr> resources) override;
// Child implementation.
- void ProduceFrame(
- ColorPtr color,
- SizePtr size,
- const mojo::Callback<void(SurfaceIdPtr id)>& callback) override;
+ void ProduceFrame(ColorPtr color,
+ SizePtr size,
+ const ProduceCallback& callback) override;
scoped_ptr<cc::SurfaceIdAllocator> allocator_;
SurfacePtr surface_;
- cc::SurfaceId id_;
+ uint32_t id_namespace_;
DISALLOW_COPY_AND_ASSIGN(ChildImpl);
};
« no previous file with comments | « examples/surfaces_app/child_gl_impl.cc ('k') | examples/surfaces_app/child_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698