diff options
author | vandebo@chromium.org <vandebo@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2011-05-29 05:55:42 +0000 |
---|---|---|
committer | vandebo@chromium.org <vandebo@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2011-05-29 05:55:42 +0000 |
commit | f0ec2666d9a3f0f1662f0d63b5147628c49648aa (patch) | |
tree | ae2bebb2182bfad6d4b0348b76481f16ecedcec6 /include/pdf/SkPDFPage.h | |
parent | d7beab42527fb03e3b86b9016665fd9aebc74265 (diff) |
[PDF] Add plumbing and accessors so that Chrome can record the font types used in a PDF.
- Add a font type accessor to SkPDFFont.
- Plumb font resource retrivial up to SkPDFPage.
Review URL: http://codereview.appspot.com/4547069
git-svn-id: http://skia.googlecode.com/svn/trunk@1444 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/pdf/SkPDFPage.h')
-rw-r--r-- | include/pdf/SkPDFPage.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/pdf/SkPDFPage.h b/include/pdf/SkPDFPage.h index b12be16fa2..d677a29182 100644 --- a/include/pdf/SkPDFPage.h +++ b/include/pdf/SkPDFPage.h @@ -86,6 +86,10 @@ public: SkTDArray<SkPDFDict*>* pageTree, SkPDFDict** rootNode); + /** Get the fonts used on this page. + */ + const SkTDArray<SkPDFFont*>& getFontResources() const; + private: // Multiple pages may reference the content. SkRefPtr<SkPDFDevice> fDevice; |