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

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) 15:53:46 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..228f5a5e1104775b6bdcc1575923e4fcadbc09fa 100644
--- a/include/core/SkTextBlob.h
+++ b/include/core/SkTextBlob.h
@@ -46,36 +46,16 @@ 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.
};
+ class RunIterator;
f(malita) 2015/10/27 20:10:00 Since the definition is internal-only, it seems a
mtklein 2015/10/27 20:14:31 Both work. It's mostly a question of whether you
- 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;
+private:
- SkDEBUGCODE(uint8_t* fStorageTop;)
- };
+ class RunRecord;
SkTextBlob(int runCount, const SkRect& bounds);
@@ -92,13 +72,7 @@ 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;
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