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

Unified Diff: ui/android/delegated_frame_host_android.cc

Issue 2888043004: [cc] Add and plumb CFS::DidNotProduceFrame. (Closed)
Patch Set: 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: ui/android/delegated_frame_host_android.cc
diff --git a/ui/android/delegated_frame_host_android.cc b/ui/android/delegated_frame_host_android.cc
index 3963a3adb544e201d69bf2f8fdf0c6c503855453..47afe76eca7d1a37969e5ad9fc926966a1cde4de 100644
--- a/ui/android/delegated_frame_host_android.cc
+++ b/ui/android/delegated_frame_host_android.cc
@@ -94,6 +94,11 @@ void DelegatedFrameHostAndroid::SubmitCompositorFrame(
}
}
+void DelegatedFrameHostAndroid::BeginFrameDidNotProduceFrame(
+ const cc::BeginFrameAck& ack) {
+ support_->BeginFrameDidNotProduceFrame(ack);
+}
+
cc::FrameSinkId DelegatedFrameHostAndroid::GetFrameSinkId() const {
return frame_sink_id_;
}
@@ -184,9 +189,6 @@ void DelegatedFrameHostAndroid::OnNeedsBeginFrames(bool needs_begin_frames) {
}
void DelegatedFrameHostAndroid::OnDidFinishFrame(const cc::BeginFrameAck& ack) {
- // If there was damage, SubmitCompositorFrame includes the ack.
- if (!ack.has_damage)
- support_->BeginFrameDidNotSwap(ack);
}
void DelegatedFrameHostAndroid::CreateNewCompositorFrameSinkSupport() {

Powered by Google App Engine
This is Rietveld 408576698