Index: content/renderer/renderer_gl_context.cc |
=================================================================== |
--- content/renderer/renderer_gl_context.cc (revision 84493) |
+++ content/renderer/renderer_gl_context.cc (working copy) |
@@ -4,7 +4,6 @@ |
#include "content/renderer/renderer_gl_context.h" |
-#include "base/debug/trace_event.h" |
#include "base/lazy_instance.h" |
#include "base/memory/ref_counted.h" |
#include "base/memory/scoped_ptr.h" |
@@ -28,6 +27,7 @@ |
#include "gpu/command_buffer/client/gles2_implementation.h" |
#include "gpu/command_buffer/client/gles2_lib.h" |
#include "gpu/command_buffer/common/constants.h" |
+#include "gpu/common/gpu_trace_event.h" |
#include "gpu/GLES2/gles2_command_buffer.h" |
#endif // ENABLE_GPU |
@@ -293,7 +293,7 @@ |
} |
bool RendererGLContext::SwapBuffers() { |
- TRACE_EVENT0("gpu", "RendererGLContext::SwapBuffers"); |
+ GPU_TRACE_EVENT0("gpu", "RendererGLContext::SwapBuffers"); |
// Don't request latest error status from service. Just use the locally cached |
// information from the last flush. |
if (command_buffer_->GetLastState().error != gpu::error::kNoError) |
@@ -376,7 +376,7 @@ |
const int32* attrib_list, |
const GURL& active_url) { |
DCHECK(size.width() >= 0 && size.height() >= 0); |
- TRACE_EVENT2("gpu", "RendererGLContext::Initialize", |
+ GPU_TRACE_EVENT2("gpu", "RendererGLContext::Initialize", |
"on_screen", onscreen, "num_pixels", size.GetArea()); |
if (channel_->state() != GpuChannelHost::kConnected) |