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

Unified Diff: content/browser/renderer_host/render_widget_host_view_android.cc

Issue 1132283003: Merge Group Markers into Chromium Traces. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed extra c_str() call Created 5 years, 7 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/browser/renderer_host/render_widget_host_view_android.cc
diff --git a/content/browser/renderer_host/render_widget_host_view_android.cc b/content/browser/renderer_host/render_widget_host_view_android.cc
index dc4df92d7e2d28820ae34f3511e6bf558ea618e5..0274e5fd3576a970baa6ee4500036baa53462b2b 100644
--- a/content/browser/renderer_host/render_widget_host_view_android.cc
+++ b/content/browser/renderer_host/render_widget_host_view_android.cc
@@ -210,10 +210,11 @@ GLHelperHolder::CreateContext3D() {
url, gpu_channel_host.get(), attrs, lose_context_when_out_of_memory,
limits, nullptr));
if (context->InitializeOnCurrentThread()) {
- context->traceBeginCHROMIUM(
- "gpu_toplevel",
+ const std::string label =
base::StringPrintf("CmdBufferImageTransportFactory-%p",
- context.get()).c_str());
+ context.get());
+ context->pushGroupMarkerEXT(label.c_str());
+ context->traceBeginCHROMIUM("gpu_toplevel", label.c_str());
vmiura 2015/05/12 21:47:42 Same here.
} else {
context.reset();
}

Powered by Google App Engine
This is Rietveld 408576698