Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Unified Diff: include/core/SkTextBlob.h

Issue 1411723005: Make SkTextBlob::RunIterator public. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2015-10-27 (Tuesday) 16:20:53 EDT Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/core/SkDevice.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkTextBlob.h
diff --git a/include/core/SkTextBlob.h b/include/core/SkTextBlob.h
index a39f378abca6151069d2a22cab3b8d779e2c83b8..b0ab8929e60f91cfdfe4190fa772c6e935539da8 100644
--- a/include/core/SkTextBlob.h
+++ b/include/core/SkTextBlob.h
@@ -46,37 +46,15 @@ public:
*/
static const SkTextBlob* CreateFromBuffer(SkReadBuffer&);
-private:
enum GlyphPositioning {
kDefault_Positioning = 0, // Default glyph advances -- zero scalars per glyph.
kHorizontal_Positioning = 1, // Horizontal positioning -- one scalar per glyph.
kFull_Positioning = 2 // Point positioning -- two scalars per glyph.
};
+private:
class RunRecord;
- class RunIterator {
- public:
- RunIterator(const SkTextBlob* blob);
-
- bool done() const;
- void next();
-
- uint32_t glyphCount() const;
- const uint16_t* glyphs() const;
- const SkScalar* pos() const;
- const SkPoint& offset() const;
- void applyFontToPaint(SkPaint*) const;
- GlyphPositioning positioning() const;
- bool isLCD() const;
-
- private:
- const RunRecord* fCurrentRun;
- int fRemainingRuns;
-
- SkDEBUGCODE(uint8_t* fStorageTop;)
- };
-
SkTextBlob(int runCount, const SkRect& bounds);
virtual ~SkTextBlob();
@@ -92,13 +70,8 @@ private:
static unsigned ScalarsPerGlyph(GlyphPositioning pos);
- friend class GrAtlasTextContext;
- friend class GrStencilAndCoverTextContext;
- friend class GrTextBlobCache;
- friend class GrTextContext;
- friend class SkBaseDevice;
friend class SkTextBlobBuilder;
- friend class TextBlobTester;
+ friend class SkTextBlobRunIterator;
const int fRunCount;
const SkRect fBounds;
« no previous file with comments | « no previous file | src/core/SkDevice.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698