Remove GrScalar, replace with SkScalar.
Review URL: https://codereview.appspot.com/6812064
git-svn-id: http://skia.googlecode.com/svn/trunk@6243 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/gpu/GrTextContext.cpp b/src/gpu/GrTextContext.cpp
index 41949fb..bf7ed04 100644
--- a/src/gpu/GrTextContext.cpp
+++ b/src/gpu/GrTextContext.cpp
@@ -131,8 +131,8 @@
return;
}
- vx += GrIntToFixed(glyph->fBounds.fLeft);
- vy += GrIntToFixed(glyph->fBounds.fTop);
+ vx += SkIntToFixed(glyph->fBounds.fLeft);
+ vy += SkIntToFixed(glyph->fBounds.fTop);
// keep them as ints until we've done the clip-test
GrFixed width = glyph->fBounds.width();
@@ -175,8 +175,8 @@
GrContext::AutoMatrix am;
GrMatrix translate;
- translate.setTranslate(GrFixedToScalar(vx - GrIntToFixed(glyph->fBounds.fLeft)),
- GrFixedToScalar(vy - GrIntToFixed(glyph->fBounds.fTop)));
+ translate.setTranslate(SkFixedToScalar(vx - SkIntToFixed(glyph->fBounds.fLeft)),
+ SkFixedToScalar(vy - SkIntToFixed(glyph->fBounds.fTop)));
GrPaint tmpPaint(fPaint);
am.setPreConcat(fContext, translate, &tmpPaint);
fContext->drawPath(tmpPaint, *glyph->fPath, kWinding_GrPathFill);
@@ -187,8 +187,8 @@
GrAssert(glyph->fAtlas);
// now promote them to fixed
- width = GrIntToFixed(width);
- height = GrIntToFixed(height);
+ width = SkIntToFixed(width);
+ height = SkIntToFixed(height);
GrTexture* texture = glyph->fAtlas->texture();
GrAssert(texture);
@@ -234,8 +234,8 @@
GrAlwaysAssert(success);
}
- GrFixed tx = GrIntToFixed(glyph->fAtlasLocation.fX);
- GrFixed ty = GrIntToFixed(glyph->fAtlasLocation.fY);
+ GrFixed tx = SkIntToFixed(glyph->fAtlasLocation.fX);
+ GrFixed ty = SkIntToFixed(glyph->fAtlasLocation.fY);
#if GR_TEXT_SCALAR_IS_USHORT
int x = vx >> 16;