summaryrefslogtreecommitdiffstats
path: root/gpu
diff options
context:
space:
mode:
authorjamesr@chromium.org <jamesr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-05-29 23:15:14 +0000
committerjamesr@chromium.org <jamesr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-05-29 23:15:14 +0000
commit06630f837ae5f1829c8850146a18fae42ad35477 (patch)
tree76c89973727e6d5b524fb46bafc869e52e291581 /gpu
parentc4eae6b8bced71bab9703586cb2dad29143fb327 (diff)
downloadchromium_src-06630f837ae5f1829c8850146a18fae42ad35477.zip
chromium_src-06630f837ae5f1829c8850146a18fae42ad35477.tar.gz
chromium_src-06630f837ae5f1829c8850146a18fae42ad35477.tar.bz2
Add tracing for places that make sync GL calls in compositor init
We make several synchronous GL calls during compositor initialization, some of which appear unnecessary. This adds some more tracing to make these calls easier to understand. R=jbauman Review URL: https://codereview.chromium.org/304513005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@273649 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gpu')
-rw-r--r--gpu/command_buffer/client/gles2_implementation.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/gpu/command_buffer/client/gles2_implementation.cc b/gpu/command_buffer/client/gles2_implementation.cc
index 53bd25f..8f2d3f0 100644
--- a/gpu/command_buffer/client/gles2_implementation.cc
+++ b/gpu/command_buffer/client/gles2_implementation.cc
@@ -144,6 +144,7 @@ bool GLES2Implementation::Initialize(
unsigned int min_transfer_buffer_size,
unsigned int max_transfer_buffer_size,
unsigned int mapped_memory_limit) {
+ TRACE_EVENT0("gpu", "GLES2Implementation::Initialize");
DCHECK_GE(starting_transfer_buffer_size, min_transfer_buffer_size);
DCHECK_LE(starting_transfer_buffer_size, max_transfer_buffer_size);
DCHECK_GE(min_transfer_buffer_size, kStartingOffset);
@@ -215,6 +216,7 @@ bool GLES2Implementation::Initialize(
}
bool GLES2Implementation::QueryAndCacheStaticState() {
+ TRACE_EVENT0("gpu", "GLES2Implementation::QueryAndCacheStaticState");
// Setup query for multiple GetIntegerv's
static const GLenum pnames[] = {
GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS,
@@ -375,6 +377,8 @@ void GLES2Implementation::SignalQuery(uint32 query,
}
void GLES2Implementation::SetSurfaceVisible(bool visible) {
+ TRACE_EVENT1(
+ "gpu", "GLES2Implementation::SetSurfaceVisible", "visible", visible);
// TODO(piman): This probably should be ShallowFlushCHROMIUM().
Flush();
gpu_control_->SetSurfaceVisible(visible);