Index: include/core/SkTextBlob.h |
diff --git a/include/core/SkTextBlob.h b/include/core/SkTextBlob.h |
index d1b2e0fe1b94f83159869251de19fadc79d5e395..b630f14dbfa3f118a580d4f535eed015c8548fba 100644 |
--- a/include/core/SkTextBlob.h |
+++ b/include/core/SkTextBlob.h |
@@ -13,6 +13,9 @@ |
#include "SkTArray.h" |
#include "SkTDArray.h" |
+class SkReadBuffer; |
+class SkWriteBuffer; |
+ |
/** \class SkTextBlob |
SkTextBlob combines multiple text runs into an immutable, ref-counted structure. |
@@ -67,7 +70,13 @@ private: |
SkTextBlob(uint16_t* glyphs, SkScalar* pos, const SkTArray<Run>* runs, const SkRect& bounds); |
+ void flatten(SkWriteBuffer&) const; |
+ static const SkTextBlob* CreateFromBuffer(SkReadBuffer&); |
+ |
+ static unsigned ScalarsPerGlyph(GlyphPositioning pos); |
+ |
friend class SkCanvas; |
+ friend class SkPictureData; |
friend class SkTextBlobBuilder; |
friend class TextBlobTester; |