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

Unified Diff: services/ui/public/cpp/lib/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 | « content/renderer/gpu/compositor_output_surface.cc ('k') | tools/ipc_fuzzer/fuzzer/fuzzer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/public/cpp/lib/output_surface.cc
diff --git a/services/ui/public/cpp/lib/output_surface.cc b/services/ui/public/cpp/lib/output_surface.cc
index 2d58a0a9f833190f3e76857d02ba2de8f5f37a58..9eacc977583a8195684ce77dad38fe1b6eac496a 100644
--- a/services/ui/public/cpp/lib/output_surface.cc
+++ b/services/ui/public/cpp/lib/output_surface.cc
@@ -6,7 +6,6 @@
#include "base/bind.h"
#include "cc/output/compositor_frame.h"
-#include "cc/output/compositor_frame_ack.h"
#include "cc/output/output_surface_client.h"
#include "services/ui/public/cpp/window_surface.h"
@@ -56,9 +55,7 @@ void OutputSurface::SwapBuffers(cc::CompositorFrame frame) {
void OutputSurface::OnResourcesReturned(
ui::WindowSurface* surface,
mojo::Array<cc::ReturnedResource> resources) {
- cc::CompositorFrameAck cfa;
- cfa.resources = resources.To<cc::ReturnedResourceArray>();
- ReclaimResources(&cfa);
+ ReclaimResources(resources.To<cc::ReturnedResourceArray>());
}
void OutputSurface::SwapBuffersComplete() {
« no previous file with comments | « content/renderer/gpu/compositor_output_surface.cc ('k') | tools/ipc_fuzzer/fuzzer/fuzzer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698