Index: content/renderer/render_widget.h |
diff --git a/content/renderer/render_widget.h b/content/renderer/render_widget.h |
index 063fb788b9ef22bc03e61f724e3eafa2221ef8a3..119c651aa5b56eecdd929641037a933de78b8770 100644 |
--- a/content/renderer/render_widget.h |
+++ b/content/renderer/render_widget.h |
@@ -48,6 +48,7 @@ class WebWidget; |
} |
namespace content { |
+struct GpuRenderingStats; |
class RenderWidgetTest; |
} |
@@ -161,6 +162,12 @@ class CONTENT_EXPORT RenderWidget |
// as it blocks on the compositor thread. |
void GetRenderingStats(WebKit::WebRenderingStats&) const; |
+ // Fills in a GpuRenderingStats struct containing information about |
+ // GPU rendering, e.g. count of texture uploads performed, time spent |
+ // uploading. |
+ // This call is relatively expensive as it blocks on the GPU process |
+ bool GetGpuRenderingStats(content::GpuRenderingStats*) const; |
+ |
// Callback for use with BeginSmoothScroll. |
typedef base::Callback<void()> SmoothScrollCompletionCallback; |