Index: src/gpu/GrSWMaskHelper.cpp |
diff --git a/src/gpu/GrSWMaskHelper.cpp b/src/gpu/GrSWMaskHelper.cpp |
index ba62858cb7b27c0c339440cb87c435cb2d744e63..2e68b7829b4bde6f044b055df014cc94fd97d81f 100644 |
--- a/src/gpu/GrSWMaskHelper.cpp |
+++ b/src/gpu/GrSWMaskHelper.cpp |
@@ -124,7 +124,7 @@ bool GrSWMaskHelper::init(const SkIRect& resultBounds, |
int dimX, dimY; |
SkTextureCompressor::GetBlockDimensions(fCompressedFormat, &dimX, &dimY); |
const int cmpWidth = dimX * ((bounds.fRight + (dimX - 1)) / dimX); |
- const int cmpHeight = dimY * ((bounds.fRight + (dimY - 1)) / dimY); |
+ const int cmpHeight = dimY * ((bounds.fBottom + (dimY - 1)) / dimY); |
#else |
const int cmpWidth = bounds.fRight; |
const int cmpHeight = bounds.fBottom; |