Chromium Code Reviews| Index: mojo/cc/output_surface_mojo.h |
| diff --git a/mojo/cc/output_surface_mojo.h b/mojo/cc/output_surface_mojo.h |
| index fbde9315a3e7ac46f594201f197e57380706fe81..36a12351d17eb648c4f2a5356f1da25a67e819fd 100644 |
| --- a/mojo/cc/output_surface_mojo.h |
| +++ b/mojo/cc/output_surface_mojo.h |
| @@ -12,9 +12,17 @@ |
| namespace mojo { |
| +class OutputSurfaceMojoClient { |
| + public: |
| + virtual ~OutputSurfaceMojoClient() {} |
|
sky
2014/09/11 19:56:53
nit: make protected so ownership is a bit clearer.
|
| + |
| + virtual void DidCreateSurface(cc::SurfaceId id) = 0; |
| +}; |
| + |
| class OutputSurfaceMojo : public cc::OutputSurface, public SurfaceClient { |
| public: |
| - OutputSurfaceMojo(const scoped_refptr<cc::ContextProvider>& context_provider, |
| + OutputSurfaceMojo(OutputSurfaceMojoClient* client, |
| + const scoped_refptr<cc::ContextProvider>& context_provider, |
| SurfacePtr surface, |
| uint32_t id_namespace); |
| virtual ~OutputSurfaceMojo(); |
| @@ -26,6 +34,7 @@ class OutputSurfaceMojo : public cc::OutputSurface, public SurfaceClient { |
| virtual void SwapBuffers(cc::CompositorFrame* frame) OVERRIDE; |
| private: |
| + OutputSurfaceMojoClient* output_surface_mojo_client_; |
| SurfacePtr surface_; |
| cc::SurfaceIdAllocator id_allocator_; |
| cc::SurfaceId surface_id_; |