aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/pdf/SkPDFFont.h
diff options
context:
space:
mode:
authorGravatar halcanary <halcanary@google.com>2016-08-15 11:45:36 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-08-15 11:45:36 -0700
commit6059dc32fe36358175cb81541c91e74a2a7e771a (patch)
treea35432d46f508e71114795f55474e7c301a8b865 /src/pdf/SkPDFFont.h
parent2ae98b0afc584d68ed22ed29df3f24cfa8aad0a2 (diff)
SkPDF: unify drawText and drawPosText
Motivation: a later CL will add drawTextBlob() (after https://crrev.com/2084533004 lands). This CL is designed with that change in mind. Also fewer redundant lines of code. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2241683005 Review-Url: https://codereview.chromium.org/2241683005
Diffstat (limited to 'src/pdf/SkPDFFont.h')
-rw-r--r--src/pdf/SkPDFFont.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/pdf/SkPDFFont.h b/src/pdf/SkPDFFont.h
index acf9bf87ee..c2e34e44e4 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