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

Side by Side Diff: components/display_compositor/gpu_display_compositor_frame_sink.cc

Issue 2684933003: Move frame_sink_id management to framesink_manager.cc/h from (Closed)
Patch Set: Created 3 years, 10 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 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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/display_compositor/gpu_display_compositor_frame_sink.h" 5 #include "components/display_compositor/gpu_display_compositor_frame_sink.h"
6 6
7 namespace display_compositor { 7 namespace display_compositor {
8 8
9 GpuDisplayCompositorFrameSink::GpuDisplayCompositorFrameSink( 9 GpuDisplayCompositorFrameSink::GpuDisplayCompositorFrameSink(
10 GpuCompositorFrameSinkDelegate* delegate, 10 GpuCompositorFrameSinkDelegate* delegate,
11 cc::SurfaceManager* surface_manager, 11 cc::SurfaceManager* surface_manager,
12 cc::FrameSinkManager* framesink_manager,
12 const cc::FrameSinkId& frame_sink_id, 13 const cc::FrameSinkId& frame_sink_id,
13 std::unique_ptr<cc::Display> display, 14 std::unique_ptr<cc::Display> display,
14 std::unique_ptr<cc::BeginFrameSource> begin_frame_source, 15 std::unique_ptr<cc::BeginFrameSource> begin_frame_source,
15 cc::mojom::MojoCompositorFrameSinkAssociatedRequest request, 16 cc::mojom::MojoCompositorFrameSinkAssociatedRequest request,
16 cc::mojom::MojoCompositorFrameSinkPrivateRequest 17 cc::mojom::MojoCompositorFrameSinkPrivateRequest
17 compositor_frame_sink_private_request, 18 compositor_frame_sink_private_request,
18 cc::mojom::MojoCompositorFrameSinkClientPtr client, 19 cc::mojom::MojoCompositorFrameSinkClientPtr client,
19 cc::mojom::DisplayPrivateAssociatedRequest display_private_request) 20 cc::mojom::DisplayPrivateAssociatedRequest display_private_request)
20 : GpuCompositorFrameSink(delegate, 21 : GpuCompositorFrameSink(delegate,
21 surface_manager, 22 surface_manager,
23 framesink_manager,
22 frame_sink_id, 24 frame_sink_id,
23 std::move(display), 25 std::move(display),
24 std::move(begin_frame_source), 26 std::move(begin_frame_source),
25 std::move(compositor_frame_sink_private_request), 27 std::move(compositor_frame_sink_private_request),
26 std::move(client)), 28 std::move(client)),
27 binding_(this, std::move(request)), 29 binding_(this, std::move(request)),
28 display_private_binding_(this, std::move(display_private_request)) { 30 display_private_binding_(this, std::move(display_private_request)) {
29 binding_.set_connection_error_handler( 31 binding_.set_connection_error_handler(
30 base::Bind(&GpuDisplayCompositorFrameSink::OnClientConnectionLost, 32 base::Bind(&GpuDisplayCompositorFrameSink::OnClientConnectionLost,
31 base::Unretained(this))); 33 base::Unretained(this)));
(...skipping 16 matching lines...) Expand all
48 DCHECK(support_.display()); 50 DCHECK(support_.display());
49 support_.display()->SetColorSpace(color_space); 51 support_.display()->SetColorSpace(color_space);
50 } 52 }
51 53
52 void GpuDisplayCompositorFrameSink::SetOutputIsSecure(bool secure) { 54 void GpuDisplayCompositorFrameSink::SetOutputIsSecure(bool secure) {
53 DCHECK(support_.display()); 55 DCHECK(support_.display());
54 support_.display()->SetOutputIsSecure(secure); 56 support_.display()->SetOutputIsSecure(secure);
55 } 57 }
56 58
57 } // namespace display_compositor 59 } // namespace display_compositor
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698