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

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

Issue 2304813002: command buffers: correctly handle Flush(num_entries) (Closed)
Patch Set: Created 4 years, 3 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/service/command_buffer_service_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/command_buffer_service.cc
diff --git a/gpu/command_buffer/service/command_buffer_service.cc b/gpu/command_buffer/service/command_buffer_service.cc
index e91a386bd5f479b2e64ad70ba312711230b24e0d..ec9facb23331dd123e3ee2b831af4ed4e288293d 100644
--- a/gpu/command_buffer/service/command_buffer_service.cc
+++ b/gpu/command_buffer/service/command_buffer_service.cc
@@ -87,7 +87,7 @@ void CommandBufferService::WaitForGetOffsetInRange(int32_t start, int32_t end) {
}
void CommandBufferService::Flush(int32_t put_offset) {
- if (put_offset < 0 || put_offset > num_entries_) {
+ if (put_offset < 0 || put_offset >= num_entries_) {
error_ = gpu::error::kOutOfBounds;
return;
}
« no previous file with comments | « no previous file | gpu/command_buffer/service/command_buffer_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698