Index: src/gpu/GrBitmapTextContext.cpp |
diff --git a/src/gpu/GrBitmapTextContext.cpp b/src/gpu/GrBitmapTextContext.cpp |
index 0f6d1b62a9643d8bd4e78fc8924abf1fdefc23be..422a7e0179b2242b89f340eadc6e441e04dfb1e0 100755 |
--- a/src/gpu/GrBitmapTextContext.cpp |
+++ b/src/gpu/GrBitmapTextContext.cpp |
@@ -11,20 +11,21 @@ |
#include "GrFontScaler.h" |
#include "GrIndexBuffer.h" |
#include "GrStrokeInfo.h" |
+#include "GrTexturePriv.h" |
#include "GrTextStrike.h" |
#include "GrTextStrike_impl.h" |
-#include "SkColorPriv.h" |
-#include "SkPath.h" |
-#include "SkRTConf.h" |
-#include "SkStrokeRec.h" |
#include "effects/GrCustomCoordsTextureEffect.h" |
#include "SkAutoKern.h" |
+#include "SkColorPriv.h" |
#include "SkDraw.h" |
#include "SkDrawProcs.h" |
#include "SkGlyphCache.h" |
#include "SkGpuDevice.h" |
#include "SkGr.h" |
+#include "SkPath.h" |
+#include "SkRTConf.h" |
+#include "SkStrokeRec.h" |
#include "SkTextMapStateProc.h" |
SK_CONF_DECLARE(bool, c_DumpFontCache, "gpu.dumpFontCache", false, |
@@ -588,10 +589,10 @@ HAS_ATLAS: |
// The texture coords are last in both the with and without color vertex layouts. |
SkPoint* textureCoords = reinterpret_cast<SkPoint*>( |
reinterpret_cast<intptr_t>(positions) + vertSize - sizeof(SkPoint)); |
- textureCoords->setRectFan(SkFixedToFloat(texture->normalizeFixedX(tx)), |
- SkFixedToFloat(texture->normalizeFixedY(ty)), |
- SkFixedToFloat(texture->normalizeFixedX(tx + width)), |
- SkFixedToFloat(texture->normalizeFixedY(ty + height)), |
+ textureCoords->setRectFan(SkFixedToFloat(texture->texturePriv().normalizeFixedX(tx)), |
+ SkFixedToFloat(texture->texturePriv().normalizeFixedY(ty)), |
+ SkFixedToFloat(texture->texturePriv().normalizeFixedX(tx + width)), |
+ SkFixedToFloat(texture->texturePriv().normalizeFixedY(ty + height)), |
vertSize); |
if (useColorVerts) { |
if (0xFF == GrColorUnpackA(fPaint.getColor())) { |