| Index: content/common/gpu/gpu_messages.h
|
| diff --git a/content/common/gpu/gpu_messages.h b/content/common/gpu/gpu_messages.h
|
| index 2a6ddafd2944858b90af984983babfa2b3be2215..b41fbb3186f8e962813a0c360b43ccddea37a29f 100644
|
| --- a/content/common/gpu/gpu_messages.h
|
| +++ b/content/common/gpu/gpu_messages.h
|
| @@ -14,6 +14,7 @@
|
| #include "content/common/gpu/gpu_process_launch_causes.h"
|
| #include "content/public/common/common_param_traits.h"
|
| #include "content/public/common/gpu_info.h"
|
| +#include "content/public/common/gpu_mem_stats.h"
|
| #include "gpu/command_buffer/common/command_buffer.h"
|
| #include "gpu/command_buffer/common/constants.h"
|
| #include "gpu/ipc/gpu_command_buffer_traits.h"
|
| @@ -133,6 +134,12 @@ IPC_STRUCT_TRAITS_BEGIN(content::GPUInfo)
|
| #endif
|
| IPC_STRUCT_TRAITS_END()
|
|
|
| +IPC_STRUCT_TRAITS_BEGIN(content::GpuMemStats)
|
| + IPC_STRUCT_TRAITS_MEMBER(total_bytes)
|
| + IPC_STRUCT_TRAITS_MEMBER(currently_allocated_bytes)
|
| + IPC_STRUCT_TRAITS_MEMBER(max_concurrently_allocated_bytes)
|
| +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)
|
| @@ -192,6 +199,9 @@ IPC_MESSAGE_CONTROL4(GpuMsg_CreateViewCommandBuffer,
|
| // information.
|
| IPC_MESSAGE_CONTROL0(GpuMsg_CollectGraphicsInfo)
|
|
|
| +// Tells the GPU process to report memory usage statistics to the browser
|
| +IPC_MESSAGE_CONTROL0(GpuMsg_GetMemStats)
|
| +
|
| // Tells the GPU process that the browser process has finished resizing the
|
| // view.
|
| IPC_MESSAGE_ROUTED0(AcceleratedSurfaceMsg_ResizeViewACK)
|
| @@ -253,6 +263,10 @@ IPC_MESSAGE_CONTROL1(GpuHostMsg_DestroyCommandBuffer,
|
| IPC_MESSAGE_CONTROL1(GpuHostMsg_GraphicsInfoCollected,
|
| content::GPUInfo /* GPU logging stats */)
|
|
|
| +// Response from GPU to a GpuMsg_GetMemStats.
|
| +IPC_MESSAGE_CONTROL1(GpuHostMsg_MemStats,
|
| + content::GpuMemStats /* 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*/,
|
|
|