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

Unified Diff: ui/android/delegated_frame_host_android.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 | « ui/android/delegated_frame_host_android.h ('k') | ui/aura/local/compositor_frame_sink_local.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..2d9389e5063601dd8617d1bf18fd419c03ce2e30 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::DidNotProduceFrame(
+ const cc::BeginFrameAck& ack) {
+ support_->DidNotProduceFrame(ack);
+}
+
cc::FrameSinkId DelegatedFrameHostAndroid::GetFrameSinkId() const {
return frame_sink_id_;
}
@@ -183,12 +188,6 @@ void DelegatedFrameHostAndroid::OnNeedsBeginFrames(bool needs_begin_frames) {
support_->SetNeedsBeginFrame(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() {
constexpr bool is_root = false;
constexpr bool handles_frame_sink_id_invalidation = false;
« no previous file with comments | « ui/android/delegated_frame_host_android.h ('k') | ui/aura/local/compositor_frame_sink_local.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698