Index: src/gpu/GrDistanceFieldTextContext.cpp |
diff --git a/src/gpu/GrDistanceFieldTextContext.cpp b/src/gpu/GrDistanceFieldTextContext.cpp |
index 641d0c1e01eff1056fadac148e755313f619ee0a..1cba6086ad3fd681a28eac736eae5e9740cefde6 100755 |
--- a/src/gpu/GrDistanceFieldTextContext.cpp |
+++ b/src/gpu/GrDistanceFieldTextContext.cpp |
@@ -306,7 +306,7 @@ void GrDistanceFieldTextContext::onDrawPosText(const GrPaint& paint, const SkPai |
glyph.getSubYFixed()), |
x, y, fontScaler)) { |
// couldn't append, send to fallback |
- fallbackTxt.push_back_n(SkToU32(text-lastText), lastText); |
+ fallbackTxt.push_back_n(SkToInt(text-lastText), lastText); |
fallbackPos.push_back(pos[0]); |
if (2 == scalarsPerPosition) { |
fallbackPos.push_back(pos[1]); |
@@ -335,7 +335,7 @@ void GrDistanceFieldTextContext::onDrawPosText(const GrPaint& paint, const SkPai |
glyph.getSubYFixed()), |
x - advanceX, y - advanceY, fontScaler)) { |
// couldn't append, send to fallback |
- fallbackTxt.push_back_n(SkToU32(text-lastText), lastText); |
+ fallbackTxt.push_back_n(SkToInt(text-lastText), lastText); |
fallbackPos.push_back(pos[0]); |
if (2 == scalarsPerPosition) { |
fallbackPos.push_back(pos[1]); |