summaryrefslogtreecommitdiffstats
path: root/gpu/command_buffer/client
diff options
context:
space:
mode:
authoralokp@chromium.org <alokp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-21 15:38:52 +0000
committeralokp@chromium.org <alokp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-21 15:38:52 +0000
commit5587489cf4688fccbf21b8cbe7593b8ea6448b11 (patch)
tree72dd7febeb77daf7579318f20478d7cdba155fd1 /gpu/command_buffer/client
parent836b3b307a796d3a5d44f5b6b3ade30a6dbdb4e2 (diff)
downloadchromium_src-5587489cf4688fccbf21b8cbe7593b8ea6448b11.zip
chromium_src-5587489cf4688fccbf21b8cbe7593b8ea6448b11.tar.gz
chromium_src-5587489cf4688fccbf21b8cbe7593b8ea6448b11.tar.bz2
Added facility to stub log and check. It is still not ideal but workable.
Review URL: http://codereview.chromium.org/1697002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@45192 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gpu/command_buffer/client')
-rw-r--r--gpu/command_buffer/client/cmd_buffer_helper.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/gpu/command_buffer/client/cmd_buffer_helper.cc b/gpu/command_buffer/client/cmd_buffer_helper.cc
index 994c838..4f9d725 100644
--- a/gpu/command_buffer/client/cmd_buffer_helper.cc
+++ b/gpu/command_buffer/client/cmd_buffer_helper.cc
@@ -83,7 +83,7 @@ void CommandBufferHelper::WaitForToken(int32 token) {
Flush();
while (last_token_read_ < token) {
if (get_ == put_) {
- GPU_LOG(FATAL) << "Empty command buffer while waiting on a token.";
+ LOG(FATAL) << "Empty command buffer while waiting on a token.";
return;
}
// Do not loop forever if the flush fails, meaning the command buffer reader
@@ -99,7 +99,7 @@ void CommandBufferHelper::WaitForToken(int32 token) {
// The 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 < entry_count_);
+ CHECK(count < entry_count_);
if (put_ + count > 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 noops all the way to the end,