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

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

Issue 10702200: PyAuto test for GPU memory consumption (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Updated PyAuto test for GPU memory consumption. Created 8 years, 5 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 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*/,

Powered by Google App Engine
This is Rietveld 408576698