Remove release asserts.
authorcblume <cblume@chromium.org>
Mon, 19 Sep 2016 13:18:03 +0000 (06:18 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 19 Sep 2016 13:18:03 +0000 (06:18 -0700)
A handful of changes were added to investigate a bug occurring rarely.
The bug has been found and those changes can be reverted.

BUG=643845
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2347423002

Review-Url: https://codereview.chromium.org/2347423002

src/image/SkImage_Gpu.cpp

index 7eb728f..55fb47a 100644 (file)
@@ -625,11 +625,11 @@ size_t SkImage::getDeferredTextureImageData(const GrContextThreadSafeProxy& prox
             mipmaps->getLevel(generatedMipLevelIndex, &mipLevel);
 
             // Make sure the mipmap data is after the start of the buffer
-            SkASSERT_RELEASE(mipLevelPtr > bufferAsInt);
+            SkASSERT(mipLevelPtr > bufferAsInt);
             // Make sure the mipmap data starts before the end of the buffer
-            SkASSERT_RELEASE(static_cast<size_t>(mipLevelPtr) < bufferAsInt + pixelOffset + pixelSize);
+            SkASSERT(static_cast<size_t>(mipLevelPtr) < bufferAsInt + pixelOffset + pixelSize);
             // Make sure the mipmap data ends before the end of the buffer
-            SkASSERT_RELEASE(mipLevelPtr + mipLevel.fPixmap.getSafeSize() <=
+            SkASSERT(mipLevelPtr + mipLevel.fPixmap.getSafeSize() <=
                      bufferAsInt + pixelOffset + pixelSize);
 
             // getSafeSize includes rowbyte padding except for the last row,