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

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: 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
« 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 646aafd37cbbcfea58fdbad92be4b1b865c94535..f652708efff42d14926198acfaadac7ba96e3f7a 100644
--- a/content/renderer/render_widget.cc
+++ b/content/renderer/render_widget.cc
@@ -17,6 +17,7 @@
#include "content/common/swapped_out_messages.h"
#include "content/common/view_messages.h"
#include "content/public/common/content_switches.h"
+#include "content/public/common/gpu_rendering_stats.h"
#include "content/renderer/render_process.h"
#include "content/renderer/render_thread_impl.h"
#include "content/renderer/renderer_webkitplatformsupport_impl.h"
@@ -1824,6 +1825,11 @@ void RenderWidget::GetRenderingStats(WebKit::WebRenderingStats& stats) const {
stats.totalPaintTimeInSeconds += software_stats_.totalPaintTimeInSeconds;
}
+void RenderWidget::GetGpuRenderingStats(
+ content::GpuRenderingStats& stats) const {
+ RenderThreadImpl::current()->GetGpuRenderingStats(stats);
nduca 2012/08/23 18:51:27 Any reason to not do RenderThreadIMpl::current()->
+}
+
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