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

Unified Diff: src/core/SkCachedData.cpp

Issue 1842753002: Style bikeshed - remove extraneous whitespace (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/core/SkBuffer.h ('k') | src/core/SkCanvas.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkCachedData.cpp
diff --git a/src/core/SkCachedData.cpp b/src/core/SkCachedData.cpp
index cfa4c6165f69a0e8df791f623ad3efcd457cd7d5..1ea232b2c563fe6ed406098137b7e4b063d267d1 100644
--- a/src/core/SkCachedData.cpp
+++ b/src/core/SkCachedData.cpp
@@ -98,7 +98,7 @@ void SkCachedData::inMutexRef(bool fromCache) {
if ((1 == fRefCnt) && fInCache) {
this->inMutexLock();
}
-
+
fRefCnt += 1;
if (fromCache) {
SkASSERT(!fInCache);
@@ -125,22 +125,22 @@ bool SkCachedData::inMutexUnref(bool fromCache) {
default:
break;
}
-
+
if (fromCache) {
SkASSERT(fInCache);
fInCache = false;
}
-
+
// return true when we need to be deleted
return 0 == fRefCnt;
}
void SkCachedData::inMutexLock() {
fMutex.assertHeld();
-
+
SkASSERT(!fIsLocked);
fIsLocked = true;
-
+
switch (fStorageType) {
case kMalloc_StorageType:
this->setData(fStorage.fMalloc);
@@ -159,10 +159,10 @@ void SkCachedData::inMutexLock() {
void SkCachedData::inMutexUnlock() {
fMutex.assertHeld();
-
+
SkASSERT(fIsLocked);
fIsLocked = false;
-
+
switch (fStorageType) {
case kMalloc_StorageType:
// nothing to do/check
« no previous file with comments | « src/core/SkBuffer.h ('k') | src/core/SkCanvas.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698