Index: src/core/SkPictureShader.cpp |
diff --git a/src/core/SkPictureShader.cpp b/src/core/SkPictureShader.cpp |
index 4539dda224fc4de645d729870ab4b79adc44becf..92e615734380dd02cc1367bfcc3108e54cef1022 100644 |
--- a/src/core/SkPictureShader.cpp |
+++ b/src/core/SkPictureShader.cpp |
@@ -190,7 +190,7 @@ SkShader* SkPictureShader::refBitmapShader(const SkMatrix& viewMatrix, const SkM |
// Scale down the tile size if larger than maxTextureSize for GPU Path or it should fail on create texture |
if (maxTextureSize) { |
if (scaledSize.width() > maxTextureSize || scaledSize.height() > maxTextureSize) { |
- SkScalar downScale = maxTextureSize / SkMax32(scaledSize.width(), scaledSize.height()); |
+ SkScalar downScale = maxTextureSize / SkMaxScalar(scaledSize.width(), scaledSize.height()); |
scaledSize.set(SkScalarFloorToScalar(SkScalarMul(scaledSize.width(), downScale)), |
SkScalarFloorToScalar(SkScalarMul(scaledSize.height(), downScale))); |
} |