| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/gpu/display_compositor/compositor_frame_sink_impl.h" | 5 #include "services/ui/gpu/display_compositor/compositor_frame_sink_impl.h" |
| 6 | 6 |
| 7 #include "cc/ipc/compositor_frame.mojom.h" | 7 #include "cc/ipc/compositor_frame.mojom.h" |
| 8 #include "cc/surfaces/surface_factory.h" | 8 #include "cc/surfaces/surface_factory.h" |
| 9 #include "components/mus/gpu/display_compositor/compositor_frame_sink_delegate.h
" | 9 #include "services/ui/gpu/display_compositor/compositor_frame_sink_delegate.h" |
| 10 | 10 |
| 11 namespace mus { | 11 namespace mus { |
| 12 namespace gpu { | 12 namespace gpu { |
| 13 | 13 |
| 14 namespace { | 14 namespace { |
| 15 | 15 |
| 16 void CallCallback( | 16 void CallCallback( |
| 17 const mojom::CompositorFrameSink::SubmitCompositorFrameCallback& callback, | 17 const mojom::CompositorFrameSink::SubmitCompositorFrameCallback& callback, |
| 18 cc::SurfaceDrawStatus draw_status) { | 18 cc::SurfaceDrawStatus draw_status) { |
| 19 callback.Run(static_cast<mojom::CompositorFrameDrawStatus>(draw_status)); | 19 callback.Run(static_cast<mojom::CompositorFrameDrawStatus>(draw_status)); |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 void CompositorFrameSinkImpl::OnBeginFrameSourcePausedChanged(bool paused) { | 103 void CompositorFrameSinkImpl::OnBeginFrameSourcePausedChanged(bool paused) { |
| 104 // TODO(fsamuel): Implement this. | 104 // TODO(fsamuel): Implement this. |
| 105 } | 105 } |
| 106 | 106 |
| 107 void CompositorFrameSinkImpl::OnConnectionLost() { | 107 void CompositorFrameSinkImpl::OnConnectionLost() { |
| 108 delegate_->CompositorFrameSinkConnectionLost(sink_id_); | 108 delegate_->CompositorFrameSinkConnectionLost(sink_id_); |
| 109 } | 109 } |
| 110 | 110 |
| 111 } // namespace gpu | 111 } // namespace gpu |
| 112 } // namespace mus | 112 } // namespace mus |
| OLD | NEW |