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

Unified Diff: services/ui/ws/display_client_compositor_frame_sink.cc

Issue 2720803002: Pass returned resources to DidReceiveCompositorFrameAck (Closed)
Patch Set: c Created 3 years, 8 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: services/ui/ws/display_client_compositor_frame_sink.cc
diff --git a/services/ui/ws/display_client_compositor_frame_sink.cc b/services/ui/ws/display_client_compositor_frame_sink.cc
index 7083b48c83c7102459355900fac404737e841c23..65c0fc90172b7d88dfc4b968e5d8b8393f7b069d 100644
--- a/services/ui/ws/display_client_compositor_frame_sink.cc
+++ b/services/ui/ws/display_client_compositor_frame_sink.cc
@@ -67,10 +67,12 @@ void DisplayClientCompositorFrameSink::SubmitCompositorFrame(
last_submitted_frame_size_ = frame_size;
}
-void DisplayClientCompositorFrameSink::DidReceiveCompositorFrameAck() {
+void DisplayClientCompositorFrameSink::DidReceiveCompositorFrameAck(
+ const cc::ReturnedResourceArray& resources) {
DCHECK(thread_checker_->CalledOnValidThread());
if (!client_)
return;
+ client_->ReclaimResources(resources);
client_->DidReceiveCompositorFrameAck();
}

Powered by Google App Engine
This is Rietveld 408576698