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

Unified Diff: ui/android/delegated_frame_host_android.cc

Issue 2781103002: [cc] Forward BeginFrameAcks through RWHVAndroid / DFHAndroid. (Closed)
Patch Set: 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
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 19483cd513aecd20a767d24bec0c6fb7f2858efd..4bcaff5a2f51dba0e016a3f1920733ca7dd0529a 100644
--- a/ui/android/delegated_frame_host_android.cc
+++ b/ui/android/delegated_frame_host_android.cc
@@ -180,6 +180,9 @@ 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