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

Unified Diff: content/browser/tracing/trace_message_filter.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: content/browser/tracing/trace_message_filter.h
diff --git a/content/browser/tracing/trace_message_filter.h b/content/browser/tracing/trace_message_filter.h
index c8290d952c65e012e04031b78649b23b0e917c2f..83e16db8abf860c364c3dc6aab54c159765a0192 100644
--- a/content/browser/tracing/trace_message_filter.h
+++ b/content/browser/tracing/trace_message_filter.h
@@ -9,6 +9,7 @@
#include <vector>
#include "base/debug/trace_event.h"
+#include "base/debug/trace_event_synthetic_delay.h"
#include "content/public/browser/browser_message_filter.h"
namespace content {
@@ -36,6 +37,10 @@ class TraceMessageFilter : public BrowserMessageFilter {
void SendSetWatchEvent(const std::string& category_name,
const std::string& event_name);
void SendCancelWatchEvent();
+ void SendConfigureSyntheticDelay(
+ const std::string& name,
+ base::TimeDelta target_duration,
+ base::debug::TraceEventSyntheticDelay::Mode mode);
protected:
virtual ~TraceMessageFilter();
@@ -49,6 +54,7 @@ class TraceMessageFilter : public BrowserMessageFilter {
void OnTraceBufferPercentFullReply(float percent_full);
void OnTraceDataCollected(const std::string& data);
void OnMonitoringTraceDataCollected(const std::string& data);
+ void OnConfigureSyntheticDelayAck();
// ChildTraceMessageFilter exists:
bool has_child_;
@@ -59,6 +65,8 @@ class TraceMessageFilter : public BrowserMessageFilter {
bool is_awaiting_capture_monitoring_snapshot_ack_;
// Awaiting ack for previously sent SendGetTraceBufferPercentFull
bool is_awaiting_buffer_percent_full_ack_;
+ // Awaiting ack for previously sent SendConfigureSyntheticDelay
+ bool is_awaiting_configure_synthetic_delay_ack_;
DISALLOW_COPY_AND_ASSIGN(TraceMessageFilter);
};

Powered by Google App Engine
This is Rietveld 408576698