| 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 SERVICES_UI_PUBLIC_CPP_OUTPUT_SURFACE_H_ | 5 #ifndef SERVICES_UI_PUBLIC_CPP_OUTPUT_SURFACE_H_ |
| 6 #define SERVICES_UI_PUBLIC_CPP_OUTPUT_SURFACE_H_ | 6 #define SERVICES_UI_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/scheduler/begin_frame_source.h" |
| 10 #include "cc/surfaces/surface_id.h" | 11 #include "cc/surfaces/surface_id.h" |
| 11 #include "mojo/public/cpp/bindings/binding.h" | 12 #include "mojo/public/cpp/bindings/binding.h" |
| 12 #include "services/ui/public/cpp/window_surface.h" | 13 #include "services/ui/public/cpp/window_surface.h" |
| 13 #include "services/ui/public/cpp/window_surface_client.h" | 14 #include "services/ui/public/cpp/window_surface_client.h" |
| 14 | 15 |
| 15 namespace ui { | 16 namespace ui { |
| 16 | 17 |
| 17 class GpuService; | 18 class GpuService; |
| 18 | 19 |
| 19 class OutputSurface : public cc::OutputSurface, public WindowSurfaceClient { | 20 class OutputSurface : public cc::OutputSurface, public WindowSurfaceClient { |
| (...skipping 10 matching lines...) Expand all Loading... |
| 30 uint32_t GetFramebufferCopyTextureFormat() override; | 31 uint32_t GetFramebufferCopyTextureFormat() override; |
| 31 | 32 |
| 32 private: | 33 private: |
| 33 // WindowSurfaceClient implementation: | 34 // WindowSurfaceClient implementation: |
| 34 void OnResourcesReturned( | 35 void OnResourcesReturned( |
| 35 WindowSurface* surface, | 36 WindowSurface* surface, |
| 36 mojo::Array<cc::ReturnedResource> resources) override; | 37 mojo::Array<cc::ReturnedResource> resources) override; |
| 37 | 38 |
| 38 void SwapBuffersComplete(); | 39 void SwapBuffersComplete(); |
| 39 | 40 |
| 41 std::unique_ptr<cc::BeginFrameSource> begin_frame_source_; |
| 40 std::unique_ptr<WindowSurface> surface_; | 42 std::unique_ptr<WindowSurface> surface_; |
| 41 | 43 |
| 42 DISALLOW_COPY_AND_ASSIGN(OutputSurface); | 44 DISALLOW_COPY_AND_ASSIGN(OutputSurface); |
| 43 }; | 45 }; |
| 44 | 46 |
| 45 } // namespace ui | 47 } // namespace ui |
| 46 | 48 |
| 47 #endif // SERVICES_UI_PUBLIC_CPP_OUTPUT_SURFACE_H_ | 49 #endif // SERVICES_UI_PUBLIC_CPP_OUTPUT_SURFACE_H_ |
| OLD | NEW |