diff options
author | 2015-10-27 14:01:05 -0700 | |
---|---|---|
committer | 2015-10-27 14:01:05 -0700 | |
commit | 337797580de42cdb722caab4bed121311ed7d0d2 (patch) | |
tree | 3cd5b713b9d45ba843ab102972335121efcf2c7c /src/core/SkDevice.cpp | |
parent | aef4971443414990cad984817ce4b90fee04bd21 (diff) |
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
Diffstat (limited to 'src/core/SkDevice.cpp')
-rw-r--r-- | src/core/SkDevice.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/SkDevice.cpp b/src/core/SkDevice.cpp index 1f270af572..34c171db90 100644 --- a/src/core/SkDevice.cpp +++ b/src/core/SkDevice.cpp @@ -17,7 +17,7 @@ #include "SkRasterClip.h" #include "SkRSXform.h" #include "SkShader.h" -#include "SkTextBlob.h" +#include "SkTextBlobRunIterator.h" #include "SkTextToPathIter.h" SkBaseDevice::SkBaseDevice(const SkSurfaceProps& surfaceProps) @@ -103,7 +103,7 @@ void SkBaseDevice::drawTextBlob(const SkDraw& draw, const SkTextBlob* blob, SkSc SkPaint runPaint = paint; - SkTextBlob::RunIterator it(blob); + SkTextBlobRunIterator it(blob); for (;!it.done(); it.next()) { size_t textLen = it.glyphCount() * sizeof(uint16_t); const SkPoint& offset = it.offset(); |