Index: content/common/gpu/gpu_messages.h |
diff --git a/content/common/gpu/gpu_messages.h b/content/common/gpu/gpu_messages.h |
index 2415fa8661e3c31b2b7345b16c2643727e948519..9a7283c0a7712f4210ce1fec2cc5d0b2ab085688 100644 |
--- a/content/common/gpu/gpu_messages.h |
+++ b/content/common/gpu/gpu_messages.h |
@@ -162,6 +162,15 @@ IPC_STRUCT_TRAITS_BEGIN(content::GPUInfo) |
#endif |
IPC_STRUCT_TRAITS_END() |
+IPC_STRUCT_TRAITS_BEGIN(content::GPUVidmem::GPUProcessVidmem) |
+ IPC_STRUCT_TRAITS_MEMBER(vidmem) |
+ IPC_STRUCT_TRAITS_MEMBER(has_duplicates) |
+IPC_STRUCT_TRAITS_END() |
+ |
+IPC_STRUCT_TRAITS_BEGIN(content::GPUVidmem) |
+ IPC_STRUCT_TRAITS_MEMBER(process_map) |
+IPC_STRUCT_TRAITS_END() |
+ |
IPC_STRUCT_TRAITS_BEGIN(GpuMemoryAllocationForRenderer) |
IPC_STRUCT_TRAITS_MEMBER(gpu_resource_size_in_bytes) |
IPC_STRUCT_TRAITS_MEMBER(suggest_have_backbuffer) |
@@ -221,6 +230,9 @@ IPC_MESSAGE_CONTROL4(GpuMsg_CreateViewCommandBuffer, |
// information. |
IPC_MESSAGE_CONTROL0(GpuMsg_CollectGraphicsInfo) |
+// Tells the GPU process to report vidmem information for the task manager |
+IPC_MESSAGE_CONTROL0(GpuMsg_GetVidmem) |
+ |
// Tells the GPU process that the browser process has finished resizing the |
// view. |
IPC_MESSAGE_ROUTED0(AcceleratedSurfaceMsg_ResizeViewACK) |
@@ -282,6 +294,10 @@ IPC_MESSAGE_CONTROL1(GpuHostMsg_DestroyCommandBuffer, |
IPC_MESSAGE_CONTROL1(GpuHostMsg_GraphicsInfoCollected, |
content::GPUInfo /* GPU logging stats */) |
+// Response from GPU to a GpuMsg_GetVidmem. |
+IPC_MESSAGE_CONTROL1(GpuHostMsg_Vidmem, |
+ content::GPUVidmem /* GPU memory usage stats */) |
+ |
// Message from GPU to add a GPU log message to the about:gpu page. |
IPC_MESSAGE_CONTROL3(GpuHostMsg_OnLogMessage, |
int /*severity*/, |