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

Unified Diff: content/browser/tracing/tracing_controller_impl.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/tracing_controller_impl.h
diff --git a/content/browser/tracing/tracing_controller_impl.h b/content/browser/tracing/tracing_controller_impl.h
index 7eab907ce95a3b6b84d16502af39814ae0db1977..620b1dd7a62d917223e655e81e2e838e55b1d3e0 100644
--- a/content/browser/tracing/tracing_controller_impl.h
+++ b/content/browser/tracing/tracing_controller_impl.h
@@ -46,6 +46,11 @@ class TracingControllerImpl : public TracingController {
const TracingFileResultCallback& callback) OVERRIDE;
virtual bool GetTraceBufferPercentFull(
const GetTraceBufferPercentFullCallback& callback) OVERRIDE;
+ virtual void ConfigureSyntheticDelay(
+ const std::string& name,
+ base::TimeDelta target_duration,
+ base::debug::TraceEventSyntheticDelay::Mode mode,
+ const ConfigureSyntheticDelayCallback& callback) OVERRIDE;
private:
typedef std::set<scoped_refptr<TraceMessageFilter> > FilterMap;
@@ -105,6 +110,8 @@ class TracingControllerImpl : public TracingController {
void OnTraceNotification(int notification);
void OnTraceBufferPercentFullReply(float percent_full);
+ void OnConfigureSyntheticDelayAcked();
+
FilterMap filters_;
// Pending acks for DisableRecording.
int pending_disable_recording_ack_count_;
@@ -112,6 +119,8 @@ class TracingControllerImpl : public TracingController {
int pending_capture_monitoring_snapshot_ack_count_;
// Pending acks for GetTraceBufferPercentFull.
int pending_trace_buffer_percent_full_ack_count_;
+ // Pending acks for ConfigureSyntheticDelay.
+ int pending_configure_synthetic_delay_ack_count_;
float maximum_trace_buffer_percent_full_;
bool is_recording_;
@@ -121,6 +130,7 @@ class TracingControllerImpl : public TracingController {
TracingFileResultCallback pending_disable_recording_done_callback_;
TracingFileResultCallback pending_capture_monitoring_snapshot_done_callback_;
GetTraceBufferPercentFullCallback pending_trace_buffer_percent_full_callback_;
+ ConfigureSyntheticDelayCallback pending_configure_synthetic_delay_callback_;
std::set<std::string> known_category_groups_;
base::debug::CategoryFilter category_filter_;

Powered by Google App Engine
This is Rietveld 408576698