summaryrefslogtreecommitdiffstats
path: root/content/common/gpu/gpu_command_buffer_stub.cc
diff options
context:
space:
mode:
Diffstat (limited to 'content/common/gpu/gpu_command_buffer_stub.cc')
-rw-r--r--content/common/gpu/gpu_command_buffer_stub.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/content/common/gpu/gpu_command_buffer_stub.cc b/content/common/gpu/gpu_command_buffer_stub.cc
index 42e086d..b767b24 100644
--- a/content/common/gpu/gpu_command_buffer_stub.cc
+++ b/content/common/gpu/gpu_command_buffer_stub.cc
@@ -306,6 +306,7 @@ void GpuCommandBufferStub::OnAsyncGetState() {
void GpuCommandBufferStub::OnFlush(int32 put_offset,
gpu::CommandBuffer::State* state) {
+ GPU_TRACE_EVENT0("gpu", "GpuCommandBufferStub::OnFlush");
*state = command_buffer_->FlushSync(put_offset);
if (state->error == gpu::error::kLostContext &&
gfx::GLContext::LosesAllContextsOnContextLost())
@@ -313,6 +314,7 @@ void GpuCommandBufferStub::OnFlush(int32 put_offset,
}
void GpuCommandBufferStub::OnAsyncFlush(int32 put_offset) {
+ GPU_TRACE_EVENT0("gpu", "GpuCommandBufferStub::OnAsyncFlush");
gpu::CommandBuffer::State state = command_buffer_->FlushSync(put_offset);
if (state.error == gpu::error::kLostContext &&
gfx::GLContext::LosesAllContextsOnContextLost())