From 337797580de42cdb722caab4bed121311ed7d0d2 Mon Sep 17 00:00:00 2001 From: halcanary Date: Tue, 27 Oct 2015 14:01:05 -0700 Subject: Make SkTextBlob::RunIterator public. Motivation: This will be easier than adding a friend every time I want to create a one-off SkCanvas subclass or SkRemote::Encoder subclass. See also: SkPath::Iter. Review URL: https://codereview.chromium.org/1411723005 --- src/gpu/GrTextBlobCache.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gpu/GrTextBlobCache.h') diff --git a/src/gpu/GrTextBlobCache.h b/src/gpu/GrTextBlobCache.h index 5f24e2ac16..8eee9d13db 100644 --- a/src/gpu/GrTextBlobCache.h +++ b/src/gpu/GrTextBlobCache.h @@ -10,7 +10,7 @@ #include "GrAtlasTextContext.h" #include "SkTDynamicHash.h" -#include "SkTextBlob.h" +#include "SkTextBlobRunIterator.h" class GrTextBlobCache { public: @@ -98,7 +98,7 @@ public: // TODO move to SkTextBlob static void BlobGlyphCount(int* glyphCount, int* runCount, const SkTextBlob* blob) { - SkTextBlob::RunIterator itCounter(blob); + SkTextBlobRunIterator itCounter(blob); for (; !itCounter.done(); itCounter.next(), (*runCount)++) { *glyphCount += itCounter.glyphCount(); } -- cgit v1.2.3