command buffers: correctly handle Flush(num_entries)
CommandBufferService should not accept put == num_entries, the client must wraparound to 0 (CommandBufferHelper does). CommandParser wraps to 0 and never sets get_ == num_entries, so CommandParser::IsEmpty would never become true. A test should have caught that but unfortunately it confused buffer size and number of entries. This fixes it. BUG=None CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel Review-Url: https://codereview.chromium.org/2304813002 Cr-Commit-Position: refs/heads/master@{#417211}
Showing
Please register or sign in to comment