summaryrefslogtreecommitdiffstats
path: root/content/common
diff options
context:
space:
mode:
Diffstat (limited to 'content/common')
-rw-r--r--content/common/gpu/client/command_buffer_proxy_impl.cc1
-rw-r--r--content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc2
2 files changed, 3 insertions, 0 deletions
diff --git a/content/common/gpu/client/command_buffer_proxy_impl.cc b/content/common/gpu/client/command_buffer_proxy_impl.cc
index 59153d6..e2bd974 100644
--- a/content/common/gpu/client/command_buffer_proxy_impl.cc
+++ b/content/common/gpu/client/command_buffer_proxy_impl.cc
@@ -128,6 +128,7 @@ void CommandBufferProxyImpl::SetChannelErrorCallback(
}
bool CommandBufferProxyImpl::Initialize() {
+ TRACE_EVENT0("gpu", "CommandBufferProxyImpl::Initialize");
shared_state_shm_.reset(channel_->factory()->AllocateSharedMemory(
sizeof(*shared_state())).release());
if (!shared_state_shm_)
diff --git a/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc b/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc
index 4ac84e9..1708af2 100644
--- a/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc
+++ b/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc
@@ -181,6 +181,7 @@ bool WebGraphicsContext3DCommandBufferImpl::MaybeInitializeGL() {
};
GLint pvalues[pcount] = { 0, 0, 0, 0 };
+ TRACE_EVENT0("gpu", "WebGfxCtx3DCmdBfrImpl initializing actual attributes");
gl_->GetMultipleIntegervCHROMIUM(pnames, pcount,
pvalues, sizeof(pvalues));
@@ -257,6 +258,7 @@ bool WebGraphicsContext3DCommandBufferImpl::InitializeCommandBuffer(
}
bool WebGraphicsContext3DCommandBufferImpl::CreateContext(bool onscreen) {
+ TRACE_EVENT0("gpu", "WebGfxCtx3DCmdBfrImpl::CreateContext");
// Ensure the gles2 library is initialized first in a thread safe way.
g_gles2_initializer.Get();