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

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

Issue 58913003: command_buffer: Remove hash_tables.h, simplify atomicops.h (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 1 month 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 | « no previous file | gpu/command_buffer/client/atomicops.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef GPU_COMMAND_BUFFER_CLIENT_ATOMICOPS_H_ 5 #ifndef GPU_COMMAND_BUFFER_CLIENT_ATOMICOPS_H_
6 #define GPU_COMMAND_BUFFER_CLIENT_ATOMICOPS_H_ 6 #define GPU_COMMAND_BUFFER_CLIENT_ATOMICOPS_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "gpu/command_buffer/common/types.h" 9 #include "gpu/command_buffer/common/types.h"
10 #include "gpu/gpu_export.h" 10 #include "gpu/gpu_export.h"
11 11
12 namespace gpu { 12 namespace gpu {
13 13
14 GPU_EXPORT void MemoryBarrier();
15
16 class LockImpl; 14 class LockImpl;
17 class GPU_EXPORT Lock { 15 class GPU_EXPORT Lock {
18 public: 16 public:
19 Lock(); 17 Lock();
20 ~Lock(); 18 ~Lock();
21 void Acquire(); 19 void Acquire();
22 void Release(); 20 void Release();
23 bool Try(); 21 bool Try();
24 void AssertAcquired() const; 22 void AssertAcquired() const;
25 23
(...skipping 16 matching lines...) Expand all
42 } 40 }
43 41
44 private: 42 private:
45 Lock& lock_; 43 Lock& lock_;
46 DISALLOW_COPY_AND_ASSIGN(AutoLock); 44 DISALLOW_COPY_AND_ASSIGN(AutoLock);
47 }; 45 };
48 46
49 } // namespace gpu 47 } // namespace gpu
50 48
51 #endif // GPU_COMMAND_BUFFER_CLIENT_ATOMICOPS_H_ 49 #endif // GPU_COMMAND_BUFFER_CLIENT_ATOMICOPS_H_
OLDNEW
« no previous file with comments | « no previous file | gpu/command_buffer/client/atomicops.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698