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

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

Issue 2888043004: [cc] Add and plumb CFS::DidNotProduceFrame. (Closed)
Patch Set: address nits, rename to DidNotProduceFrame. Created 3 years, 7 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/viz/frame_sinks/gpu_compositor_frame_sink.h" 5 #include "components/viz/frame_sinks/gpu_compositor_frame_sink.h"
6 6
7 namespace viz { 7 namespace viz {
8 8
9 GpuCompositorFrameSink::GpuCompositorFrameSink( 9 GpuCompositorFrameSink::GpuCompositorFrameSink(
10 GpuCompositorFrameSinkDelegate* delegate, 10 GpuCompositorFrameSinkDelegate* delegate,
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 void GpuCompositorFrameSink::SetNeedsBeginFrame(bool needs_begin_frame) { 43 void GpuCompositorFrameSink::SetNeedsBeginFrame(bool needs_begin_frame) {
44 support_->SetNeedsBeginFrame(needs_begin_frame); 44 support_->SetNeedsBeginFrame(needs_begin_frame);
45 } 45 }
46 46
47 void GpuCompositorFrameSink::SubmitCompositorFrame( 47 void GpuCompositorFrameSink::SubmitCompositorFrame(
48 const cc::LocalSurfaceId& local_surface_id, 48 const cc::LocalSurfaceId& local_surface_id,
49 cc::CompositorFrame frame) { 49 cc::CompositorFrame frame) {
50 support_->SubmitCompositorFrame(local_surface_id, std::move(frame)); 50 support_->SubmitCompositorFrame(local_surface_id, std::move(frame));
51 } 51 }
52 52
53 void GpuCompositorFrameSink::BeginFrameDidNotSwap( 53 void GpuCompositorFrameSink::DidNotProduceFrame(
54 const cc::BeginFrameAck& begin_frame_ack) { 54 const cc::BeginFrameAck& begin_frame_ack) {
55 support_->BeginFrameDidNotSwap(begin_frame_ack); 55 support_->DidNotProduceFrame(begin_frame_ack);
56 } 56 }
57 57
58 void GpuCompositorFrameSink::DidReceiveCompositorFrameAck( 58 void GpuCompositorFrameSink::DidReceiveCompositorFrameAck(
59 const cc::ReturnedResourceArray& resources) { 59 const cc::ReturnedResourceArray& resources) {
60 if (client_) 60 if (client_)
61 client_->DidReceiveCompositorFrameAck(resources); 61 client_->DidReceiveCompositorFrameAck(resources);
62 } 62 }
63 63
64 void GpuCompositorFrameSink::ClaimTemporaryReference( 64 void GpuCompositorFrameSink::ClaimTemporaryReference(
65 const cc::SurfaceId& surface_id) { 65 const cc::SurfaceId& surface_id) {
(...skipping 28 matching lines...) Expand all
94 } 94 }
95 95
96 void GpuCompositorFrameSink::OnPrivateConnectionLost() { 96 void GpuCompositorFrameSink::OnPrivateConnectionLost() {
97 private_connection_lost_ = true; 97 private_connection_lost_ = true;
98 // Request destruction of |this| only if both connections are lost. 98 // Request destruction of |this| only if both connections are lost.
99 delegate_->OnPrivateConnectionLost(support_->frame_sink_id(), 99 delegate_->OnPrivateConnectionLost(support_->frame_sink_id(),
100 client_connection_lost_); 100 client_connection_lost_);
101 } 101 }
102 102
103 } // namespace viz 103 } // namespace viz
OLDNEW
« no previous file with comments | « components/viz/frame_sinks/gpu_compositor_frame_sink.h ('k') | components/viz/frame_sinks/gpu_root_compositor_frame_sink.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698