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

Side by Side Diff: gpu/command_buffer/client/atomicops.cc

Issue 9836098: Move gpu hash_tables and atomicops stuff (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add hash tables to gyp Created 8 years, 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « gpu/command_buffer/client/atomicops.h ('k') | gpu/command_buffer/client/hash_tables.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "../client/atomicops.h"
6
7 #if !defined(__native_client__)
8 #include "base/atomicops.h"
9 #endif
10
11 namespace gpu {
12
13 void MemoryBarrier() {
14 #if defined(__native_client__)
15 __sync_synchronize();
16 #else
17 base::subtle::MemoryBarrier();
18 #endif
19 }
20
21 } // namespace gpu
22
OLDNEW
« no previous file with comments | « gpu/command_buffer/client/atomicops.h ('k') | gpu/command_buffer/client/hash_tables.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698