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

Unified Diff: content/renderer/renderer_gl_context.cc

Issue 6877101: Replaced std::string argument storage in gpu_trace_event with faster TraceAnyType (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: scheib feedback Created 9 years, 8 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 | « no previous file | gpu/common/gpu_trace_event.h » ('j') | gpu/common/gpu_trace_event.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/renderer_gl_context.cc
diff --git a/content/renderer/renderer_gl_context.cc b/content/renderer/renderer_gl_context.cc
index 18e0c1d60b94b9c6170934c8f7ce1f466251f200..8d559c488fd2a006ea6fbba055a977f4a76bd22d 100644
--- a/content/renderer/renderer_gl_context.cc
+++ b/content/renderer/renderer_gl_context.cc
@@ -376,7 +376,8 @@ bool RendererGLContext::Initialize(bool onscreen,
const int32* attrib_list,
const GURL& active_url) {
DCHECK(size.width() >= 0 && size.height() >= 0);
- GPU_TRACE_EVENT0("gpu", "RendererGLContext::Initialize");
+ GPU_TRACE_EVENT2("gpu", "RendererGLContext::Initialize",
+ "on_screen", onscreen, "num_pixels", size.GetArea());
if (channel_->state() != GpuChannelHost::kConnected)
return false;
« no previous file with comments | « no previous file | gpu/common/gpu_trace_event.h » ('j') | gpu/common/gpu_trace_event.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698