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