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

Unified Diff: cc/test/fake_output_surface.cc

Issue 2147873003: cc: Dedup IPCs to return resources to client (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 5 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 | « cc/surfaces/surface_display_output_surface.cc ('k') | cc/test/fake_output_surface_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/fake_output_surface.cc
diff --git a/cc/test/fake_output_surface.cc b/cc/test/fake_output_surface.cc
index fb16c08021115888dcef15e3e32659ac54a3b617..9a10249e1f6178f3ba0f369f3f5d6cdc15c2b643 100644
--- a/cc/test/fake_output_surface.cc
+++ b/cc/test/fake_output_surface.cc
@@ -6,7 +6,6 @@
#include "base/bind.h"
#include "base/message_loop/message_loop.h"
-#include "cc/output/compositor_frame_ack.h"
#include "cc/output/output_surface_client.h"
#include "cc/resources/returned_resource.h"
#include "cc/test/begin_frame_args_test.h"
@@ -131,11 +130,11 @@ void FakeOutputSurface::ReturnResourcesHeldByParent() {
// for the Display which does not swap delegated frames.
if (last_sent_frame_ && last_sent_frame_->delegated_frame_data) {
// Return the last frame's resources immediately.
- CompositorFrameAck ack;
+ ReturnedResourceArray resources;
for (const auto& resource : resources_held_by_parent_)
- ack.resources.push_back(resource.ToReturnedResource());
+ resources.push_back(resource.ToReturnedResource());
resources_held_by_parent_.clear();
- client_->ReclaimResources(&ack);
+ client_->ReclaimResources(resources);
}
}
« no previous file with comments | « cc/surfaces/surface_display_output_surface.cc ('k') | cc/test/fake_output_surface_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698