diff options
Diffstat (limited to 'gpu/command_buffer/service/query_manager.cc')
-rw-r--r-- | gpu/command_buffer/service/query_manager.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gpu/command_buffer/service/query_manager.cc b/gpu/command_buffer/service/query_manager.cc index 3b7e8c0..5726e34 100644 --- a/gpu/command_buffer/service/query_manager.cc +++ b/gpu/command_buffer/service/query_manager.cc @@ -189,7 +189,9 @@ class AsyncPixelTransfersCompletedQuery mem_params.shm_data_offset; QuerySync* sync = static_cast<QuerySync*>(data); - // No need for a MemoryBarrier here as sync->result is not written. + // Need a MemoryBarrier here to ensure that upload completed before + // submit_count was written to sync->process_count. + base::subtle::MemoryBarrier(); sync->process_count = submit_count; } }; |