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

Unified Diff: content/renderer/render_thread_impl.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
Index: content/renderer/render_thread_impl.cc
diff --git a/content/renderer/render_thread_impl.cc b/content/renderer/render_thread_impl.cc
index db5696ef5821bc8bd93f23e49ce82fc5ce00b008..2d22476c8ba3490e89af4f037471388413c3ed75 100644
--- a/content/renderer/render_thread_impl.cc
+++ b/content/renderer/render_thread_impl.cc
@@ -44,6 +44,7 @@
#include "content/public/common/content_constants.h"
#include "content/public/common/content_paths.h"
#include "content/public/common/content_switches.h"
+#include "content/public/common/gpu_rendering_stats.h"
#include "content/public/common/renderer_preferences.h"
#include "content/public/common/url_constants.h"
#include "content/public/renderer/content_renderer_client.h"
@@ -1080,3 +1081,9 @@ RenderThreadImpl::GetFileThreadMessageLoopProxy() {
}
return file_thread_->message_loop_proxy();
}
+
+void RenderThreadImpl::GetGpuRenderingStats(
+ content::GpuRenderingStats& stats) {
+ CHECK(gpu_channel_.get());
+ gpu_channel_->CollectRenderingStats(stats);
+}

Powered by Google App Engine
This is Rietveld 408576698