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

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

Issue 2676353002: MojoCompositorFrameSinkPrivate should support copy requests (Closed)
Patch Set: Remove callback 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
« no previous file with comments | « components/display_compositor/gpu_compositor_frame_sink.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/display_compositor/gpu_compositor_frame_sink.h"
6 6
7 #include "cc/surfaces/surface_reference.h" 7 #include "cc/surfaces/surface_reference.h"
8 8
9 namespace display_compositor { 9 namespace display_compositor {
10 10
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 private_connection_lost_); 88 private_connection_lost_);
89 } 89 }
90 90
91 void GpuCompositorFrameSink::OnPrivateConnectionLost() { 91 void GpuCompositorFrameSink::OnPrivateConnectionLost() {
92 private_connection_lost_ = true; 92 private_connection_lost_ = true;
93 // Request destruction of |this| only if both connections are lost. 93 // Request destruction of |this| only if both connections are lost.
94 delegate_->OnPrivateConnectionLost(support_->frame_sink_id(), 94 delegate_->OnPrivateConnectionLost(support_->frame_sink_id(),
95 client_connection_lost_); 95 client_connection_lost_);
96 } 96 }
97 97
98 void GpuCompositorFrameSink::RequestCopyOfSurface(
99 std::unique_ptr<cc::CopyOutputRequest> request) {
100 support_->RequestCopyOfSurface(std::move(request));
101 }
102
98 } // namespace display_compositor 103 } // namespace display_compositor
OLDNEW
« no previous file with comments | « components/display_compositor/gpu_compositor_frame_sink.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698