Index: ppapi/proxy/host_dispatcher.cc |
=================================================================== |
--- ppapi/proxy/host_dispatcher.cc (revision 84493) |
+++ ppapi/proxy/host_dispatcher.cc (working copy) |
@@ -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" |
@@ -129,9 +129,9 @@ |
} |
bool HostDispatcher::Send(IPC::Message* msg) { |
- TRACE_EVENT2("ppapi proxy", "HostDispatcher::Send", |
- "Class", IPC_MESSAGE_ID_CLASS(msg->type()), |
- "Line", IPC_MESSAGE_ID_LINE(msg->type())); |
+ GPU_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 |
@@ -143,9 +143,9 @@ |
} |
bool HostDispatcher::OnMessageReceived(const IPC::Message& msg) { |
- TRACE_EVENT2("ppapi proxy", "HostDispatcher::OnMessageReceived", |
- "Class", IPC_MESSAGE_ID_CLASS(msg.type()), |
- "Line", IPC_MESSAGE_ID_LINE(msg.type())); |
+ GPU_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 |