aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/pdf/SkPDFResourceDict.h
diff options
context:
space:
mode:
authorGravatar halcanary <halcanary@google.com>2016-09-12 08:55:29 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-09-12 08:55:30 -0700
commitc2f9ec1f5e4e8e98489cd5ea9356771cf4d8ce13 (patch)
tree17c22f5a3cf2090b222ea00d1c23eb8a6f27e1e5 /src/pdf/SkPDFResourceDict.h
parent5192475bd8cb98e8e0c1192ab5ece7b8595701d6 (diff)
SkPDF: refactor & code cleanup ahead of https://crrev.com/2322403002
SkPDFDevice::GraphicStateEntry: remove unnecessary fFont and fTextSize. SkPDFDevice::updateFont(): replace with update_font() and inlined code. De-duplicate this block of code. SkPDFResourceDict::GetResourceTypePrefix function made public: removes need for temporary SkString returned by SkPDFResourceDict::getResourceName() GlyphPositioner: delay writing intial matrix until first glyph. Assert that widechars is a constant. SkPDFFont::FontType(): make public so that PDFDevice can know about multibyte status. SkPDFFont::countStretch() removed, and the stretch loop flattened. *no changes in PDF output* BUG=skia:5434 GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2327953002 Review-Url: https://codereview.chromium.org/2327953002
Diffstat (limited to 'src/pdf/SkPDFResourceDict.h')
-rw-r--r--src/pdf/SkPDFResourceDict.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/pdf/SkPDFResourceDict.h b/src/pdf/SkPDFResourceDict.h
index 53932eea91..a9618b2423 100644
--- a/src/pdf/SkPDFResourceDict.h
+++ b/src/pdf/SkPDFResourceDict.h
@@ -32,6 +32,8 @@ public:
kResourceTypeCount
};
+ static char GetResourceTypePrefix(SkPDFResourceDict::SkPDFResourceType type);
+
/** Create a PDF resource dictionary.
* The full set of ProcSet entries is automatically created for backwards
* compatibility, as recommended by the PDF spec.