Index: src/effects/gradients/SkGradientShader.cpp |
diff --git a/src/effects/gradients/SkGradientShader.cpp b/src/effects/gradients/SkGradientShader.cpp |
index 9dce5c2e0f8b5b84aa14b090329075950cc1dc5a..0d1730860af872f3c04fea08a95e6b22d481c6de 100644 |
--- a/src/effects/gradients/SkGradientShader.cpp |
+++ b/src/effects/gradients/SkGradientShader.cpp |
@@ -1159,8 +1159,7 @@ GrGradientEffect::GrGradientEffect(GrContext* ctx, |
fRow = fAtlas->lockRow(bitmap); |
if (-1 != fRow) { |
- fYCoord = fAtlas->getYOffset(fRow) + SK_ScalarHalf * |
- fAtlas->getVerticalScaleFactor(); |
+ fYCoord = fAtlas->getYOffset(fRow) + SK_ScalarHalf * fAtlas->getNormalizedTexelHeight(); |
fCoordTransform.reset(kCoordSet, matrix, fAtlas->getTexture()); |
fTextureAccess.reset(fAtlas->getTexture(), params); |
} else { |