| Index: content/common/gpu/gpu_command_buffer_stub.cc
|
| ===================================================================
|
| --- content/common/gpu/gpu_command_buffer_stub.cc (revision 84291)
|
| +++ content/common/gpu/gpu_command_buffer_stub.cc (working copy)
|
| @@ -5,7 +5,6 @@
|
| #if defined(ENABLE_GPU)
|
|
|
| #include "base/bind.h"
|
| -#include "base/debug/trace_event.h"
|
| #include "base/process_util.h"
|
| #include "base/shared_memory.h"
|
| #include "build/build_config.h"
|
| @@ -16,6 +15,7 @@
|
| #include "content/common/gpu/gpu_messages.h"
|
| #include "content/common/gpu/gpu_watchdog.h"
|
| #include "gpu/command_buffer/common/constants.h"
|
| +#include "gpu/common/gpu_trace_event.h"
|
| #include "ui/gfx/gl/gl_context.h"
|
| #include "ui/gfx/gl/gl_surface.h"
|
|
|
| @@ -184,7 +184,7 @@
|
| void GpuCommandBufferStub::OnFlush(int32 put_offset,
|
| int32 last_known_get,
|
| gpu::CommandBuffer::State* state) {
|
| - TRACE_EVENT0("gpu", "GpuCommandBufferStub::OnFlush");
|
| + GPU_TRACE_EVENT0("gpu", "GpuCommandBufferStub::OnFlush");
|
| *state = command_buffer_->FlushSync(put_offset, last_known_get);
|
| if (state->error == gpu::error::kLostContext &&
|
| gfx::GLContext::LosesAllContextsOnContextLost())
|
| @@ -192,7 +192,7 @@
|
| }
|
|
|
| void GpuCommandBufferStub::OnAsyncFlush(int32 put_offset) {
|
| - TRACE_EVENT0("gpu", "GpuCommandBufferStub::OnAsyncFlush");
|
| + GPU_TRACE_EVENT0("gpu", "GpuCommandBufferStub::OnAsyncFlush");
|
| command_buffer_->Flush(put_offset);
|
| // TODO(piman): Do this everytime the scheduler finishes processing a batch of
|
| // commands.
|
| @@ -257,7 +257,7 @@
|
| }
|
|
|
| void GpuCommandBufferStub::OnSwapBuffers() {
|
| - TRACE_EVENT0("gpu", "GpuCommandBufferStub::OnSwapBuffers");
|
| + GPU_TRACE_EVENT0("gpu", "GpuCommandBufferStub::OnSwapBuffers");
|
| Send(new GpuCommandBufferMsg_SwapBuffers(route_id_));
|
| }
|
|
|
|
|