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 #include "components/mus/public/cpp/output_surface.h" | 5 #include "services/ui/public/cpp/output_surface.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "cc/output/compositor_frame.h" | 8 #include "cc/output/compositor_frame.h" |
9 #include "cc/output/compositor_frame_ack.h" | 9 #include "cc/output/compositor_frame_ack.h" |
10 #include "cc/output/output_surface_client.h" | 10 #include "cc/output/output_surface_client.h" |
11 #include "components/mus/public/cpp/window_surface.h" | 11 #include "services/ui/public/cpp/window_surface.h" |
12 | 12 |
13 namespace mus { | 13 namespace mus { |
14 | 14 |
15 OutputSurface::OutputSurface( | 15 OutputSurface::OutputSurface( |
16 const scoped_refptr<cc::ContextProvider>& context_provider, | 16 const scoped_refptr<cc::ContextProvider>& context_provider, |
17 std::unique_ptr<mus::WindowSurface> surface) | 17 std::unique_ptr<mus::WindowSurface> surface) |
18 : cc::OutputSurface(context_provider, nullptr, nullptr), | 18 : cc::OutputSurface(context_provider, nullptr, nullptr), |
19 surface_(std::move(surface)) { | 19 surface_(std::move(surface)) { |
20 capabilities_.delegated_rendering = true; | 20 capabilities_.delegated_rendering = true; |
21 } | 21 } |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 cc::CompositorFrameAck cfa; | 61 cc::CompositorFrameAck cfa; |
62 cfa.resources = resources.To<cc::ReturnedResourceArray>(); | 62 cfa.resources = resources.To<cc::ReturnedResourceArray>(); |
63 ReclaimResources(&cfa); | 63 ReclaimResources(&cfa); |
64 } | 64 } |
65 | 65 |
66 void OutputSurface::SwapBuffersComplete() { | 66 void OutputSurface::SwapBuffersComplete() { |
67 client_->DidSwapBuffersComplete(); | 67 client_->DidSwapBuffersComplete(); |
68 } | 68 } |
69 | 69 |
70 } // namespace mus | 70 } // namespace mus |
OLD | NEW |