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

Unified Diff: src/pdf/SkPDFFont.h

Issue 2241683005: SkPDF: unify drawText and drawPosText (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: stop assuming typeface has glyphs Created 4 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 | « src/pdf/SkPDFDevice.cpp ('k') | src/pdf/SkPDFFont.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/pdf/SkPDFFont.h
diff --git a/src/pdf/SkPDFFont.h b/src/pdf/SkPDFFont.h
index acf9bf87ee453606c0e246bdfd7569a35a5aac61..c2e34e44e44ab2af6eacd141bf96ab3b539b2b31 100644
--- a/src/pdf/SkPDFFont.h
+++ b/src/pdf/SkPDFFont.h
@@ -106,7 +106,12 @@ public:
* @param numGlyphs The number of input glyphs.
* @return Returns the number of glyphs consumed.
*/
- int glyphsToPDFFontEncoding(uint16_t* glyphIDs, int numGlyphs);
+ int glyphsToPDFFontEncoding(SkGlyphID* glyphIDs, int numGlyphs) const;
+ /**
+ * Like above, but does not modify glyphIDs array.
+ */
+ int glyphsToPDFFontEncodingCount(const SkGlyphID* glyphIDs,
+ int numGlyphs) const;
/** Get the font resource for the passed typeface and glyphID. The
* reference count of the object is incremented and it is the caller's
« no previous file with comments | « src/pdf/SkPDFDevice.cpp ('k') | src/pdf/SkPDFFont.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698