Index: content/renderer/render_widget.h |
diff --git a/content/renderer/render_widget.h b/content/renderer/render_widget.h |
index faf4840b4ffc4f9175e6b9cacb559cb4f9156d13..b3674df1b0d0a54a2a16355260a4909e23166f44 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 |
+ void GetGpuRenderingStats(content::GpuRenderingStats&) const; |
+ |
// Callback for use with BeginSmoothScroll. |
typedef base::Callback<void()> SmoothScrollCompletionCallback; |