aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar cblume <cblume@chromium.org>2016-09-19 06:18:03 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-09-19 06:18:03 -0700
commit12f752723b31bb015ded118bfa466c2f1e9b2905 (patch)
tree54061a965829419cf866dfb8471f7f2c5b00aeb7
parentbbfe92bc1dd2b0a65e63b3caed9873dbc4df522a (diff)
Remove release asserts.
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
-rw-r--r--src/image/SkImage_Gpu.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/image/SkImage_Gpu.cpp b/src/image/SkImage_Gpu.cpp
index 7eb728f55d..55fb47a75d 100644
--- a/src/image/SkImage_Gpu.cpp
+++ b/src/image/SkImage_Gpu.cpp
@@ -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,