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

Unified Diff: content/common/gpu/client/gpu_channel_host.cc

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/common/gpu/client/gpu_channel_host.cc
diff --git a/content/common/gpu/client/gpu_channel_host.cc b/content/common/gpu/client/gpu_channel_host.cc
index b225a3ad11c110e2d8b3183d837edb291b425db7..ea3e87f9a62fffe52298faf0f8fbb2c2a004095e 100644
--- a/content/common/gpu/client/gpu_channel_host.cc
+++ b/content/common/gpu/client/gpu_channel_host.cc
@@ -214,6 +214,21 @@ void GpuChannelHost::DestroyCommandBuffer(
#endif
}
+bool GpuChannelHost::CollectRenderingStats(
+ int surface_id, content::GpuRenderingStats* stats) {
piman 2012/08/30 22:44:11 At a high level, why restricting here to "view" co
+ TRACE_EVENT0("gpu", "GpuChannelHost::CollectRenderingStats");
+
+ AutoLock lock(context_lock_);
+ // An error occurred. Need to get the host again to reinitialize it.
+ if (!channel_.get())
piman 2012/08/30 22:44:11 Why this? I think it's racy if called on a non-mai
+ return false;
+
+ if (!Send(new GpuChannelMsg_CollectRenderingStats(surface_id, stats)))
+ return false;
+
+ return true;
+}
+
void GpuChannelHost::AddRoute(
int route_id, base::WeakPtr<IPC::Listener> listener) {
DCHECK(MessageLoopProxy::current());

Powered by Google App Engine
This is Rietveld 408576698