Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(729)

Unified Diff: content/common/gpu/gpu_command_buffer_stub.cc

Issue 6933035: Revert 84284 - Merge gpu_trace_event back into base/debug/trace_event.Initial land attempt at htt... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/common/child_trace_message_filter.cc ('k') | content/renderer/command_buffer_proxy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_));
}
« no previous file with comments | « content/common/child_trace_message_filter.cc ('k') | content/renderer/command_buffer_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698