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

Unified Diff: content/common/gpu/gpu_messages.h

Issue 10052018: Drop frontbuffers with ui-use-gpu-process, synchronized with browser, decoupled from backbuffer dro… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Renaming messages. Updated the other platforms. Created 8 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: content/common/gpu/gpu_messages.h
diff --git a/content/common/gpu/gpu_messages.h b/content/common/gpu/gpu_messages.h
index d921b3bcdd34a54b5f84017c1bd6233f13bf99c1..48623495b69ad1e9f850254a55d69e281786cf5e 100644
--- a/content/common/gpu/gpu_messages.h
+++ b/content/common/gpu/gpu_messages.h
@@ -84,6 +84,12 @@ IPC_STRUCT_BEGIN(GpuHostMsg_AcceleratedSurfaceRelease_Params)
#endif
IPC_STRUCT_END()
+IPC_STRUCT_BEGIN(GpuHostMsg_AcceleratedSurfaceSuggestDiscard_Params)
+ IPC_STRUCT_MEMBER(int32, surface_id)
+ IPC_STRUCT_MEMBER(uint64, identifier)
+ IPC_STRUCT_MEMBER(int32, route_id)
+IPC_STRUCT_END()
+
IPC_STRUCT_BEGIN(GPUCommandBufferConsoleMessage)
IPC_STRUCT_MEMBER(int32, id)
IPC_STRUCT_MEMBER(std::string, message)
@@ -192,6 +198,10 @@ IPC_MESSAGE_ROUTED2(AcceleratedSurfaceMsg_NewACK,
uint64 /* surface_handle */,
TransportDIB::Handle /* shared memory buffer */)
+// Tells the GPU process that it's safe to release the surface.
+IPC_MESSAGE_ROUTED1(AcceleratedSurfaceMsg_DiscardSurface,
+ uint64 /* surface_id */)
+
// Tells the GPU process that the browser process handled the swap
// buffers request.
IPC_MESSAGE_ROUTED0(AcceleratedSurfaceMsg_BuffersSwappedACK)
@@ -287,6 +297,11 @@ IPC_MESSAGE_CONTROL1(GpuHostMsg_AcceleratedSurfaceRelease,
IPC_MESSAGE_CONTROL1(GpuHostMsg_AcceleratedSurfaceSuspend,
int32 /* surface_id */)
+// Tells the browser to release resources for the given surface until the next
+// time swap buffers or post sub buffer is sent.
+IPC_MESSAGE_CONTROL1(GpuHostMsg_AcceleratedSurfaceSuggestDiscard,
+ GpuHostMsg_AcceleratedSurfaceSuggestDiscard_Params)
+
//------------------------------------------------------------------------------
// GPU Channel Messages
// These are messages from a renderer process to the GPU process.

Powered by Google App Engine
This is Rietveld 408576698