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

Unified Diff: content/renderer/render_widget.h

Issue 10818038: Make GPU benchmarking numAnimationFrames and totalPaintTime work in software mode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Changes per nduca comments. Created 8 years, 5 months 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/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.

Powered by Google App Engine
This is Rietveld 408576698