From ab54e7394d81438f5256b632c71724b480a7f66b Mon Sep 17 00:00:00 2001 From: Florin Malita Date: Fri, 27 Jul 2018 09:47:15 -0400 Subject: Hide SkTextBlob::GlyphPositioning from public API Make private, add corresponding SkTextBlobRunIterator enum. Also move SkTextBlobRunIterator to SkTextBlobPriv.h. Change-Id: If3e0beabb0e8484b1ac73c6fc0827e920ca1f93b Reviewed-on: https://skia-review.googlesource.com/142501 Commit-Queue: Florin Malita Reviewed-by: Mike Reed Reviewed-by: Herb Derby Reviewed-by: Cary Clark --- src/gpu/text/GrTextBlob.cpp | 1 - src/gpu/text/GrTextBlobCache.h | 2 +- src/gpu/text/GrTextContext.cpp | 2 +- src/gpu/text/GrTextContext.h | 1 - src/gpu/text/GrTextUtils.cpp | 1 - 5 files changed, 2 insertions(+), 5 deletions(-) (limited to 'src/gpu') diff --git a/src/gpu/text/GrTextBlob.cpp b/src/gpu/text/GrTextBlob.cpp index 7b4507eab0..6bd4c1c3bb 100644 --- a/src/gpu/text/GrTextBlob.cpp +++ b/src/gpu/text/GrTextBlob.cpp @@ -14,7 +14,6 @@ #include "SkGlyphCache.h" #include "SkMaskFilterBase.h" #include "SkPaintPriv.h" -#include "SkTextBlobRunIterator.h" #include "SkTextToPathIter.h" #include "ops/GrAtlasTextOp.h" #include diff --git a/src/gpu/text/GrTextBlobCache.h b/src/gpu/text/GrTextBlobCache.h index 110e0ad7fc..fe245c99d3 100644 --- a/src/gpu/text/GrTextBlobCache.h +++ b/src/gpu/text/GrTextBlobCache.h @@ -12,7 +12,7 @@ #include "SkMessageBus.h" #include "SkRefCnt.h" #include "SkTArray.h" -#include "SkTextBlobRunIterator.h" +#include "SkTextBlobPriv.h" #include "SkTHash.h" class GrTextBlobCache { diff --git a/src/gpu/text/GrTextContext.cpp b/src/gpu/text/GrTextContext.cpp index aeb99f1548..d57055a511 100644 --- a/src/gpu/text/GrTextContext.cpp +++ b/src/gpu/text/GrTextContext.cpp @@ -196,7 +196,7 @@ void GrTextContext::regenerateGlyphRunList(GrTextBlob* cacheBlob, } cacheBlob->setRunPaintFlags(run, runPaint.skPaint().getFlags()); - SkASSERT(it.positioning() == SkTextBlob::kFull_Positioning); + SkASSERT(it.positioning() == SkTextBlobRunIterator::kFull_Positioning); if (CanDrawAsDistanceFields(runPaint, viewMatrix, props, shaderCaps.supportsDistanceFieldText(), fOptions)) { this->drawDFPosText(cacheBlob, run, glyphCache, props, runPaint, diff --git a/src/gpu/text/GrTextContext.h b/src/gpu/text/GrTextContext.h index aa4626e411..0093f846b4 100644 --- a/src/gpu/text/GrTextContext.h +++ b/src/gpu/text/GrTextContext.h @@ -12,7 +12,6 @@ #include "GrDistanceFieldAdjustTable.h" #include "GrGeometryProcessor.h" #include "GrTextUtils.h" -#include "SkTextBlobRunIterator.h" #if GR_TEST_UTILS #include "GrDrawOpTest.h" diff --git a/src/gpu/text/GrTextUtils.cpp b/src/gpu/text/GrTextUtils.cpp index ec5389c464..ba033aaaa5 100644 --- a/src/gpu/text/GrTextUtils.cpp +++ b/src/gpu/text/GrTextUtils.cpp @@ -10,7 +10,6 @@ #include "SkGlyphCache.h" #include "SkGr.h" #include "SkPaint.h" -#include "SkTextBlobRunIterator.h" void GrTextUtils::Paint::initFilteredColor() { GrColor4f filteredColor = SkColorToUnpremulGrColor4f(fPaint->getColor(), *fDstColorSpaceInfo); -- cgit v1.2.3