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

Unified Diff: content/renderer/render_widget.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
« no previous file with comments | « content/renderer/gpu/gpu_benchmarking_extension.cc ('k') | content/renderer/render_widget.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_widget.h
diff --git a/content/renderer/render_widget.h b/content/renderer/render_widget.h
index f355732ca8e65c01647208d2616c25ef18cf4234..2281ce962738eac89a349da96ef29cf90c71f474 100644
--- a/content/renderer/render_widget.h
+++ b/content/renderer/render_widget.h
@@ -10,6 +10,7 @@
#include "base/basictypes.h"
#include "base/compiler_specific.h"
+#include "base/debug/trace_event_synthetic_delay.h"
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
#include "base/time/time.h"
@@ -71,6 +72,7 @@ class RenderWidgetTest;
class ResizingModeSelector;
struct ContextMenuParams;
struct GpuRenderingStats;
+struct SyntheticDelayConfiguration;
struct WebPluginGeometry;
// RenderWidget provides a communication bridge between a WebWidget and
@@ -185,6 +187,13 @@ class CONTENT_EXPORT RenderWidget
scoped_ptr<SyntheticGestureParams> gesture_params,
const SyntheticGestureCompletionCallback& callback);
+ // Configure synthetic delays across all processes. Once all processes have
+ // acknowledged the new delay configuration, |callback| will be called back.
+ typedef base::Callback<void()> SyntheticDelayConfigurationCallback;
+ void ConfigureSyntheticDelays(
+ const std::vector<content::SyntheticDelayConfiguration>& delays,
+ const SyntheticDelayConfigurationCallback& callback);
+
// Close the underlying WebWidget.
virtual void Close();
@@ -345,6 +354,7 @@ class CONTENT_EXPORT RenderWidget
const gfx::Size& desired_size);
void OnRepaint(gfx::Size size_to_paint);
void OnSyntheticGestureCompleted();
+ void OnConfigureSyntheticDelaysAck();
void OnSetTextDirection(blink::WebTextDirection direction);
void OnGetFPS();
void OnUpdateScreenRects(const gfx::Rect& view_screen_rect,
@@ -747,6 +757,8 @@ class CONTENT_EXPORT RenderWidget
std::queue<SyntheticGestureCompletionCallback>
pending_synthetic_gesture_callbacks_;
+ SyntheticDelayConfigurationCallback pending_delay_configuration_;
+
// Specified whether the compositor will run in its own thread.
bool is_threaded_compositing_enabled_;
« no previous file with comments | « content/renderer/gpu/gpu_benchmarking_extension.cc ('k') | content/renderer/render_widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698