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

Unified Diff: cc/surfaces/compositor_frame_sink_support.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: cc/surfaces/compositor_frame_sink_support.cc
diff --git a/cc/surfaces/compositor_frame_sink_support.cc b/cc/surfaces/compositor_frame_sink_support.cc
index 093c5b60d9469aec4fede331dbfb8dd307b3ff5a..1e2f0ce8910582a20da8f400aeb4aa00bab8d084 100644
--- a/cc/surfaces/compositor_frame_sink_support.cc
+++ b/cc/surfaces/compositor_frame_sink_support.cc
@@ -212,17 +212,10 @@ void CompositorFrameSinkSupport::RemoveTopLevelRootReference(
void CompositorFrameSinkSupport::DidReceiveCompositorFrameAck() {
DCHECK_GT(ack_pending_count_, 0);
ack_pending_count_--;
-
if (!client_)
return;
-
- // We return the resources before sending an ack so they can be reused in
- // making the next CompositorFrame.
- if (!surface_returned_resources_.empty()) {
- client_->ReclaimResources(surface_returned_resources_);
- surface_returned_resources_.clear();
- }
- client_->DidReceiveCompositorFrameAck();
+ client_->DidReceiveCompositorFrameAck(surface_returned_resources_);
+ surface_returned_resources_.clear();
}
void CompositorFrameSinkSupport::ForceReclaimResources() {

Powered by Google App Engine
This is Rietveld 408576698