summaryrefslogtreecommitdiffstats
path: root/gpu
diff options
context:
space:
mode:
authorapatrick@chromium.org <apatrick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-11 20:37:38 +0000
committerapatrick@chromium.org <apatrick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-11 20:37:38 +0000
commit827467f6dbf1b31ac76e68f76765bdf8549a08fe (patch)
tree80c55fe464367a3b1ef1d78c10dcebe10c5dd008 /gpu
parent837b2bc013088a294fb3d2777b2dd1a2625e2178 (diff)
downloadchromium_src-827467f6dbf1b31ac76e68f76765bdf8549a08fe.zip
chromium_src-827467f6dbf1b31ac76e68f76765bdf8549a08fe.tar.gz
chromium_src-827467f6dbf1b31ac76e68f76765bdf8549a08fe.tar.bz2
Changed CHECK to DCHECK in cmd_buffer_helper.cc.
Profiling revealed that this was a performance hotspot in chrome.dll when running WebGL content on windows. TEST=try BUG=none Review URL: http://codereview.chromium.org/7015002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85036 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gpu')
-rw-r--r--gpu/command_buffer/client/cmd_buffer_helper.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gpu/command_buffer/client/cmd_buffer_helper.cc b/gpu/command_buffer/client/cmd_buffer_helper.cc
index f31afa3..655dc63 100644
--- a/gpu/command_buffer/client/cmd_buffer_helper.cc
+++ b/gpu/command_buffer/client/cmd_buffer_helper.cc
@@ -123,7 +123,7 @@ void CommandBufferHelper::YieldScheduler() {
// function will return early if an error occurs, in which case the available
// space may not be available.
void CommandBufferHelper::WaitForAvailableEntries(int32 count) {
- GPU_CHECK(count < usable_entry_count_);
+ GPU_DCHECK(count < usable_entry_count_);
if (put_ + count > usable_entry_count_) {
// There's not enough room between the current put and the end of the
// buffer, so we need to wrap. We will add a jump back to the start, but we