Index: src/core/SkBitmap.cpp |
diff --git a/src/core/SkBitmap.cpp b/src/core/SkBitmap.cpp |
index c2be7c7cfc2660e3f8e1be9ada51f199f5095e48..6a70c1e089288cf93c99623c88ab6d1dca5b9ecc 100644 |
--- a/src/core/SkBitmap.cpp |
+++ b/src/core/SkBitmap.cpp |
@@ -1677,16 +1677,12 @@ void SkBitmap::validate() const { |
SkASSERT(fPixelRef); |
SkASSERT(fPixelLockCount > 0); |
SkASSERT(fPixelRef->isLocked()); |
-#if !defined(SK_SUPPORT_LEGACY_ONLOCKPIXELS) |
SkASSERT(fPixelRef->rowBytes() == fRowBytes); |
-#endif |
SkASSERT(fPixelRefOrigin.fX >= 0); |
SkASSERT(fPixelRefOrigin.fY >= 0); |
SkASSERT(fPixelRef->info().fWidth >= (int)fWidth + fPixelRefOrigin.fX); |
SkASSERT(fPixelRef->info().fHeight >= (int)fHeight + fPixelRefOrigin.fY); |
-#if !defined(SK_SUPPORT_LEGACY_ONLOCKPIXELS) |
SkASSERT(fPixelRef->rowBytes() >= fWidth * fBytesPerPixel); |
-#endif |
} else { |
SkASSERT(NULL == fColorTable); |
} |