From 71e2f0a1ba62594c2cb555dd291810aaa7775779 Mon Sep 17 00:00:00 2001 From: "nduca@chromium.org" Date: Tue, 15 Mar 2011 22:25:08 +0000 Subject: Introduce gpu_trace_event for gpu performance analysis. This changelist is a lightweight version of issue 6551019, but with the code change confined to the gpu subsystem. The intent of this change is to enable forward progress on gpu tracing. Work on the aformentioned issue, i.e. fusing gpu_trace_event and trace_event, will continue. BUG= TEST= Review URL: http://codereview.chromium.org/6691013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78300 0039d316-1c4b-4281-b951-d872f2087c98 --- content/gpu/gpu_command_buffer_stub.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'content/gpu') diff --git a/content/gpu/gpu_command_buffer_stub.cc b/content/gpu/gpu_command_buffer_stub.cc index c1e9b1e9..d838c9f 100644 --- a/content/gpu/gpu_command_buffer_stub.cc +++ b/content/gpu/gpu_command_buffer_stub.cc @@ -12,6 +12,7 @@ #include "content/gpu/gpu_channel.h" #include "content/gpu/gpu_command_buffer_stub.h" #include "content/gpu/gpu_thread.h" +#include "gpu/common/gpu_trace_event.h" using gpu::Buffer; @@ -351,6 +352,7 @@ void GpuCommandBufferStub::OnResizeOffscreenFrameBuffer(const gfx::Size& size) { } void GpuCommandBufferStub::OnSwapBuffers() { + GPU_TRACE_EVENT0("gpu", "GpuCommandBufferStub::OnSwapBuffers"); Send(new GpuCommandBufferMsg_SwapBuffers(route_id_)); } -- cgit v1.1