| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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; | 55 virtual void DidSwapBuffers() OVERRIDE; |
| 56 virtual void DidSwapBuffersComplete() OVERRIDE; | 56 virtual void DidSwapBuffersComplete() OVERRIDE; |
| 57 virtual void CommitVSyncParameters(base::TimeTicks timebase, |
| 58 base::TimeDelta interval) OVERRIDE; |
| 57 | 59 |
| 58 cc::SurfaceFactory* factory() { return &factory_; } | 60 cc::SurfaceFactory* factory() { return &factory_; } |
| 59 | 61 |
| 60 private: | 62 private: |
| 61 cc::SurfaceManager* manager_; | 63 cc::SurfaceManager* manager_; |
| 62 cc::SurfaceFactory factory_; | 64 cc::SurfaceFactory factory_; |
| 63 uint32_t id_namespace_; | 65 uint32_t id_namespace_; |
| 64 Client* client_; | 66 Client* client_; |
| 65 scoped_ptr<cc::Display> display_; | 67 scoped_ptr<cc::Display> display_; |
| 66 ScopedMessagePipeHandle command_buffer_handle_; | 68 ScopedMessagePipeHandle command_buffer_handle_; |
| 67 | 69 |
| 68 DISALLOW_COPY_AND_ASSIGN(SurfacesImpl); | 70 DISALLOW_COPY_AND_ASSIGN(SurfacesImpl); |
| 69 }; | 71 }; |
| 70 | 72 |
| 71 } // namespace mojo | 73 } // namespace mojo |
| 72 | 74 |
| 73 #endif // MOJO_SERVICES_SURFACES_SURFACES_IMPL_H_ | 75 #endif // MOJO_SERVICES_SURFACES_SURFACES_IMPL_H_ |
| OLD | NEW |