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

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

Issue 2527283003: cc: Introduce BeginFrame sequence numbers and acknowledgements.
Patch Set: Address Brian's comments. 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
« no previous file with comments | « services/ui/surfaces/gpu_compositor_frame_sink.h ('k') | services/ui/ws/frame_generator.cc » ('j') | 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 "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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 59
60 void GpuCompositorFrameSink::Require(const cc::LocalFrameId& local_frame_id, 60 void GpuCompositorFrameSink::Require(const cc::LocalFrameId& local_frame_id,
61 const cc::SurfaceSequence& sequence) { 61 const cc::SurfaceSequence& sequence) {
62 support_.Require(local_frame_id, sequence); 62 support_.Require(local_frame_id, sequence);
63 } 63 }
64 64
65 void GpuCompositorFrameSink::Satisfy(const cc::SurfaceSequence& sequence) { 65 void GpuCompositorFrameSink::Satisfy(const cc::SurfaceSequence& sequence) {
66 support_.Satisfy(sequence); 66 support_.Satisfy(sequence);
67 } 67 }
68 68
69 void GpuCompositorFrameSink::BeginFrameDidNotDraw(
70 const cc::BeginFrameAck& ack) {
71 support_.BeginFrameDidNotDraw(ack);
72 }
73
69 void GpuCompositorFrameSink::DidReceiveCompositorFrameAck() { 74 void GpuCompositorFrameSink::DidReceiveCompositorFrameAck() {
70 if (client_) 75 if (client_)
71 client_->DidReceiveCompositorFrameAck(); 76 client_->DidReceiveCompositorFrameAck();
72 } 77 }
73 78
74 void GpuCompositorFrameSink::AddChildFrameSink( 79 void GpuCompositorFrameSink::AddChildFrameSink(
75 const cc::FrameSinkId& child_frame_sink_id) { 80 const cc::FrameSinkId& child_frame_sink_id) {
76 support_.AddChildFrameSink(child_frame_sink_id); 81 support_.AddChildFrameSink(child_frame_sink_id);
77 } 82 }
78 83
(...skipping 26 matching lines...) Expand all
105 } 110 }
106 111
107 void GpuCompositorFrameSink::OnPrivateConnectionLost() { 112 void GpuCompositorFrameSink::OnPrivateConnectionLost() {
108 private_connection_lost_ = true; 113 private_connection_lost_ = true;
109 // Request destruction of |this| only if both connections are lost. 114 // Request destruction of |this| only if both connections are lost.
110 display_compositor_->OnCompositorFrameSinkPrivateConnectionLost( 115 display_compositor_->OnCompositorFrameSinkPrivateConnectionLost(
111 support_.frame_sink_id(), client_connection_lost_); 116 support_.frame_sink_id(), client_connection_lost_);
112 } 117 }
113 118
114 } // namespace ui 119 } // namespace ui
OLDNEW
« no previous file with comments | « services/ui/surfaces/gpu_compositor_frame_sink.h ('k') | services/ui/ws/frame_generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698