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

Unified Diff: gpu/command_buffer/service/cmd_parser.cc

Issue 2509001: Refactor CommandBufferHelper to use Jump to loop... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 7 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
Index: gpu/command_buffer/service/cmd_parser.cc
===================================================================
--- gpu/command_buffer/service/cmd_parser.cc (revision 48721)
+++ gpu/command_buffer/service/cmd_parser.cc (working copy)
@@ -58,7 +58,11 @@
if (result != error::kNoError) {
ReportError(header.command, result);
}
- get_ = (get + header.size) % entry_count_;
+
+ // If get was not set somewhere else advance it.
+ if (get == get_) {
+ get_ = (get + header.size) % entry_count_;
+ }
return result;
}

Powered by Google App Engine
This is Rietveld 408576698