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

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: Revert to surface_id instead of route_id. Created 8 years, 3 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
« no previous file with comments | « content/renderer/gpu/gpu_benchmarking_extension.cc ('k') | content/renderer/render_widget.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « content/renderer/gpu/gpu_benchmarking_extension.cc ('k') | content/renderer/render_widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698