Chromium Code Reviews| Index: content/common/gpu/gpu_messages.h |
| diff --git a/content/common/gpu/gpu_messages.h b/content/common/gpu/gpu_messages.h |
| index 3e96bb7dd0b67399df31cbcb422a23ea02e903c5..3430f097f0b8f5b47f95b81fbe71b08294071c5c 100644 |
| --- a/content/common/gpu/gpu_messages.h |
| +++ b/content/common/gpu/gpu_messages.h |
| @@ -15,6 +15,7 @@ |
| #include "content/public/common/common_param_traits.h" |
| #include "content/public/common/gpu_info.h" |
| #include "content/public/common/gpu_memory_stats.h" |
| +#include "content/public/common/gpu_rendering_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" |
| @@ -194,6 +195,13 @@ IPC_ENUM_TRAITS(gpu::error::ContextLostReason) |
| IPC_ENUM_TRAITS(media::VideoCodecProfile) |
| +IPC_STRUCT_TRAITS_BEGIN(content::GpuRenderingStats) |
| + IPC_STRUCT_TRAITS_MEMBER(globalTextureUploadCount) |
| + IPC_STRUCT_TRAITS_MEMBER(globalTotalTextureUploadTimeInSeconds) |
| + IPC_STRUCT_TRAITS_MEMBER(textureUploadCount) |
| + IPC_STRUCT_TRAITS_MEMBER(totalTextureUploadTimeInSeconds) |
| +IPC_STRUCT_TRAITS_END() |
| + |
| //------------------------------------------------------------------------------ |
| // GPU Messages |
| // These are messages from the browser to the GPU process. |
| @@ -385,6 +393,11 @@ IPC_MESSAGE_ROUTED1(GpuStreamTextureMsg_MatrixChanged, |
| GpuStreamTextureMsg_MatrixChanged_Params /* params */) |
| #endif |
| +// Tells the GPU process to collect rendering stats. |
| +IPC_SYNC_MESSAGE_CONTROL1_1(GpuChannelMsg_CollectRenderingStats, |
|
apatrick_chromium
2012/08/28 20:07:06
Can you put these with the other GpuChannelMsg mes
|
| + int32 /* surface_id */, |
| + content::GpuRenderingStats /* stats */) |
| + |
| //------------------------------------------------------------------------------ |
| // GPU Command Buffer Messages |
| // These are messages between a renderer process to the GPU process relating to |