• piman's avatar
    command buffers: correctly handle Flush(num_entries) · 792420d5
    piman authored
    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}
    792420d5
command_buffer_service.cc 5.99 KB