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 COMPONENTS_MUS_PUBLIC_CPP_OUTPUT_SURFACE_H_ | 5 #ifndef COMPONENTS_MUS_PUBLIC_CPP_OUTPUT_SURFACE_H_ |
6 #define COMPONENTS_MUS_PUBLIC_CPP_OUTPUT_SURFACE_H_ | 6 #define COMPONENTS_MUS_PUBLIC_CPP_OUTPUT_SURFACE_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "cc/output/output_surface.h" | 9 #include "cc/output/output_surface.h" |
10 #include "cc/surfaces/surface_id.h" | 10 #include "cc/surfaces/surface_id.h" |
(...skipping 11 matching lines...) Expand all Loading... |
22 | 22 |
23 // cc::OutputSurface implementation. | 23 // cc::OutputSurface implementation. |
24 void SwapBuffers(cc::CompositorFrame* frame) override; | 24 void SwapBuffers(cc::CompositorFrame* frame) override; |
25 bool BindToClient(cc::OutputSurfaceClient* client) override; | 25 bool BindToClient(cc::OutputSurfaceClient* client) override; |
26 void DetachFromClient() override; | 26 void DetachFromClient() override; |
27 | 27 |
28 private: | 28 private: |
29 // WindowSurfaceClient implementation: | 29 // WindowSurfaceClient implementation: |
30 void OnResourcesReturned( | 30 void OnResourcesReturned( |
31 WindowSurface* surface, | 31 WindowSurface* surface, |
32 mojo::Array<mojom::ReturnedResourcePtr> resources) override; | 32 mojo::Array<cc::ReturnedResource> resources) override; |
33 | 33 |
34 void SwapBuffersComplete(); | 34 void SwapBuffersComplete(); |
35 | 35 |
36 std::unique_ptr<WindowSurface> surface_; | 36 std::unique_ptr<WindowSurface> surface_; |
37 | 37 |
38 DISALLOW_COPY_AND_ASSIGN(OutputSurface); | 38 DISALLOW_COPY_AND_ASSIGN(OutputSurface); |
39 }; | 39 }; |
40 | 40 |
41 } // namespace mus | 41 } // namespace mus |
42 | 42 |
43 #endif // COMPONENTS_MUS_PUBLIC_CPP_OUTPUT_SURFACE_H_ | 43 #endif // COMPONENTS_MUS_PUBLIC_CPP_OUTPUT_SURFACE_H_ |
OLD | NEW |