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

Unified Diff: content/browser/renderer_host/delegated_frame_host.h

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
Index: content/browser/renderer_host/delegated_frame_host.h
diff --git a/content/browser/renderer_host/delegated_frame_host.h b/content/browser/renderer_host/delegated_frame_host.h
index 3a912751873fb697eda5c84e9e52e1a04aebff7e..f0d6b2423ed5f86d4fb56156219d6b7748c8c45c 100644
--- a/content/browser/renderer_host/delegated_frame_host.h
+++ b/content/browser/renderer_host/delegated_frame_host.h
@@ -69,12 +69,10 @@ class CONTENT_EXPORT DelegatedFrameHostClient {
bool defer_compositor_lock) = 0;
virtual void DelegatedFrameHostResizeLockWasReleased() = 0;
- virtual void DelegatedFrameHostSendCompositorSwapAck(
- int output_surface_id,
- const cc::CompositorFrameAck& ack) = 0;
virtual void DelegatedFrameHostSendReclaimCompositorResources(
int output_surface_id,
- const cc::CompositorFrameAck& ack) = 0;
+ bool is_swap_ack,
+ const cc::ReturnedResourceArray& resources) = 0;
virtual void DelegatedFrameHostOnLostCompositorResources() = 0;
virtual void DelegatedFrameHostUpdateVSyncParameters(
@@ -239,9 +237,9 @@ class CONTENT_EXPORT DelegatedFrameHost
scoped_refptr<OwnedMailbox> subscriber_texture,
const gpu::SyncToken& sync_token);
- void SendDelegatedFrameAck(uint32_t output_surface_id);
+ void SendReclaimCompositorResources(uint32_t output_surface_id,
+ bool is_swap_ack);
void SurfaceDrawn(uint32_t output_surface_id, cc::SurfaceDrawStatus drawn);
- void SendReturnedDelegatedResources(uint32_t output_surface_id);
// Called to consult the current |frame_subscriber_|, to determine and maybe
// initiate a copy-into-video-frame request.
« no previous file with comments | « content/browser/renderer_host/browser_compositor_view_mac.mm ('k') | content/browser/renderer_host/delegated_frame_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698