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 |