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

Side by Side Diff: services/ui/surfaces/gpu_compositor_frame_sink.cc

Issue 2527283003: cc: Introduce BeginFrame sequence numbers and acknowledgements.
Patch Set: . Created 4 years 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 "services/ui/surfaces/gpu_compositor_frame_sink.h" 5 #include "services/ui/surfaces/gpu_compositor_frame_sink.h"
6 6
7 #include "services/ui/surfaces/display_compositor.h" 7 #include "services/ui/surfaces/display_compositor.h"
8 8
9 namespace ui { 9 namespace ui {
10 10
(...skipping 29 matching lines...) Expand all
40 void GpuCompositorFrameSink::SetNeedsBeginFrame(bool needs_begin_frame) { 40 void GpuCompositorFrameSink::SetNeedsBeginFrame(bool needs_begin_frame) {
41 support_.SetNeedsBeginFrame(needs_begin_frame); 41 support_.SetNeedsBeginFrame(needs_begin_frame);
42 } 42 }
43 43
44 void GpuCompositorFrameSink::SubmitCompositorFrame( 44 void GpuCompositorFrameSink::SubmitCompositorFrame(
45 const cc::LocalFrameId& local_frame_id, 45 const cc::LocalFrameId& local_frame_id,
46 cc::CompositorFrame frame) { 46 cc::CompositorFrame frame) {
47 support_.SubmitCompositorFrame(local_frame_id, std::move(frame)); 47 support_.SubmitCompositorFrame(local_frame_id, std::move(frame));
48 } 48 }
49 49
50 void GpuCompositorFrameSink::BeginFrameDidNotDraw(
51 const cc::BeginFrameAck& ack) {
52 support_.BeginFrameDidNotDraw(ack);
53 }
54
50 void GpuCompositorFrameSink::DidReceiveCompositorFrameAck() { 55 void GpuCompositorFrameSink::DidReceiveCompositorFrameAck() {
51 client_->DidReceiveCompositorFrameAck(); 56 client_->DidReceiveCompositorFrameAck();
52 } 57 }
53 58
54 void GpuCompositorFrameSink::AddChildFrameSink( 59 void GpuCompositorFrameSink::AddChildFrameSink(
55 const cc::FrameSinkId& child_frame_sink_id) { 60 const cc::FrameSinkId& child_frame_sink_id) {
56 support_.AddChildFrameSink(child_frame_sink_id); 61 support_.AddChildFrameSink(child_frame_sink_id);
57 } 62 }
58 63
59 void GpuCompositorFrameSink::RemoveChildFrameSink( 64 void GpuCompositorFrameSink::RemoveChildFrameSink(
(...skipping 25 matching lines...) Expand all
85 } 90 }
86 91
87 void GpuCompositorFrameSink::OnPrivateConnectionLost() { 92 void GpuCompositorFrameSink::OnPrivateConnectionLost() {
88 private_connection_lost_ = true; 93 private_connection_lost_ = true;
89 // Request destruction of |this| only if both connections are lost. 94 // Request destruction of |this| only if both connections are lost.
90 display_compositor_->OnCompositorFrameSinkPrivateConnectionLost( 95 display_compositor_->OnCompositorFrameSinkPrivateConnectionLost(
91 support_.frame_sink_id(), client_connection_lost_); 96 support_.frame_sink_id(), client_connection_lost_);
92 } 97 }
93 98
94 } // namespace ui 99 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698