diff options
author | reveman@chromium.org <reveman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-02-18 22:21:50 +0000 |
---|---|---|
committer | reveman@chromium.org <reveman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-02-18 22:21:50 +0000 |
commit | 53a8078cd31e439cf67d2038ae85c151fa29831d (patch) | |
tree | ce69b0f6b37c9ccfc41ff4f7cdb55bf6d89fbf71 /gpu | |
parent | cb05d47fc6cb7fe27b1400ddd0962fe2ade1f0bf (diff) | |
download | chromium_src-53a8078cd31e439cf67d2038ae85c151fa29831d.zip chromium_src-53a8078cd31e439cf67d2038ae85c151fa29831d.tar.gz chromium_src-53a8078cd31e439cf67d2038ae85c151fa29831d.tar.bz2 |
gpu: Add missing MemoryBarrier.
This is unlikely a problem in practice but should be here to
ensure correctness.
BUG=173802
NOTRY=true
Review URL: https://chromiumcodereview.appspot.com/12296015
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@183144 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gpu')
-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; } }; |