diff options
author | Mike Reed <reed@google.com> | 2017-05-03 15:48:22 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-05-04 14:51:03 +0000 |
commit | 342a9fa8e1c0bccff0d2d1569042bce29f2bbe85 (patch) | |
tree | 86847274a2792d9135a0461981800318609163c9 /include/core/SkTypeface.h | |
parent | 060d9820364b0cf09c7eb3bda449f24c3dcba2e2 (diff) |
add virtual to support CTFontRef
Bug: skia:6583
Change-Id: I8525e63d3f43467289360d4b15c0153d2a43539e
Reviewed-on: https://skia-review.googlesource.com/15194
Reviewed-by: Ben Wagner <bungeman@google.com>
Commit-Queue: Mike Reed <reed@google.com>
Diffstat (limited to 'include/core/SkTypeface.h')
-rw-r--r-- | include/core/SkTypeface.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/core/SkTypeface.h b/include/core/SkTypeface.h index 10cf96142b..3e7f447f9f 100644 --- a/include/core/SkTypeface.h +++ b/include/core/SkTypeface.h @@ -321,6 +321,10 @@ public: void getFontDescriptor(SkFontDescriptor* desc, bool* isLocal) const { this->onGetFontDescriptor(desc, isLocal); } + // PRIVATE / EXPERIMENTAL -- do not call + void* internal_private_getCTFontRef() const { + return this->onGetCTFontRef(); + } protected: // The type of advance data wanted. @@ -384,6 +388,8 @@ protected: virtual bool onComputeBounds(SkRect*) const; + virtual void* onGetCTFontRef() const { return nullptr; } + private: friend class SkRandomTypeface; friend class SkPDFFont; |