diff options
author | gman@chromium.org <gman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-02 21:17:54 +0000 |
---|---|---|
committer | gman@chromium.org <gman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-02 21:17:54 +0000 |
commit | 63a1b7492a9018233baa12ba998a119f401f9c72 (patch) | |
tree | 694829095bb0a750a8962993c0b913bcf13dacef /gpu/command_buffer/client | |
parent | e4008cc77aa3e702a8c8feed7cb0c047e86e7701 (diff) | |
download | chromium_src-63a1b7492a9018233baa12ba998a119f401f9c72.zip chromium_src-63a1b7492a9018233baa12ba998a119f401f9c72.tar.gz chromium_src-63a1b7492a9018233baa12ba998a119f401f9c72.tar.bz2 |
Fix GLES2Implementation logging of shared ids
TEST=none
BUG=none
R=jbates@chromium.org
Review URL: http://codereview.chromium.org/8759001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112782 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gpu/command_buffer/client')
-rw-r--r-- | gpu/command_buffer/client/gles2_implementation.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gpu/command_buffer/client/gles2_implementation.cc b/gpu/command_buffer/client/gles2_implementation.cc index 0b834b8..6f00feb 100644 --- a/gpu/command_buffer/client/gles2_implementation.cc +++ b/gpu/command_buffer/client/gles2_implementation.cc @@ -1098,14 +1098,9 @@ void GLES2Implementation::SwapBuffers() { void GLES2Implementation::GenSharedIdsCHROMIUM( GLuint namespace_id, GLuint id_offset, GLsizei n, GLuint* ids) { - GPU_CLIENT_LOG("[" << this << "] glGenSharedIdsCHROMIUMTextures(" + GPU_CLIENT_LOG("[" << this << "] glGenSharedIdsCHROMIUM(" << namespace_id << ", " << id_offset << ", " << n << ", " << static_cast<void*>(ids) << ")"); - GPU_CLIENT_LOG_CODE_BLOCK({ - for (GLsizei i = 0; i < n; ++i) { - GPU_CLIENT_LOG(" " << i << ": " << ids[i]); - } - }); TRACE_EVENT0("gpu", "GLES2::GenSharedIdsCHROMIUM"); AlignedRingBuffer* transfer_buffer = transfer_buffer_.GetBuffer(); GLsizei max_size = transfer_buffer->GetLargestFreeOrPendingSize(); @@ -1123,6 +1118,11 @@ void GLES2Implementation::GenSharedIdsCHROMIUM( n -= num; ids += num; } + GPU_CLIENT_LOG_CODE_BLOCK({ + for (GLsizei i = 0; i < n; ++i) { + GPU_CLIENT_LOG(" " << i << ": " << ids[i]); + } + }); } void GLES2Implementation::DeleteSharedIdsCHROMIUM( |