| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 SurfaceIdPtr id, | 45 SurfaceIdPtr id, |
| 46 mojo::SizePtr size) OVERRIDE; | 46 mojo::SizePtr size) OVERRIDE; |
| 47 | 47 |
| 48 // SurfaceFactoryClient implementation. | 48 // SurfaceFactoryClient implementation. |
| 49 virtual void ReturnResources( | 49 virtual void ReturnResources( |
| 50 const cc::ReturnedResourceArray& resources) OVERRIDE; | 50 const cc::ReturnedResourceArray& resources) OVERRIDE; |
| 51 | 51 |
| 52 // DisplayClient implementation. | 52 // DisplayClient implementation. |
| 53 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface() OVERRIDE; | 53 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface() OVERRIDE; |
| 54 virtual void DisplayDamaged() OVERRIDE; | 54 virtual void DisplayDamaged() OVERRIDE; |
| 55 virtual void DidSwapBuffers() OVERRIDE; |
| 56 virtual void DidSwapBuffersComplete() OVERRIDE; |
| 55 | 57 |
| 56 cc::SurfaceFactory* factory() { return &factory_; } | 58 cc::SurfaceFactory* factory() { return &factory_; } |
| 57 | 59 |
| 58 private: | 60 private: |
| 59 cc::SurfaceManager* manager_; | 61 cc::SurfaceManager* manager_; |
| 60 cc::SurfaceFactory factory_; | 62 cc::SurfaceFactory factory_; |
| 61 uint32_t id_namespace_; | 63 uint32_t id_namespace_; |
| 62 Client* client_; | 64 Client* client_; |
| 63 scoped_ptr<cc::Display> display_; | 65 scoped_ptr<cc::Display> display_; |
| 64 ScopedMessagePipeHandle command_buffer_handle_; | 66 ScopedMessagePipeHandle command_buffer_handle_; |
| 65 | 67 |
| 66 DISALLOW_COPY_AND_ASSIGN(SurfacesImpl); | 68 DISALLOW_COPY_AND_ASSIGN(SurfacesImpl); |
| 67 }; | 69 }; |
| 68 | 70 |
| 69 } // namespace mojo | 71 } // namespace mojo |
| 70 | 72 |
| 71 #endif // MOJO_SERVICES_SURFACES_SURFACES_IMPL_H_ | 73 #endif // MOJO_SERVICES_SURFACES_SURFACES_IMPL_H_ |
| OLD | NEW |