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

Unified Diff: components/exo/surface.cc

Issue 2888043004: [cc] Add and plumb CFS::DidNotProduceFrame. (Closed)
Patch Set: address nits, rename to DidNotProduceFrame. 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/trees/single_thread_proxy.cc ('k') | components/viz/frame_sinks/gpu_compositor_frame_sink.h » ('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 66784aebb22e03dc2573c159810fd03bab8fd187..d68aa04186364f6113f8e13ed4730a3f94e5829c 100644
--- a/components/exo/surface.cc
+++ b/components/exo/surface.cc
@@ -426,9 +426,14 @@ void Surface::Commit() {
CommitSurfaceHierarchy();
}
- if (begin_frame_source_ && current_begin_frame_ack_.sequence_number !=
- cc::BeginFrameArgs::kInvalidFrameNumber) {
- begin_frame_source_->DidFinishFrame(this, current_begin_frame_ack_);
+ 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;
}
« no previous file with comments | « cc/trees/single_thread_proxy.cc ('k') | components/viz/frame_sinks/gpu_compositor_frame_sink.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698