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

Unified Diff: cc/surfaces/direct_compositor_frame_sink.cc

Issue 2755463002: [cc] Fix CompositorFrameSinkSupport BeginFrameAck interface. (Closed)
Patch Set: pass on acks to MojoCFSs in clients. 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 side-by-side diff with in-line comments
Download patch
Index: cc/surfaces/direct_compositor_frame_sink.cc
diff --git a/cc/surfaces/direct_compositor_frame_sink.cc b/cc/surfaces/direct_compositor_frame_sink.cc
index a915b941c1e6ada8c17fff3cefbfd350d8e76c1a..d2bc2c861125cb53bdec6139c0939808c5ee568e 100644
--- a/cc/surfaces/direct_compositor_frame_sink.cc
+++ b/cc/surfaces/direct_compositor_frame_sink.cc
@@ -151,7 +151,9 @@ void DirectCompositorFrameSink::OnNeedsBeginFrames(bool needs_begin_frame) {
}
void DirectCompositorFrameSink::OnDidFinishFrame(const BeginFrameAck& ack) {
- support_->DidFinishFrame(ack);
+ // If there was damage, SubmitCompositorFrame includes the ack.
piman 2017/03/17 18:12:01 nit: is this something we should DCHECK in SubmitC
Eric Seckler 2017/03/20 11:54:03 Added a DCHECK. Yes, whenever there's a Composito
+ if (!ack.has_damage)
+ support_->BeginFrameDidNotSwap(ack);
}
} // namespace cc

Powered by Google App Engine
This is Rietveld 408576698