Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(433)

Unified Diff: gpu/command_buffer/client/cmd_buffer_helper.cc

Issue 1697002: Added facility to stub log and check. It is still not ideal but workable. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | gpu/command_buffer/common/logging.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/client/cmd_buffer_helper.cc
===================================================================
--- gpu/command_buffer/client/cmd_buffer_helper.cc (revision 45037)
+++ gpu/command_buffer/client/cmd_buffer_helper.cc (working copy)
@@ -83,7 +83,7 @@
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 @@
// 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,
« no previous file with comments | « no previous file | gpu/command_buffer/common/logging.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698