| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/ws/server_window_surface.h" | 5 #include "components/mus/ws/server_window_surface.h" |
| 6 | 6 |
| 7 #include "cc/output/compositor_frame.h" | 7 #include "cc/output/compositor_frame.h" |
| 8 #include "cc/quads/shared_quad_state.h" | 8 #include "cc/quads/shared_quad_state.h" |
| 9 #include "cc/quads/surface_draw_quad.h" | 9 #include "cc/quads/surface_draw_quad.h" |
| 10 #include "components/mus/public/cpp/surfaces/surfaces_type_converters.h" | 10 #include "components/mus/public/cpp/surfaces/surfaces_type_converters.h" |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 input->visible_rect, input->needs_blending, | 146 input->visible_rect, input->needs_blending, |
| 147 underlay_surface->id()); | 147 underlay_surface->id()); |
| 148 } | 148 } |
| 149 return true; | 149 return true; |
| 150 } | 150 } |
| 151 | 151 |
| 152 void ServerWindowSurface::ReturnResources( | 152 void ServerWindowSurface::ReturnResources( |
| 153 const cc::ReturnedResourceArray& resources) { | 153 const cc::ReturnedResourceArray& resources) { |
| 154 if (!client_ || !base::MessageLoop::current()) | 154 if (!client_ || !base::MessageLoop::current()) |
| 155 return; | 155 return; |
| 156 client_->ReturnResources( | 156 client_->ReturnResources(mojo::Array<cc::ReturnedResource>::From(resources)); |
| 157 mojo::Array<mojom::ReturnedResourcePtr>::From(resources)); | |
| 158 } | 157 } |
| 159 | 158 |
| 160 void ServerWindowSurface::SetBeginFrameSource( | 159 void ServerWindowSurface::SetBeginFrameSource( |
| 161 cc::BeginFrameSource* begin_frame_source) { | 160 cc::BeginFrameSource* begin_frame_source) { |
| 162 // TODO(tansell): Implement this. | 161 // TODO(tansell): Implement this. |
| 163 } | 162 } |
| 164 | 163 |
| 165 } // namespace ws | 164 } // namespace ws |
| 166 } // namespace mus | 165 } // namespace mus |
| OLD | NEW |