summaryrefslogtreecommitdiffstats
path: root/ppapi/proxy
diff options
context:
space:
mode:
authorscheib@chromium.org <scheib@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-10 02:23:58 +0000
committerscheib@chromium.org <scheib@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-10 02:23:58 +0000
commit366ae2448ddfcd11eb827205aa56c8c0c00442bb (patch)
treee86ee956eabead718e6f0fdf0e2f64bd6292688f /ppapi/proxy
parentdc2bfb7bfa996045733f6afc849a4923589a53b7 (diff)
downloadchromium_src-366ae2448ddfcd11eb827205aa56c8c0c00442bb.zip
chromium_src-366ae2448ddfcd11eb827205aa56c8c0c00442bb.tar.gz
chromium_src-366ae2448ddfcd11eb827205aa56c8c0c00442bb.tar.bz2
Merge gpu_trace_event back into base/debug/trace_event.
Initial land attempt at http://codereview.chromium.org/6551019/ gpu_trace_event fork at http://codereview.chromium.org/6691013 - gpu_trace_event renamed to base/debug/trace_event and modified as appropriate for base::debug - Unit Tests implemented for trace_event - gpu_common library removed (was added only for gpu_trace_event) - Existing calls to trace_event suffixed with _ETW to make ETW calls (see decisions and incremental plans at end of 6551019) - GPU trace calls renamed to new calls. - Tracing switch removed from test_shell, as linux log file support removed. BUG=79509 TEST=trace_event_win_unittest and about:gpu Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=84284 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=84486 Review URL: http://codereview.chromium.org/6862002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84739 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/proxy')
-rw-r--r--ppapi/proxy/host_dispatcher.cc14
-rw-r--r--ppapi/proxy/plugin_dispatcher.cc14
2 files changed, 14 insertions, 14 deletions
diff --git a/ppapi/proxy/host_dispatcher.cc b/ppapi/proxy/host_dispatcher.cc
index 00c1c26..ebcfb12 100644
--- a/ppapi/proxy/host_dispatcher.cc
+++ b/ppapi/proxy/host_dispatcher.cc
@@ -6,8 +6,8 @@
#include <map>
+#include "base/debug/trace_event.h"
#include "base/logging.h"
-#include "gpu/common/gpu_trace_event.h"
#include "ppapi/c/private/ppb_proxy_private.h"
#include "ppapi/c/dev/ppb_var_deprecated.h"
#include "ppapi/proxy/host_var_serialization_rules.h"
@@ -130,9 +130,9 @@ bool HostDispatcher::IsPlugin() const {
}
bool HostDispatcher::Send(IPC::Message* msg) {
- GPU_TRACE_EVENT2("ppapi proxy", "HostDispatcher::Send",
- "Class", IPC_MESSAGE_ID_CLASS(msg->type()),
- "Line", IPC_MESSAGE_ID_LINE(msg->type()));
+ TRACE_EVENT2("ppapi proxy", "HostDispatcher::Send",
+ "Class", IPC_MESSAGE_ID_CLASS(msg->type()),
+ "Line", IPC_MESSAGE_ID_LINE(msg->type()));
// Normal sync messages are set to unblock, which would normally cause the
// plugin to be reentered to process them. We only want to do this when we
// know the plugin is in a state to accept reentrancy. Since the plugin side
@@ -144,9 +144,9 @@ bool HostDispatcher::Send(IPC::Message* msg) {
}
bool HostDispatcher::OnMessageReceived(const IPC::Message& msg) {
- GPU_TRACE_EVENT2("ppapi proxy", "HostDispatcher::OnMessageReceived",
- "Class", IPC_MESSAGE_ID_CLASS(msg.type()),
- "Line", IPC_MESSAGE_ID_LINE(msg.type()));
+ TRACE_EVENT2("ppapi proxy", "HostDispatcher::OnMessageReceived",
+ "Class", IPC_MESSAGE_ID_CLASS(msg.type()),
+ "Line", IPC_MESSAGE_ID_LINE(msg.type()));
// We only want to allow reentrancy when the most recent message from the
// plugin was a scripting message. We save the old state of the flag on the
// stack in case we're (we are the host) being reentered ourselves. The flag
diff --git a/ppapi/proxy/plugin_dispatcher.cc b/ppapi/proxy/plugin_dispatcher.cc
index e3bf9cd..e9a189a 100644
--- a/ppapi/proxy/plugin_dispatcher.cc
+++ b/ppapi/proxy/plugin_dispatcher.cc
@@ -10,7 +10,7 @@
#include "base/logging.h"
#include "ipc/ipc_message.h"
#include "ipc/ipc_sync_channel.h"
-#include "gpu/common/gpu_trace_event.h"
+#include "base/debug/trace_event.h"
#include "ppapi/c/pp_errors.h"
#include "ppapi/proxy/interface_proxy.h"
#include "ppapi/proxy/plugin_message_filter.h"
@@ -92,9 +92,9 @@ bool PluginDispatcher::IsPlugin() const {
}
bool PluginDispatcher::Send(IPC::Message* msg) {
- GPU_TRACE_EVENT2("ppapi proxy", "PluginDispatcher::Send",
- "Class", IPC_MESSAGE_ID_CLASS(msg->type()),
- "Line", IPC_MESSAGE_ID_LINE(msg->type()));
+ TRACE_EVENT2("ppapi proxy", "PluginDispatcher::Send",
+ "Class", IPC_MESSAGE_ID_CLASS(msg->type()),
+ "Line", IPC_MESSAGE_ID_LINE(msg->type()));
// We always want plugin->renderer messages to arrive in-order. If some sync
// and some async messages are send in response to a synchronous
// renderer->plugin call, the sync reply will be processed before the async
@@ -107,9 +107,9 @@ bool PluginDispatcher::Send(IPC::Message* msg) {
}
bool PluginDispatcher::OnMessageReceived(const IPC::Message& msg) {
- GPU_TRACE_EVENT2("ppapi proxy", "PluginDispatcher::OnMessageReceived",
- "Class", IPC_MESSAGE_ID_CLASS(msg.type()),
- "Line", IPC_MESSAGE_ID_LINE(msg.type()));
+ TRACE_EVENT2("ppapi proxy", "PluginDispatcher::OnMessageReceived",
+ "Class", IPC_MESSAGE_ID_CLASS(msg.type()),
+ "Line", IPC_MESSAGE_ID_LINE(msg.type()));
// Handle common control messages.
if (Dispatcher::OnMessageReceived(msg))
return true;