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

Unified Diff: components/exo/surface.cc

Issue 2897053002: [cc] Remove BeginFrameAck from BFS::DidFinishFrame and update tests. (Closed)
Patch Set: fix exo compile error Created 3 years, 7 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: components/exo/surface.cc
diff --git a/components/exo/surface.cc b/components/exo/surface.cc
index d68aa04186364f6113f8e13ed4730a3f94e5829c..b9a10dd4de673d15d79f9109e61f469e2dbc7659 100644
--- a/components/exo/surface.cc
+++ b/components/exo/surface.cc
@@ -428,14 +428,14 @@ void Surface::Commit() {
if (current_begin_frame_ack_.sequence_number !=
cc::BeginFrameArgs::kInvalidFrameNumber) {
- if (begin_frame_source_)
- begin_frame_source_->DidFinishFrame(this, current_begin_frame_ack_);
if (!current_begin_frame_ack_.has_damage) {
compositor_frame_sink_holder_->GetCompositorFrameSink()
->DidNotProduceFrame(current_begin_frame_ack_);
}
current_begin_frame_ack_.sequence_number =
cc::BeginFrameArgs::kInvalidFrameNumber;
+ if (begin_frame_source_)
+ begin_frame_source_->DidFinishFrame(this);
}
}

Powered by Google App Engine
This is Rietveld 408576698