| 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 "cc/surfaces/display_client.h" | 8 #include "cc/surfaces/display_client.h" |
| 9 #include "cc/surfaces/surface_factory.h" | 9 #include "cc/surfaces/surface_factory.h" |
| 10 #include "cc/surfaces/surface_factory_client.h" | 10 #include "cc/surfaces/surface_factory_client.h" |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 | 35 |
| 36 SurfacesImpl(cc::SurfaceManager* manager, | 36 SurfacesImpl(cc::SurfaceManager* manager, |
| 37 uint32_t id_namespace, | 37 uint32_t id_namespace, |
| 38 Client* client, | 38 Client* client, |
| 39 SurfacePtr* surface); | 39 SurfacePtr* surface); |
| 40 | 40 |
| 41 ~SurfacesImpl() override; | 41 ~SurfacesImpl() override; |
| 42 | 42 |
| 43 // Surface implementation. | 43 // Surface implementation. |
| 44 void CreateSurface(SurfaceIdPtr id, mojo::SizePtr size) override; | 44 void CreateSurface(SurfaceIdPtr id, mojo::SizePtr size) override; |
| 45 void SubmitFrame(SurfaceIdPtr id, FramePtr frame) override; | 45 void SubmitFrame(SurfaceIdPtr id, |
| 46 FramePtr frame, |
| 47 const mojo::Closure& callback) override; |
| 46 void DestroySurface(SurfaceIdPtr id) override; | 48 void DestroySurface(SurfaceIdPtr id) override; |
| 47 void CreateGLES2BoundSurface(CommandBufferPtr gles2_client, | 49 void CreateGLES2BoundSurface(CommandBufferPtr gles2_client, |
| 48 SurfaceIdPtr id, | 50 SurfaceIdPtr id, |
| 49 mojo::SizePtr size) override; | 51 mojo::SizePtr size) override; |
| 50 | 52 |
| 51 // SurfaceFactoryClient implementation. | 53 // SurfaceFactoryClient implementation. |
| 52 void ReturnResources(const cc::ReturnedResourceArray& resources) override; | 54 void ReturnResources(const cc::ReturnedResourceArray& resources) override; |
| 53 | 55 |
| 54 // DisplayClient implementation. | 56 // DisplayClient implementation. |
| 55 void DisplayDamaged() override; | 57 void DisplayDamaged() override; |
| (...skipping 14 matching lines...) Expand all Loading... |
| 70 scoped_ptr<cc::Display> display_; | 72 scoped_ptr<cc::Display> display_; |
| 71 ScopedMessagePipeHandle command_buffer_handle_; | 73 ScopedMessagePipeHandle command_buffer_handle_; |
| 72 StrongBinding<Surface> binding_; | 74 StrongBinding<Surface> binding_; |
| 73 | 75 |
| 74 DISALLOW_COPY_AND_ASSIGN(SurfacesImpl); | 76 DISALLOW_COPY_AND_ASSIGN(SurfacesImpl); |
| 75 }; | 77 }; |
| 76 | 78 |
| 77 } // namespace mojo | 79 } // namespace mojo |
| 78 | 80 |
| 79 #endif // MOJO_SERVICES_SURFACES_SURFACES_IMPL_H_ | 81 #endif // MOJO_SERVICES_SURFACES_SURFACES_IMPL_H_ |
| OLD | NEW |