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

Unified Diff: components/tracing/tracing_messages.h

Issue 83483007: Expose synthetic delays through the GPU benchmarking extension (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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: components/tracing/tracing_messages.h
diff --git a/components/tracing/tracing_messages.h b/components/tracing/tracing_messages.h
index 25b45bde77cb6bc707842c357026da0f221303e0..ec21a54201ac7764914fdf5858d5de60dc94313c 100644
--- a/components/tracing/tracing_messages.h
+++ b/components/tracing/tracing_messages.h
@@ -7,6 +7,7 @@
#include <vector>
#include "base/basictypes.h"
+#include "base/debug/trace_event_synthetic_delay.h"
#include "base/sync_socket.h"
#include "ipc/ipc_channel_handle.h"
#include "ipc/ipc_message_macros.h"
@@ -15,6 +16,8 @@
#define IPC_MESSAGE_START TracingMsgStart
+IPC_ENUM_TRAITS(base::debug::TraceEventSyntheticDelay::Mode)
+
// Sent to all child processes to enable trace event recording.
IPC_MESSAGE_CONTROL3(TracingMsg_BeginTracing,
std::string /* category_filter_str */,
@@ -47,6 +50,17 @@ IPC_MESSAGE_CONTROL2(TracingMsg_SetWatchEvent,
// Sent to all child processes to clear watch event.
IPC_MESSAGE_CONTROL0(TracingMsg_CancelWatchEvent)
+IPC_STRUCT_BEGIN(TracingMsg_ConfigureSyntheticDelay_Params)
+ IPC_STRUCT_MEMBER(std::string, name)
+ IPC_STRUCT_MEMBER(base::TimeDelta, target_duration)
+ IPC_STRUCT_MEMBER(base::debug::TraceEventSyntheticDelay::Mode, mode)
+IPC_STRUCT_END()
+
+IPC_MESSAGE_CONTROL1(TracingMsg_ConfigureSyntheticDelay,
+ TracingMsg_ConfigureSyntheticDelay_Params /* params */)
+
+IPC_MESSAGE_CONTROL0(TracingHostMsg_ConfigureSyntheticDelayAck);
+
// Notify the browser that this child process supports tracing.
IPC_MESSAGE_CONTROL0(TracingHostMsg_ChildSupportsTracing)

Powered by Google App Engine
This is Rietveld 408576698