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

Unified Diff: components/exo/surface.cc

Issue 2897053002: [cc] Remove BeginFrameAck from BFS::DidFinishFrame and update tests. (Closed)
Patch Set: sync for PrimaryBFS 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
« no previous file with comments | « cc/test/fake_external_begin_frame_source.cc ('k') | components/exo/surface_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/exo/surface.cc
diff --git a/components/exo/surface.cc b/components/exo/surface.cc
index 7649a08b9f0f8c956b023ee2a283879555f0afd9..301b8d96cdf52b2cbd112b2769a41e2383775d1d 100644
--- a/components/exo/surface.cc
+++ b/components/exo/surface.cc
@@ -433,14 +433,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);
}
}
« no previous file with comments | « cc/test/fake_external_begin_frame_source.cc ('k') | components/exo/surface_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698