Index: include/core/SkTypeface.h |
diff --git a/include/core/SkTypeface.h b/include/core/SkTypeface.h |
index 0fbf6a3e0ad337395c66f513e73eb6a37f61e8f2..f22d2bd14f6c0ed2e48cff9599ec26c5a55be5cd 100644 |
--- a/include/core/SkTypeface.h |
+++ b/include/core/SkTypeface.h |
@@ -8,7 +8,7 @@ |
#ifndef SkTypeface_DEFINED |
#define SkTypeface_DEFINED |
-#include "../private/SkOncePtr.h" |
+#include "../private/SkOnce.h" |
#include "../private/SkWeakRefCnt.h" |
#include "SkFontStyle.h" |
#include "SkRect.h" |
@@ -398,9 +398,10 @@ private: |
static SkTypeface* CreateDefault(int style); // SkLazyPtr requires an int, not a Style. |
static void DeleteDefault(SkTypeface*); |
- SkOncePtr<SkRect> fLazyBounds; |
SkFontID fUniqueID; |
SkFontStyle fStyle; |
+ mutable SkRect fBounds; |
+ mutable SkOnce fBoundsOnce; |
bool fIsFixedPitch; |
friend class SkPaint; |