| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef MOJO_SERVICES_SURFACES_SURFACES_IMPL_H_ | 5 #ifndef MOJO_SERVICES_SURFACES_SURFACES_IMPL_H_ |
| 6 #define MOJO_SERVICES_SURFACES_SURFACES_IMPL_H_ | 6 #define MOJO_SERVICES_SURFACES_SURFACES_IMPL_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "cc/surfaces/display_client.h" | 9 #include "cc/surfaces/display_client.h" |
| 10 #include "cc/surfaces/surface_factory.h" | 10 #include "cc/surfaces/surface_factory.h" |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 public: | 30 public: |
| 31 virtual void FrameSubmitted() = 0; | 31 virtual void FrameSubmitted() = 0; |
| 32 virtual void SetDisplay(cc::Display*) = 0; | 32 virtual void SetDisplay(cc::Display*) = 0; |
| 33 }; | 33 }; |
| 34 | 34 |
| 35 SurfacesImpl(cc::SurfaceManager* manager, | 35 SurfacesImpl(cc::SurfaceManager* manager, |
| 36 uint32_t id_namespace, | 36 uint32_t id_namespace, |
| 37 Client* client); | 37 Client* client); |
| 38 virtual ~SurfacesImpl(); | 38 virtual ~SurfacesImpl(); |
| 39 | 39 |
| 40 // InterfaceImpl<Surface> implementation. | |
| 41 virtual void OnConnectionEstablished() OVERRIDE; | |
| 42 | |
| 43 // Surface implementation. | 40 // Surface implementation. |
| 44 virtual void CreateSurface(SurfaceIdPtr id, mojo::SizePtr size) OVERRIDE; | 41 virtual void CreateSurface(SurfaceIdPtr id, mojo::SizePtr size) OVERRIDE; |
| 45 virtual void SubmitFrame(SurfaceIdPtr id, FramePtr frame) OVERRIDE; | 42 virtual void SubmitFrame(SurfaceIdPtr id, FramePtr frame) OVERRIDE; |
| 46 virtual void DestroySurface(SurfaceIdPtr id) OVERRIDE; | 43 virtual void DestroySurface(SurfaceIdPtr id) OVERRIDE; |
| 47 virtual void CreateGLES2BoundSurface(CommandBufferPtr gles2_client, | 44 virtual void CreateGLES2BoundSurface(CommandBufferPtr gles2_client, |
| 48 SurfaceIdPtr id, | 45 SurfaceIdPtr id, |
| 49 mojo::SizePtr size) OVERRIDE; | 46 mojo::SizePtr size) OVERRIDE; |
| 50 | 47 |
| 51 // SurfaceFactoryClient implementation. | 48 // SurfaceFactoryClient implementation. |
| 52 virtual void ReturnResources( | 49 virtual void ReturnResources( |
| (...skipping 12 matching lines...) Expand all Loading... |
| 65 Client* client_; | 62 Client* client_; |
| 66 scoped_ptr<cc::Display> display_; | 63 scoped_ptr<cc::Display> display_; |
| 67 ScopedMessagePipeHandle command_buffer_handle_; | 64 ScopedMessagePipeHandle command_buffer_handle_; |
| 68 | 65 |
| 69 DISALLOW_COPY_AND_ASSIGN(SurfacesImpl); | 66 DISALLOW_COPY_AND_ASSIGN(SurfacesImpl); |
| 70 }; | 67 }; |
| 71 | 68 |
| 72 } // namespace mojo | 69 } // namespace mojo |
| 73 | 70 |
| 74 #endif // MOJO_SERVICES_SURFACES_SURFACES_IMPL_H_ | 71 #endif // MOJO_SERVICES_SURFACES_SURFACES_IMPL_H_ |
| OLD | NEW |