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

Unified Diff: content/common/synthetic_delay_configuration.h

Issue 83483007: Expose synthetic delays through the GPU benchmarking extension (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Forward delays in RenderWidgetHostImpl properly. Created 7 years 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/synthetic_delay_configuration.h
diff --git a/content/common/synthetic_delay_configuration.h b/content/common/synthetic_delay_configuration.h
new file mode 100644
index 0000000000000000000000000000000000000000..09bffe8224d68271e7c3dd3de9d8bb35bc8729e4
--- /dev/null
+++ b/content/common/synthetic_delay_configuration.h
@@ -0,0 +1,34 @@
+// Copyright 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_COMMON_SYNTHETIC_DELAY_CONFIGURATION_H_
+#define CONTENT_COMMON_SYNTHETIC_DELAY_CONFIGURATION_H_
+
+#include <string>
+
+#include "base/time/time.h"
+#include "content/common/content_export.h"
+
+namespace content {
+
+struct CONTENT_EXPORT SyntheticDelayConfiguration {
+ SyntheticDelayConfiguration();
+ ~SyntheticDelayConfiguration();
+
+ // Duplicated from base::debug::TraceEventSyntheticDelay since the same enum
+ // cannot be used in two different IPC message sets.
+ enum Mode {
+ STATIC,
+ ONE_SHOT,
+ ALTERNATING
+ };
+
+ std::string name;
+ base::TimeDelta target_duration;
+ Mode mode;
+};
+
+} // namespace content
+
+#endif // CONTENT_COMMON_SYNTHETIC_DELAY_CONFIGURATION_H_
« no previous file with comments | « content/browser/renderer_host/render_widget_host_impl.cc ('k') | content/common/synthetic_delay_configuration.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698