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

Side by Side Diff: components/mus/gpu/display_compositor/compositor_frame_sink_factory_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_factory_impl.h" 5 #include "components/mus/gpu/display_compositor/compositor_frame_sink_factory_im pl.h"
6 6
7 #include "base/memory/ptr_util.h" 7 #include "base/memory/ptr_util.h"
8 #include "cc/surfaces/surface_id.h" 8 #include "cc/surfaces/surface_id.h"
9 #include "components/mus/surfaces/compositor_frame_sink_impl.h" 9 #include "components/mus/gpu/display_compositor/compositor_frame_sink_impl.h"
10 10
11 namespace mus { 11 namespace mus {
12 namespace gpu { 12 namespace gpu {
13 13
14 CompositorFrameSinkFactoryImpl::CompositorFrameSinkFactoryImpl( 14 CompositorFrameSinkFactoryImpl::CompositorFrameSinkFactoryImpl(
15 uint32_t client_id, 15 uint32_t client_id,
16 mojo::InterfaceRequest<mojom::CompositorFrameSinkFactory> request, 16 mojo::InterfaceRequest<mojom::CompositorFrameSinkFactory> request,
17 const scoped_refptr<SurfacesState>& surfaces_state) 17 const scoped_refptr<SurfacesState>& surfaces_state)
18 : client_id_(client_id), 18 : client_id_(client_id),
19 surfaces_state_(surfaces_state), 19 surfaces_state_(surfaces_state),
(...skipping 17 matching lines...) Expand all
37 mojo::InterfaceRequest<mojom::CompositorFrameSink> sink, 37 mojo::InterfaceRequest<mojom::CompositorFrameSink> sink,
38 mojom::CompositorFrameSinkClientPtr client) { 38 mojom::CompositorFrameSinkClientPtr client) {
39 // TODO(fsamuel): Use nonce once patch lands: 39 // TODO(fsamuel): Use nonce once patch lands:
40 // https://codereview.chromium.org/1996783002/ 40 // https://codereview.chromium.org/1996783002/
41 sinks_[local_id] = base::WrapUnique(new CompositorFrameSinkImpl( 41 sinks_[local_id] = base::WrapUnique(new CompositorFrameSinkImpl(
42 this, local_id, surfaces_state_, std::move(sink), std::move(client))); 42 this, local_id, surfaces_state_, std::move(sink), std::move(client)));
43 } 43 }
44 44
45 } // namespace gpu 45 } // namespace gpu
46 } // namespace mus 46 } // namespace mus
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698