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

Side by Side Diff: components/frame_sinks/gpu_root_compositor_frame_sink.cc

Issue 2768563002: Move DisplayCompositor code to new component. (Closed)
Patch Set: Rebase. Created 3 years, 9 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
« no previous file with comments | « components/frame_sinks/gpu_root_compositor_frame_sink.h ('k') | services/ui/gpu/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_root_compositor_frame_sink.h" 5 #include "components/frame_sinks/gpu_root_compositor_frame_sink.h"
6 6
7 #include "cc/surfaces/compositor_frame_sink_support.h" 7 #include "cc/surfaces/compositor_frame_sink_support.h"
8 #include "cc/surfaces/display.h" 8 #include "cc/surfaces/display.h"
9 9
10 namespace display_compositor { 10 namespace frame_sinks {
11 11
12 GpuRootCompositorFrameSink::GpuRootCompositorFrameSink( 12 GpuRootCompositorFrameSink::GpuRootCompositorFrameSink(
13 GpuCompositorFrameSinkDelegate* delegate, 13 GpuCompositorFrameSinkDelegate* delegate,
14 cc::SurfaceManager* surface_manager, 14 cc::SurfaceManager* surface_manager,
15 const cc::FrameSinkId& frame_sink_id, 15 const cc::FrameSinkId& frame_sink_id,
16 std::unique_ptr<cc::Display> display, 16 std::unique_ptr<cc::Display> display,
17 std::unique_ptr<cc::BeginFrameSource> begin_frame_source, 17 std::unique_ptr<cc::BeginFrameSource> begin_frame_source,
18 cc::mojom::MojoCompositorFrameSinkAssociatedRequest request, 18 cc::mojom::MojoCompositorFrameSinkAssociatedRequest request,
19 cc::mojom::MojoCompositorFrameSinkPrivateRequest 19 cc::mojom::MojoCompositorFrameSinkPrivateRequest
20 compositor_frame_sink_private_request, 20 compositor_frame_sink_private_request,
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 private_connection_lost_); 140 private_connection_lost_);
141 } 141 }
142 142
143 void GpuRootCompositorFrameSink::OnPrivateConnectionLost() { 143 void GpuRootCompositorFrameSink::OnPrivateConnectionLost() {
144 private_connection_lost_ = true; 144 private_connection_lost_ = true;
145 // Request destruction of |this| only if both connections are lost. 145 // Request destruction of |this| only if both connections are lost.
146 delegate_->OnPrivateConnectionLost(support_->frame_sink_id(), 146 delegate_->OnPrivateConnectionLost(support_->frame_sink_id(),
147 client_connection_lost_); 147 client_connection_lost_);
148 } 148 }
149 149
150 } // namespace display_compositor 150 } // namespace frame_sinks
OLDNEW
« no previous file with comments | « components/frame_sinks/gpu_root_compositor_frame_sink.h ('k') | services/ui/gpu/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698