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

Unified Diff: components/exo/compositor_frame_sink_holder.cc

Issue 2755463002: [cc] Fix CompositorFrameSinkSupport BeginFrameAck interface. (Closed)
Patch Set: sync 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
« no previous file with comments | « components/exo/compositor_frame_sink.cc ('k') | components/exo/surface.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/exo/compositor_frame_sink_holder.cc
diff --git a/components/exo/compositor_frame_sink_holder.cc b/components/exo/compositor_frame_sink_holder.cc
index 3d6e5a2716e09fa5bfb30535ffe5bfa3984df74c..c21346fc51b71d6979652fc38cf8e9ba1c5c742b 100644
--- a/components/exo/compositor_frame_sink_holder.cc
+++ b/components/exo/compositor_frame_sink_holder.cc
@@ -75,7 +75,9 @@ void CompositorFrameSinkHolder::OnNeedsBeginFrames(bool needs_begin_frames) {
}
void CompositorFrameSinkHolder::OnDidFinishFrame(const cc::BeginFrameAck& ack) {
- // TODO(eseckler): Pass on the ack to frame_sink_.
+ // If there was damage, the submitted CompositorFrame includes the ack.
+ if (!ack.has_damage)
+ frame_sink_->BeginFrameDidNotSwap(ack);
}
////////////////////////////////////////////////////////////////////////////////
« no previous file with comments | « components/exo/compositor_frame_sink.cc ('k') | components/exo/surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698