OLD | NEW |
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 #include "../client/atomicops.h" | 5 #include "gpu/command_buffer/client/atomicops.h" |
6 #include "../common/logging.h" | 6 #include "gpu/command_buffer/common/logging.h" |
7 | 7 |
8 #if !defined(__native_client__) | 8 #if !defined(__native_client__) |
9 #include "base/atomicops.h" | 9 #include "base/atomicops.h" |
10 #include "base/synchronization/lock.h" | 10 #include "base/synchronization/lock.h" |
11 #else | 11 #else |
12 #include <pthread.h> | 12 #include <pthread.h> |
13 #endif | 13 #endif |
14 | 14 |
15 namespace gpu { | 15 namespace gpu { |
16 | 16 |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 bool Lock::Try() { | 90 bool Lock::Try() { |
91 return lock_->Try(); | 91 return lock_->Try(); |
92 } | 92 } |
93 | 93 |
94 void Lock::AssertAcquired() const { | 94 void Lock::AssertAcquired() const { |
95 return lock_->AssertAcquired(); | 95 return lock_->AssertAcquired(); |
96 } | 96 } |
97 | 97 |
98 } // namespace gpu | 98 } // namespace gpu |
99 | 99 |
OLD | NEW |