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

Unified Diff: skia/ext/SkThread_chrome.cc

Issue 6142009: Upating the app, ceee, chrome, ipc, media, and net directories to use the correct lock.h file. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Unified patch updating all references to the new base/synchronization/lock.h Created 9 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: skia/ext/SkThread_chrome.cc
diff --git a/skia/ext/SkThread_chrome.cc b/skia/ext/SkThread_chrome.cc
index 98375fa66ce54e6d52753b6d452bb2d92a473477..948cf1fc21b16a0e9a8330bd1aba563cb288651e 100644
--- a/skia/ext/SkThread_chrome.cc
+++ b/skia/ext/SkThread_chrome.cc
@@ -8,8 +8,8 @@
#include "base/atomicops.h"
#include "base/basictypes.h"
-#include "base/lock.h"
#include "base/logging.h"
+#include "base/synchronization/lock.h"
int32_t sk_atomic_inc(int32_t* addr) {
// sk_atomic_inc is expected to return the old value, Barrier_AtomicIncrement
@@ -24,22 +24,22 @@ int32_t sk_atomic_dec(int32_t* addr) {
}
SkMutex::SkMutex(bool isGlobal) : fIsGlobal(isGlobal) {
- COMPILE_ASSERT(sizeof(Lock) <= sizeof(fStorage), Lock_is_too_big_for_SkMutex);
- Lock* lock = reinterpret_cast<Lock*>(fStorage);
- new(lock) Lock();
+ COMPILE_ASSERT(sizeof(base::Lock) <= sizeof(fStorage), Lock_is_too_big_for_SkMutex);
+ base::Lock* lock = reinterpret_cast<base::Lock*>(fStorage);
+ new(lock) base::Lock();
}
SkMutex::~SkMutex() {
- Lock* lock = reinterpret_cast<Lock*>(fStorage);
+ base::Lock* lock = reinterpret_cast<base::Lock*>(fStorage);
lock->~Lock();
}
void SkMutex::acquire() {
- Lock* lock = reinterpret_cast<Lock*>(fStorage);
+ base::Lock* lock = reinterpret_cast<base::Lock*>(fStorage);
lock->Acquire();
}
void SkMutex::release() {
- Lock* lock = reinterpret_cast<Lock*>(fStorage);
+ base::Lock* lock = reinterpret_cast<base::Lock*>(fStorage);
lock->Release();
}
« no previous file with comments | « remoting/protocol/protocol_test_client.cc ('k') | third_party/cacheinvalidation/overrides/google/cacheinvalidation/mutex.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698