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 499413002: SkTextBlob plumbing (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: review comments Created 6 years, 4 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 | « include/core/SkPicture.h ('k') | include/utils/SkDeferredCanvas.h » ('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 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;
« no previous file with comments | « include/core/SkPicture.h ('k') | include/utils/SkDeferredCanvas.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698