| Index: src/gpu/GrStencilAndCoverTextContext.cpp
|
| diff --git a/src/gpu/GrStencilAndCoverTextContext.cpp b/src/gpu/GrStencilAndCoverTextContext.cpp
|
| index d3d711fa020b0d66fc468f164bcd09837eee7cb3..f1fddbe686ad9c4cece0f22782b01f2eeeeb826e 100644
|
| --- a/src/gpu/GrStencilAndCoverTextContext.cpp
|
| +++ b/src/gpu/GrStencilAndCoverTextContext.cpp
|
| @@ -167,7 +167,7 @@ void GrStencilAndCoverTextContext::drawText(const GrPaint& paint,
|
| SkAutoGlyphCache autoCache(fSkPaint, &fDeviceProperties, glyphCacheTransform);
|
| fGlyphCache = autoCache.getCache();
|
| fGlyphs = GlyphPathRange::Create(fContext, fGlyphCache, fStroke);
|
| - fTransformType = GrDrawTarget::kTranslate_PathTransformType;
|
| + fTransformType = GrPathRendering::kTranslate_PathTransformType;
|
|
|
| const char* stop = text + byteLength;
|
|
|
| @@ -255,7 +255,7 @@ void GrStencilAndCoverTextContext::drawPosText(const GrPaint& paint,
|
|
|
| if (SkPaint::kLeft_Align == fSkPaint.getTextAlign()) {
|
| if (1 == scalarsPerPosition) {
|
| - fTransformType = GrDrawTarget::kTranslateX_PathTransformType;
|
| + fTransformType = GrPathRendering::kTranslateX_PathTransformType;
|
| while (text < stop) {
|
| const SkGlyph& glyph = glyphCacheProc(fGlyphCache, &text, 0, 0);
|
| if (glyph.fWidth) {
|
| @@ -265,7 +265,7 @@ void GrStencilAndCoverTextContext::drawPosText(const GrPaint& paint,
|
| }
|
| } else {
|
| SkASSERT(2 == scalarsPerPosition);
|
| - fTransformType = GrDrawTarget::kTranslate_PathTransformType;
|
| + fTransformType = GrPathRendering::kTranslate_PathTransformType;
|
| while (text < stop) {
|
| const SkGlyph& glyph = glyphCacheProc(fGlyphCache, &text, 0, 0);
|
| if (glyph.fWidth) {
|
| @@ -275,7 +275,7 @@ void GrStencilAndCoverTextContext::drawPosText(const GrPaint& paint,
|
| }
|
| }
|
| } else {
|
| - fTransformType = GrDrawTarget::kTranslate_PathTransformType;
|
| + fTransformType = GrPathRendering::kTranslate_PathTransformType;
|
| SkTextMapStateProc tmsProc(SkMatrix::I(), 0, scalarsPerPosition);
|
| SkTextAlignProcScalar alignProc(fSkPaint.getTextAlign());
|
| while (text < stop) {
|
| @@ -408,7 +408,7 @@ void GrStencilAndCoverTextContext::init(const GrPaint& paint,
|
| }
|
|
|
| inline void GrStencilAndCoverTextContext::appendGlyph(uint16_t glyphID, float x) {
|
| - SkASSERT(GrDrawTarget::kTranslateX_PathTransformType == fTransformType);
|
| + SkASSERT(GrPathRendering::kTranslateX_PathTransformType == fTransformType);
|
|
|
| if (fPendingGlyphCount >= kGlyphBufferSize) {
|
| this->flush();
|
| @@ -423,7 +423,7 @@ inline void GrStencilAndCoverTextContext::appendGlyph(uint16_t glyphID, float x)
|
| }
|
|
|
| inline void GrStencilAndCoverTextContext::appendGlyph(uint16_t glyphID, float x, float y) {
|
| - SkASSERT(GrDrawTarget::kTranslate_PathTransformType == fTransformType);
|
| + SkASSERT(GrPathRendering::kTranslate_PathTransformType == fTransformType);
|
|
|
| if (fPendingGlyphCount >= kGlyphBufferSize) {
|
| this->flush();
|
|
|