Index: content/renderer/render_widget.h |
diff --git a/content/renderer/render_widget.h b/content/renderer/render_widget.h |
index c8bea54ce74d9b3f23b3bd768410b6e54f5ad31b..390a94bd7aa17292171f4576261112e85f9ee00f 100644 |
--- a/content/renderer/render_widget.h |
+++ b/content/renderer/render_widget.h |
@@ -42,6 +42,7 @@ namespace WebKit { |
class WebMouseEvent; |
class WebTouchEvent; |
class WebWidget; |
+struct WebRenderingStats; |
} |
namespace content { |
@@ -152,6 +153,12 @@ class CONTENT_EXPORT RenderWidget |
// pending moves don't try to reference it. |
void CleanupWindowInPluginMoves(gfx::PluginWindowHandle window); |
+ // Fills in a WebRenderingStats struct containing information about |
+ // rendering, e.g. count of frames rendered, time spent painting. |
+ // This call is relatively expensive in accelerated threaded mode, |
+ // as it blocks on the compositor thread. |
+ void GetRenderingStats(WebKit::WebRenderingStats&) const; |
+ |
// Directs the host to begin a smooth scroll. This scroll should have the same |
// performance characteristics as a user-initiated scroll. |
void BeginSmoothScroll(bool scroll_down, bool scroll_far); |
@@ -542,6 +549,7 @@ class CONTENT_EXPORT RenderWidget |
bool has_disable_gpu_vsync_switch_; |
base::TimeTicks last_do_deferred_update_time_; |
+ int deferred_update_count_; |
// UpdateRect parameters for the current compositing pass. This is used to |
// pass state between DoDeferredUpdate and OnSwapBuffersPosted. |