Index: gpu/command_buffer/client/cmd_buffer_helper.cc |
=================================================================== |
--- gpu/command_buffer/client/cmd_buffer_helper.cc (revision 84291) |
+++ gpu/command_buffer/client/cmd_buffer_helper.cc (working copy) |
@@ -6,7 +6,7 @@ |
#include "../client/cmd_buffer_helper.h" |
#include "../common/command_buffer.h" |
-#include "../common/trace_event.h" |
+#include "gpu/common/gpu_trace_event.h" |
namespace gpu { |
@@ -62,7 +62,7 @@ |
// Calls Flush() and then waits until the buffer is empty. Break early if the |
// error is set. |
bool CommandBufferHelper::Finish() { |
- TRACE_EVENT0("gpu", "CommandBufferHelper::Finish"); |
+ GPU_TRACE_EVENT0("gpu", "CommandBufferHelper::Finish"); |
do { |
// Do not loop forever if the flush fails, meaning the command buffer reader |
// has shutdown. |
@@ -84,7 +84,7 @@ |
cmd::SetToken& cmd = GetCmdSpace<cmd::SetToken>(); |
cmd.Init(token_); |
if (token_ == 0) { |
- TRACE_EVENT0("gpu", "CommandBufferHelper::InsertToken(wrapped)"); |
+ GPU_TRACE_EVENT0("gpu", "CommandBufferHelper::InsertToken(wrapped)"); |
// we wrapped |
Finish(); |
GPU_DCHECK_EQ(token_, last_token_read_); |
@@ -95,7 +95,7 @@ |
// Waits until the current token value is greater or equal to the value passed |
// in argument. |
void CommandBufferHelper::WaitForToken(int32 token) { |
- TRACE_EVENT0("gpu", "CommandBufferHelper::WaitForToken"); |
+ GPU_TRACE_EVENT0("gpu", "CommandBufferHelper::WaitForToken"); |
// Return immediately if corresponding InsertToken failed. |
if (token < 0) |
return; |
@@ -131,7 +131,7 @@ |
// put will wrap to 0 after we add the jump). |
GPU_DCHECK_LE(1, put_); |
if (get_ > put_ || get_ == 0) { |
- TRACE_EVENT0("gpu", "CommandBufferHelper::WaitForAvailableEntries"); |
+ GPU_TRACE_EVENT0("gpu", "CommandBufferHelper::WaitForAvailableEntries"); |
while (get_ > put_ || get_ == 0) { |
// Do not loop forever if the flush fails, meaning the command buffer |
// reader has shutdown. |
@@ -144,7 +144,7 @@ |
put_ = 0; |
} |
if (AvailableEntries() < count) { |
- TRACE_EVENT0("gpu", "CommandBufferHelper::WaitForAvailableEntries1"); |
+ GPU_TRACE_EVENT0("gpu", "CommandBufferHelper::WaitForAvailableEntries1"); |
while (AvailableEntries() < count) { |
// Do not loop forever if the flush fails, meaning the command buffer |
// reader has shutdown. |