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

Side by Side Diff: components/viz/frame_sinks/gpu_compositor_frame_sink.cc

Issue 2795823003: Create //components/viz/frame_sinks and move code. (Closed)
Patch Set: Fix DEPS. Created 3 years, 8 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_compositor_frame_sink.h" 5 #include "components/viz/frame_sinks/gpu_compositor_frame_sink.h"
6 6
7 namespace display_compositor { 7 namespace viz {
8 8
9 GpuCompositorFrameSink::GpuCompositorFrameSink( 9 GpuCompositorFrameSink::GpuCompositorFrameSink(
10 GpuCompositorFrameSinkDelegate* delegate, 10 GpuCompositorFrameSinkDelegate* delegate,
11 cc::SurfaceManager* surface_manager, 11 cc::SurfaceManager* surface_manager,
12 const cc::FrameSinkId& frame_sink_id, 12 const cc::FrameSinkId& frame_sink_id,
13 cc::mojom::MojoCompositorFrameSinkRequest request, 13 cc::mojom::MojoCompositorFrameSinkRequest request,
14 cc::mojom::MojoCompositorFrameSinkPrivateRequest 14 cc::mojom::MojoCompositorFrameSinkPrivateRequest
15 compositor_frame_sink_private_request, 15 compositor_frame_sink_private_request,
16 cc::mojom::MojoCompositorFrameSinkClientPtr client) 16 cc::mojom::MojoCompositorFrameSinkClientPtr client)
17 : delegate_(delegate), 17 : delegate_(delegate),
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 private_connection_lost_); 95 private_connection_lost_);
96 } 96 }
97 97
98 void GpuCompositorFrameSink::OnPrivateConnectionLost() { 98 void GpuCompositorFrameSink::OnPrivateConnectionLost() {
99 private_connection_lost_ = true; 99 private_connection_lost_ = true;
100 // Request destruction of |this| only if both connections are lost. 100 // Request destruction of |this| only if both connections are lost.
101 delegate_->OnPrivateConnectionLost(support_->frame_sink_id(), 101 delegate_->OnPrivateConnectionLost(support_->frame_sink_id(),
102 client_connection_lost_); 102 client_connection_lost_);
103 } 103 }
104 104
105 } // namespace display_compositor 105 } // namespace viz
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698