Chromium Code Reviews| 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 "services/ui/ws/server_window_surface.h" | 5 #include "services/ui/ws/server_window_surface.h" |
| 6 | 6 |
| 7 #include "base/callback.h" | 7 #include "base/callback.h" |
| 8 #include "cc/output/compositor_frame.h" | 8 #include "cc/output/compositor_frame.h" |
| 9 #include "cc/quads/shared_quad_state.h" | 9 #include "cc/quads/shared_quad_state.h" |
| 10 #include "cc/quads/surface_draw_quad.h" | 10 #include "cc/quads/surface_draw_quad.h" |
| 11 #include "services/ui/surfaces/surfaces_state.h" | 11 #include "services/ui/surfaces/surfaces_state.h" |
| 12 #include "services/ui/ws/server_window.h" | 12 #include "services/ui/ws/server_window.h" |
| 13 #include "services/ui/ws/server_window_delegate.h" | 13 #include "services/ui/ws/server_window_delegate.h" |
| 14 #include "services/ui/ws/server_window_surface_manager.h" | 14 #include "services/ui/ws/server_window_surface_manager.h" |
| 15 | 15 |
| 16 namespace ui { | 16 namespace ui { |
| 17 namespace ws { | 17 namespace ws { |
| 18 namespace { | 18 namespace { |
| 19 | 19 |
| 20 void CallCallback(const base::Closure& callback, cc::SurfaceDrawStatus status) { | 20 void CallCallback(const base::Closure& callback) { |
|
sky
2016/07/20 15:56:35
Same comment here as to if callback can be supplie
Fady Samuel
2016/07/20 20:31:33
Done.
| |
| 21 callback.Run(); | 21 callback.Run(); |
| 22 } | 22 } |
| 23 | 23 |
| 24 } // namespace | 24 } // namespace |
| 25 | 25 |
| 26 ServerWindowSurface::ServerWindowSurface( | 26 ServerWindowSurface::ServerWindowSurface( |
| 27 ServerWindowSurfaceManager* manager, | 27 ServerWindowSurfaceManager* manager, |
| 28 mojo::InterfaceRequest<Surface> request, | 28 mojo::InterfaceRequest<Surface> request, |
| 29 mojom::SurfaceClientPtr client) | 29 mojom::SurfaceClientPtr client) |
| 30 : manager_(manager), | 30 : manager_(manager), |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 101 client_->ReturnResources(mojo::Array<cc::ReturnedResource>::From(resources)); | 101 client_->ReturnResources(mojo::Array<cc::ReturnedResource>::From(resources)); |
| 102 } | 102 } |
| 103 | 103 |
| 104 void ServerWindowSurface::SetBeginFrameSource( | 104 void ServerWindowSurface::SetBeginFrameSource( |
| 105 cc::BeginFrameSource* begin_frame_source) { | 105 cc::BeginFrameSource* begin_frame_source) { |
| 106 // TODO(tansell): Implement this. | 106 // TODO(tansell): Implement this. |
| 107 } | 107 } |
| 108 | 108 |
| 109 } // namespace ws | 109 } // namespace ws |
| 110 } // namespace ui | 110 } // namespace ui |
| OLD | NEW |