Index: include/core/SkTypeface.h |
diff --git a/include/core/SkTypeface.h b/include/core/SkTypeface.h |
index 9c23fb200ba7aca3db006fc3388dca428716bef4..c84ae288a6782d47d5c284ce2c56e8359a86cb64 100644 |
--- a/include/core/SkTypeface.h |
+++ b/include/core/SkTypeface.h |
@@ -231,7 +231,14 @@ public: |
* collection. |
*/ |
SkStream* openStream(int* ttcIndex) const; |
- SkScalerContext* createScalerContext(const SkDescriptor*) const; |
+ |
+ /** |
+ * Return a scalercontext for the given descriptor. If this fails, then |
+ * if allowFailure is true, this returns NULL, else it returns a |
+ * dummy scalercontext that will not crash, but will draw nothing. |
+ */ |
+ SkScalerContext* createScalerContext(const SkDescriptor*, |
+ bool allowFailure = false) const; |
// PRIVATE / EXPERIMENTAL -- do not call |
void filterRec(SkScalerContextRec* rec) const { |