aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core/SkTypeface.h
diff options
context:
space:
mode:
authorGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-05-30 20:42:00 +0000
committerGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-05-30 20:42:00 +0000
commit5a70945ddd036b8079987954123ff8f382c285af (patch)
tree3bb2d0ee55d6732edc13c04d4f63050deea157e3 /include/core/SkTypeface.h
parent2a5cd60bfff32c92cf44a8cfc3e8c017b9aee456 (diff)
Port most uses of SkOnce to SkLazyPtr.
BUG=skia: R=reed@google.com, mtklein@google.com Author: mtklein@chromium.org Review URL: https://codereview.chromium.org/304383005 git-svn-id: http://skia.googlecode.com/svn/trunk@15006 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/core/SkTypeface.h')
-rw-r--r--include/core/SkTypeface.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/core/SkTypeface.h b/include/core/SkTypeface.h
index 0be97eb4f7..0b1c1f24ac 100644
--- a/include/core/SkTypeface.h
+++ b/include/core/SkTypeface.h
@@ -339,7 +339,8 @@ private:
uint32_t glyphIDsCount = 0) const;
private:
- static void create_default_typeface(Style style);
+ static SkTypeface* CreateDefault(int style); // SkLazyPtr requires an int, not a Style.
+ static void DeleteDefault(SkTypeface*);
SkFontID fUniqueID;
Style fStyle;