| Index: src/gpu/GrTexture.cpp
|
| diff --git a/src/gpu/GrTexture.cpp b/src/gpu/GrTexture.cpp
|
| index b76075747889f2fea50194c6be486c221a5d2c0a..7984460545db61d3b5dfb8c6120f24719e909365 100644
|
| --- a/src/gpu/GrTexture.cpp
|
| +++ b/src/gpu/GrTexture.cpp
|
| @@ -42,8 +42,12 @@ size_t GrTexture::onGpuMemorySize() const {
|
| if (this->texturePriv().hasMipMaps()) {
|
| // We don't have to worry about the mipmaps being a different size than
|
| // we'd expect because we never change fDesc.fWidth/fHeight.
|
| - textureSize *= 2;
|
| + textureSize += textureSize/3;
|
| }
|
| +
|
| + SkASSERT(!SkToBool(fDesc.fFlags & kRenderTarget_GrSurfaceFlag));
|
| + SkASSERT(textureSize <= WorseCaseSize(fDesc));
|
| +
|
| return textureSize;
|
| }
|
|
|
|
|