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/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 Loading... |
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 |
OLD | NEW |