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

Unified Diff: content/renderer/render_widget.h

Issue 10868048: Report texture upload time in renderingStats. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add totalProcessingCommandsTime stat and fix nits Created 8 years, 4 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 faf4840b4ffc4f9175e6b9cacb559cb4f9156d13..584920285df23ef04cd6fa10f94bc90031305853 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;

Powered by Google App Engine
This is Rietveld 408576698