Chromium Code Reviews| Index: src/gpu/GrDistanceFieldTextContext.cpp |
| diff --git a/src/gpu/GrDistanceFieldTextContext.cpp b/src/gpu/GrDistanceFieldTextContext.cpp |
| index e2bd6e9f9c30cc3c0e8fee86db1cef011c6f8025..224680f10c886f7c86d145f5317727ffde90abb8 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 "SkDistanceFieldGen.h" |
|
robertphillips
2014/09/29 19:21:59
out of order ?
bsalomon
2014/09/29 19:46:28
Done.
|
| +#include "SkColorFilter.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())) { |