diff options
author | Cary Clark <caryclark@skia.org> | 2017-12-15 13:11:41 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-12-15 18:37:39 +0000 |
commit | 2d53d984251a753b9d0fb3adad3be09243cf5c14 (patch) | |
tree | 8cbe3bfc4a81624efdc79c2992e056040080a251 /src/gpu | |
parent | 2a8ad669097f5e0b57e5acd174554d875728c75b (diff) |
move homogenous with stride to matrixpriv
this appears to be needed only by Skia
internally, so move it out of the public
includes.
R=bsalomon@google.com
Bug: skia:6898
Change-Id: Iebdda8f2c9a8fd953dd44bac9b74158d7491c21a
Reviewed-on: https://skia-review.googlesource.com/85961
Commit-Queue: Cary Clark <caryclark@skia.org>
Commit-Queue: Cary Clark <caryclark@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'src/gpu')
-rw-r--r-- | src/gpu/ops/GrAtlasTextOp.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gpu/ops/GrAtlasTextOp.cpp b/src/gpu/ops/GrAtlasTextOp.cpp index d71cd92fde..c3698b992f 100644 --- a/src/gpu/ops/GrAtlasTextOp.cpp +++ b/src/gpu/ops/GrAtlasTextOp.cpp @@ -11,6 +11,7 @@ #include "GrResourceProvider.h" #include "SkGlyphCache.h" #include "SkMathPriv.h" +#include "SkMatrixPriv.h" #include "SkPoint3.h" #include "effects/GrBitmapTextGeoProc.h" #include "effects/GrDistanceFieldGeoProc.h" @@ -281,7 +282,7 @@ void GrAtlasTextOp::onPrepareDraws(Target* target) { // arbitrary transformations would be complicated and accumulate error. if (args.fViewMatrix.hasPerspective()) { auto* pos = reinterpret_cast<SkPoint3*>(currVertex); - args.fViewMatrix.mapHomogeneousPointsWithStride( + SkMatrixPriv::MapHomogeneousPointsWithStride(args.fViewMatrix, pos, pos, vertexStride, result.fGlyphsRegenerated * kVerticesPerGlyph); } else { auto* pos = reinterpret_cast<SkPoint*>(currVertex); |