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

Unified Diff: examples/surfaces_app/child_gl_impl.h

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.h
diff --git a/examples/surfaces_app/child_gl_impl.h b/examples/surfaces_app/child_gl_impl.h
index d1dc90b0a692b7fdcc55cd8e3776db413715156e..1acb04cb24db6827bc0e6feb373b8d3a1699dd77 100644
--- a/examples/surfaces_app/child_gl_impl.h
+++ b/examples/surfaces_app/child_gl_impl.h
@@ -30,7 +30,7 @@ class ApplicationConnection;
namespace examples {
// Simple example of a child app using surfaces + GL.
-class ChildGLImpl : public InterfaceImpl<Child>, public SurfaceClient {
+class ChildGLImpl : public InterfaceImpl<Child>, public ResourceReturner {
public:
ChildGLImpl(ApplicationConnection* surfaces_service_connection,
CommandBufferPtr command_buffer);
@@ -44,10 +44,10 @@ class ChildGLImpl : public InterfaceImpl<Child>, public SurfaceClient {
SizePtr size,
const ProduceCallback& callback) override;
- // SurfaceClient implementation
- void SetIdNamespace(uint32_t id_namespace) override;
+ // ResourceReturner implementation
void ReturnResources(Array<ReturnedResourcePtr> resources) override;
+ void SetIdNamespace(uint32_t id_namespace);
void Draw();
void RunProduceCallback();
@@ -62,6 +62,7 @@ class ChildGLImpl : public InterfaceImpl<Child>, public SurfaceClient {
uint32_t next_resource_id_;
base::hash_map<uint32_t, GLuint> id_to_tex_map_;
ProduceCallback produce_callback_;
+ Binding<ResourceReturner> returner_binding_;
DISALLOW_COPY_AND_ASSIGN(ChildGLImpl);
};

Powered by Google App Engine
This is Rietveld 408576698