Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(18)

Side by Side Diff: components/mus/gpu/display_compositor/compositor_frame_sink_impl.cc

Issue 2021473002: Move display_compositor impls to components/mus/gpu (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added missing file Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/surfaces/compositor_frame_sink_impl.h" 5 #include "components/mus/gpu/display_compositor/compositor_frame_sink_impl.h"
6 6
7 #include "cc/surfaces/surface_factory.h" 7 #include "cc/surfaces/surface_factory.h"
8 #include "components/mus/gpu/display_compositor/compositor_frame_sink_delegate.h "
8 #include "components/mus/public/cpp/surfaces/surfaces_type_converters.h" 9 #include "components/mus/public/cpp/surfaces/surfaces_type_converters.h"
9 #include "components/mus/public/interfaces/compositor_frame.mojom.h" 10 #include "components/mus/public/interfaces/compositor_frame.mojom.h"
10 #include "components/mus/surfaces/compositor_frame_sink_delegate.h"
11 11
12 namespace mus { 12 namespace mus {
13 namespace gpu { 13 namespace gpu {
14 14
15 namespace { 15 namespace {
16 16
17 void CallCallback( 17 void CallCallback(
18 const mojo::Callback<void(mojom::CompositorFrameDrawStatus)>& callback, 18 const mojo::Callback<void(mojom::CompositorFrameDrawStatus)>& callback,
19 cc::SurfaceDrawStatus draw_status) { 19 cc::SurfaceDrawStatus draw_status) {
20 callback.Run(static_cast<mojom::CompositorFrameDrawStatus>(draw_status)); 20 callback.Run(static_cast<mojom::CompositorFrameDrawStatus>(draw_status));
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 void CompositorFrameSinkImpl::OnBeginFrameSourcePausedChanged(bool paused) { 109 void CompositorFrameSinkImpl::OnBeginFrameSourcePausedChanged(bool paused) {
110 // TODO(fsamuel): Implement this. 110 // TODO(fsamuel): Implement this.
111 } 111 }
112 112
113 void CompositorFrameSinkImpl::OnConnectionLost() { 113 void CompositorFrameSinkImpl::OnConnectionLost() {
114 delegate_->CompositorFrameSinkConnectionLost(sink_id_); 114 delegate_->CompositorFrameSinkConnectionLost(sink_id_);
115 } 115 }
116 116
117 } // namespace gpu 117 } // namespace gpu
118 } // namespace mus 118 } // namespace mus
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698