summaryrefslogtreecommitdiffstats
path: root/content/gpu
diff options
context:
space:
mode:
authornduca@chromium.org <nduca@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-15 22:25:08 +0000
committernduca@chromium.org <nduca@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-15 22:25:08 +0000
commit71e2f0a1ba62594c2cb555dd291810aaa7775779 (patch)
treeb394d5ff5ae951dd6894a767b1a45edc8624c707 /content/gpu
parenta8f102a29e65551638d4513a306e384d6ce829b6 (diff)
downloadchromium_src-71e2f0a1ba62594c2cb555dd291810aaa7775779.zip
chromium_src-71e2f0a1ba62594c2cb555dd291810aaa7775779.tar.gz
chromium_src-71e2f0a1ba62594c2cb555dd291810aaa7775779.tar.bz2
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
Diffstat (limited to 'content/gpu')
-rw-r--r--content/gpu/gpu_command_buffer_stub.cc2
1 files changed, 2 insertions, 0 deletions
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_));
}