Index: src/gpu/GrDistanceFieldTextContext.cpp |
diff --git a/src/gpu/GrDistanceFieldTextContext.cpp b/src/gpu/GrDistanceFieldTextContext.cpp |
index e2bd6e9f9c30cc3c0e8fee86db1cef011c6f8025..07e9a2e21d7e2ed25025fec286ab284319c488d2 100755 |
--- a/src/gpu/GrDistanceFieldTextContext.cpp |
+++ b/src/gpu/GrDistanceFieldTextContext.cpp |
@@ -7,18 +7,20 @@ |
#include "GrDistanceFieldTextContext.h" |
#include "GrAtlas.h" |
-#include "SkColorFilter.h" |
#include "GrDrawTarget.h" |
#include "GrDrawTargetCaps.h" |
#include "GrFontScaler.h" |
-#include "SkGlyphCache.h" |
#include "GrGpu.h" |
#include "GrIndexBuffer.h" |
#include "GrStrokeInfo.h" |
+#include "GrTexturePriv.h" |
#include "GrTextStrike.h" |
#include "GrTextStrike_impl.h" |
+ |
+#include "SkColorFilter.h" |
#include "SkDistanceFieldGen.h" |
#include "SkDraw.h" |
+#include "SkGlyphCache.h" |
#include "SkGpuDevice.h" |
#include "SkPath.h" |
#include "SkRTConf.h" |
@@ -423,10 +425,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 + tw)), |
- SkFixedToFloat(texture->normalizeFixedY(ty + th)), |
+ textureCoords->setRectFan(SkFixedToFloat(texture->texturePriv().normalizeFixedX(tx)), |
+ SkFixedToFloat(texture->texturePriv().normalizeFixedY(ty)), |
+ SkFixedToFloat(texture->texturePriv().normalizeFixedX(tx + tw)), |
+ SkFixedToFloat(texture->texturePriv().normalizeFixedY(ty + th)), |
vertSize); |
if (useColorVerts) { |
if (0xFF == GrColorUnpackA(fPaint.getColor())) { |