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

Unified Diff: mojo/examples/surfaces_app/child_gl_impl.h

Issue 504443002: Update mojo surfaces bindings and mojo/cc/ glue (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: gn fixes Created 6 years, 4 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 | « mojo/examples/surfaces_app/child_gl_app.cc ('k') | mojo/examples/surfaces_app/child_gl_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/examples/surfaces_app/child_gl_impl.h
diff --git a/mojo/examples/surfaces_app/child_gl_impl.h b/mojo/examples/surfaces_app/child_gl_impl.h
index e99059164aa6461c6a3c6eb0a77c354c29b64735..57a6b234a0f64b70c2f85355ab9d2af01cd0b702 100644
--- a/mojo/examples/surfaces_app/child_gl_impl.h
+++ b/mojo/examples/surfaces_app/child_gl_impl.h
@@ -7,6 +7,7 @@
#include "base/containers/hash_tables.h"
#include "base/memory/scoped_ptr.h"
+#include "base/memory/weak_ptr.h"
#include "base/time/time.h"
#include "cc/surfaces/surface_id.h"
#include "cc/surfaces/surface_id_allocator.h"
@@ -16,6 +17,7 @@
#include "mojo/public/cpp/bindings/string.h"
#include "mojo/services/public/interfaces/surfaces/surface_id.mojom.h"
#include "mojo/services/public/interfaces/surfaces/surfaces.mojom.h"
+#include "mojo/services/public/interfaces/surfaces/surfaces_service.mojom.h"
#include "third_party/skia/include/core/SkColor.h"
#include "ui/gfx/size.h"
@@ -37,7 +39,6 @@ class ChildGLImpl : public InterfaceImpl<Child>, public SurfaceClient {
virtual ~ChildGLImpl();
// SurfaceClient implementation
- virtual void SetIdNamespace(uint32_t id_namespace) OVERRIDE;
virtual void ReturnResources(Array<ReturnedResourcePtr> resources) OVERRIDE;
private:
@@ -47,12 +48,14 @@ class ChildGLImpl : public InterfaceImpl<Child>, public SurfaceClient {
SizePtr size,
const mojo::Callback<void(SurfaceIdPtr id)>& callback) OVERRIDE;
+ void SurfaceConnectionCreated(SurfacePtr surface, uint32_t id_namespace);
void AllocateSurface();
void Draw();
SkColor color_;
gfx::Size size_;
scoped_ptr<cc::SurfaceIdAllocator> allocator_;
+ SurfacesServicePtr surfaces_service_;
SurfacePtr surface_;
MojoGLES2Context context_;
cc::SurfaceId id_;
@@ -61,6 +64,7 @@ class ChildGLImpl : public InterfaceImpl<Child>, public SurfaceClient {
base::TimeTicks start_time_;
uint32_t next_resource_id_;
base::hash_map<uint32_t, GLuint> id_to_tex_map_;
+ base::WeakPtrFactory<ChildGLImpl> weak_factory_;
DISALLOW_COPY_AND_ASSIGN(ChildGLImpl);
};
« no previous file with comments | « mojo/examples/surfaces_app/child_gl_app.cc ('k') | mojo/examples/surfaces_app/child_gl_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698