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

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

Issue 10868048: Report texture upload time in renderingStats. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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 3e96bb7dd0b67399df31cbcb422a23ea02e903c5..edf77ae06e33a77e71dfd86296f993c704a76f23 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,11 @@ IPC_ENUM_TRAITS(gpu::error::ContextLostReason)
IPC_ENUM_TRAITS(media::VideoCodecProfile)
+IPC_STRUCT_TRAITS_BEGIN(content::GpuRenderingStats)
+ 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 +391,10 @@ IPC_MESSAGE_ROUTED1(GpuStreamTextureMsg_MatrixChanged,
GpuStreamTextureMsg_MatrixChanged_Params /* params */)
#endif
+// Tells the GPU process to collect rendering stats.
+IPC_SYNC_MESSAGE_CONTROL0_1(GpuChannelMsg_CollectRenderingStats,
+ content::GpuRenderingStats /* stats */)
+
//------------------------------------------------------------------------------
// GPU Command Buffer Messages
// These are messages between a renderer process to the GPU process relating to

Powered by Google App Engine
This is Rietveld 408576698