Sanitizing source files in Housekeeper-Nightly
authorskia.committer@gmail.com <skia.committer@gmail.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Sat, 4 Jan 2014 07:01:40 +0000 (07:01 +0000)
committerskia.committer@gmail.com <skia.committer@gmail.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Sat, 4 Jan 2014 07:01:40 +0000 (07:01 +0000)
git-svn-id: http://skia.googlecode.com/svn/trunk@12901 2bbb7eff-a529-9590-31e7-b0007b416f81

include/core/SkPixelRef.h
src/core/SkBitmapDevice.cpp
src/core/SkMallocPixelRef.cpp
src/core/SkPixelRef.cpp
src/lazy/SkCachingPixelRef.cpp
src/lazy/SkDiscardablePixelRef.cpp

index a332b76..4811435 100644 (file)
@@ -77,14 +77,14 @@ public:
         void*           fPixels;
         SkColorTable*   fColorTable;
         size_t          fRowBytes;
-        
+
         void zero() { sk_bzero(this, sizeof(*this)); }
 
         bool isZero() const {
             return NULL == fPixels && NULL == fColorTable && 0 == fRowBytes;
         }
     };
-    
+
     /**
      *  Returns true if the lockcount > 0
      */
index 368c807..0570fd9 100644 (file)
@@ -27,7 +27,7 @@ SkBitmapDevice::SkBitmapDevice(const SkBitmap& bitmap, const SkDeviceProperties&
 void SkBitmapDevice::init(SkBitmap::Config config, int width, int height, bool isOpaque) {
     fBitmap.setConfig(config, width, height, 0, isOpaque ?
                       kOpaque_SkAlphaType : kPremul_SkAlphaType);
-    
+
     if (SkBitmap::kNo_Config != config) {
         if (!fBitmap.allocPixels()) {
             // indicate failure by zeroing our bitmap
index c86d33b..53042d2 100644 (file)
@@ -174,7 +174,7 @@ SkMallocPixelRef::SkMallocPixelRef(const SkImageInfo& info, void* storage,
     fCTable = ctable;
     fRB = rowBytes;
     SkSafeRef(ctable);
-    
+
     this->setPreLocked(fStorage, fRB, fCTable);
 }
 
index 7ec5929..422d503 100644 (file)
@@ -167,10 +167,10 @@ void SkPixelRef::flatten(SkFlattenableWriteBuffer& buffer) const {
 
 bool SkPixelRef::lockPixels(LockRec* rec) {
     SkASSERT(!fPreLocked || SKPIXELREF_PRELOCKED_LOCKCOUNT == fLockCount);
-    
+
     if (!fPreLocked) {
         SkAutoMutexAcquire  ac(*fMutex);
-        
+
         if (1 == ++fLockCount) {
             SkASSERT(fRec.isZero());
 
index 033a6b5..f1510fb 100644 (file)
@@ -44,7 +44,7 @@ bool SkCachingPixelRef::onNewLockPixels(LockRec* rec) {
     if (fErrorInDecoding) {
         return false;  // don't try again.
     }
-    
+
     const SkImageInfo& info = this->info();
     SkBitmap bitmap;
     SkASSERT(NULL == fScaledCacheId);
@@ -75,7 +75,7 @@ bool SkCachingPixelRef::onNewLockPixels(LockRec* rec) {
     SkAutoLockPixels autoLockPixels(bitmap);
     void* pixels = bitmap.getPixels();
     SkASSERT(pixels != NULL);
-    
+
     // At this point, the autoLockPixels will unlockPixels()
     // to remove bitmap's lock on the pixels.  We will then
     // destroy bitmap.  The *only* guarantee that this pointer
index 3f960d3..abd80f2 100644 (file)
@@ -47,7 +47,7 @@ bool SkDiscardablePixelRef::onNewLockPixels(LockRec* rec) {
         SkDELETE(fDiscardableMemory);
         fDiscardableMemory = NULL;
     }
-    
+
     const size_t size = this->info().getSafeSize(fRowBytes);
 
     if (fDMFactory != NULL) {