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

Unified Diff: content/renderer/render_widget.cc

Issue 10868048: Report texture upload time in renderingStats. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use route_id instead of surface_id. Get rid of channel check and autolock. Check that GetGpuChannel… 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/render_widget.h ('k') | gpu/command_buffer/service/gles2_cmd_decoder.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_widget.cc
diff --git a/content/renderer/render_widget.cc b/content/renderer/render_widget.cc
index 4bd1a63e8f570ebda22c8f491230b7ce0bf6cb36..43aa9f5fb09f2dfd1676d2b0f05bc29404cad154 100644
--- a/content/renderer/render_widget.cc
+++ b/content/renderer/render_widget.cc
@@ -1830,6 +1830,15 @@ void RenderWidget::GetRenderingStats(WebKit::WebRenderingStats& stats) const {
stats.totalPaintTimeInSeconds += software_stats_.totalPaintTimeInSeconds;
}
+bool RenderWidget::GetGpuRenderingStats(
+ content::GpuRenderingStats* stats) const {
+ GpuChannelHost* gpu_channel = RenderThreadImpl::current()->GetGpuChannel();
+ if (!gpu_channel)
+ return false;
+
+ return gpu_channel->CollectRenderingStats(routing_id(), stats);
piman 2012/09/04 22:05:25 oh, mmh, this routing_id() is the routing id of th
+}
+
void RenderWidget::BeginSmoothScroll(
bool down,
bool scroll_far,
« no previous file with comments | « content/renderer/render_widget.h ('k') | gpu/command_buffer/service/gles2_cmd_decoder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698