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

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

Issue 2715663007: Implement temporary reference assignment with DisplayCompositor. (Closed)
Patch Set: Rebase + fixes. 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
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/display_compositor/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 display_compositor {
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 void GpuRootCompositorFrameSink::Require( 92 void GpuRootCompositorFrameSink::Require(
93 const cc::LocalSurfaceId& local_surface_id, 93 const cc::LocalSurfaceId& local_surface_id,
94 const cc::SurfaceSequence& sequence) { 94 const cc::SurfaceSequence& sequence) {
95 support_->Require(local_surface_id, sequence); 95 support_->Require(local_surface_id, sequence);
96 } 96 }
97 97
98 void GpuRootCompositorFrameSink::Satisfy(const cc::SurfaceSequence& sequence) { 98 void GpuRootCompositorFrameSink::Satisfy(const cc::SurfaceSequence& sequence) {
99 support_->Satisfy(sequence); 99 support_->Satisfy(sequence);
100 } 100 }
101 101
102 void GpuRootCompositorFrameSink::ClaimTemporaryReference(
103 const cc::SurfaceId& surface_id) {
104 support_->ClaimTemporaryReference(surface_id);
105 }
106
102 void GpuRootCompositorFrameSink::RequestCopyOfSurface( 107 void GpuRootCompositorFrameSink::RequestCopyOfSurface(
103 std::unique_ptr<cc::CopyOutputRequest> request) { 108 std::unique_ptr<cc::CopyOutputRequest> request) {
104 support_->RequestCopyOfSurface(std::move(request)); 109 support_->RequestCopyOfSurface(std::move(request));
105 } 110 }
106 111
107 void GpuRootCompositorFrameSink::DisplayOutputSurfaceLost() { 112 void GpuRootCompositorFrameSink::DisplayOutputSurfaceLost() {
108 // TODO(staraz): Implement this. Client should hear about context/output 113 // TODO(staraz): Implement this. Client should hear about context/output
109 // surface lost. 114 // surface lost.
110 } 115 }
111 116
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 } 151 }
147 152
148 void GpuRootCompositorFrameSink::OnPrivateConnectionLost() { 153 void GpuRootCompositorFrameSink::OnPrivateConnectionLost() {
149 private_connection_lost_ = true; 154 private_connection_lost_ = true;
150 // Request destruction of |this| only if both connections are lost. 155 // Request destruction of |this| only if both connections are lost.
151 delegate_->OnPrivateConnectionLost(support_->frame_sink_id(), 156 delegate_->OnPrivateConnectionLost(support_->frame_sink_id(),
152 client_connection_lost_); 157 client_connection_lost_);
153 } 158 }
154 159
155 } // namespace display_compositor 160 } // namespace display_compositor
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698