summaryrefslogtreecommitdiffstats
path: root/webkit/glue/webkitclient_impl.cc
diff options
context:
space:
mode:
authornduca@chromium.org <nduca@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-23 19:43:03 +0000
committernduca@chromium.org <nduca@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-23 19:43:03 +0000
commite2d497c3af21638a20c7334cb9c93f6afc19d035 (patch)
tree14866ddfc20b4a28503127319a1e3c540221ebb6 /webkit/glue/webkitclient_impl.cc
parentb3ceaad6dc228c357a746e710787c4c21a709668 (diff)
downloadchromium_src-e2d497c3af21638a20c7334cb9c93f6afc19d035.zip
chromium_src-e2d497c3af21638a20c7334cb9c93f6afc19d035.tar.gz
chromium_src-e2d497c3af21638a20c7334cb9c93f6afc19d035.tar.bz2
Make WebKitClient::traceEvent issue GPU_TRACE_EVENTs.
Review URL: http://codereview.chromium.org/6715009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79166 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/webkitclient_impl.cc')
-rw-r--r--webkit/glue/webkitclient_impl.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/webkit/glue/webkitclient_impl.cc b/webkit/glue/webkitclient_impl.cc
index 3a47de4..477339a 100644
--- a/webkit/glue/webkitclient_impl.cc
+++ b/webkit/glue/webkitclient_impl.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -25,6 +25,7 @@
#include "base/synchronization/lock.h"
#include "base/time.h"
#include "base/utf_string_conversions.h"
+#include "gpu/common/gpu_trace_event.h"
#include "grit/webkit_chromium_resources.h"
#include "grit/webkit_resources.h"
#include "grit/webkit_strings.h"
@@ -286,11 +287,15 @@ void WebKitClientImpl::histogramEnumeration(
void WebKitClientImpl::traceEventBegin(const char* name, void* id,
const char* extra) {
TRACE_EVENT_BEGIN(name, id, extra);
+ GPU_TRACE_EVENT_BEGIN2("webkit", name,
+ "id", StringPrintf("%p", id).c_str(),
+ "extra", extra ? extra : "");
}
void WebKitClientImpl::traceEventEnd(const char* name, void* id,
const char* extra) {
TRACE_EVENT_END(name, id, extra);
+ GPU_TRACE_EVENT_END0("webkit", name);
}
namespace {