Chromium Code Reviews| Index: src/core/SkScalerContext.h |
| diff --git a/src/core/SkScalerContext.h b/src/core/SkScalerContext.h |
| index 1ada0acfe4e57a2d79640c589b84ad33ddb72ffa..3867f261732c020454f7d531f930e6f03c0974db 100644 |
| --- a/src/core/SkScalerContext.h |
| +++ b/src/core/SkScalerContext.h |
| @@ -190,16 +190,7 @@ public: |
| // This function must be public for SkTypeface_android.h, but should not be |
| // called by other callers |
| - SkFontID findTypefaceIdForChar(SkUnichar uni) { |
| - SkScalerContext* ctx = this; |
| - while (NULL != ctx) { |
| - if (ctx->generateCharToGlyph(uni)) { |
| - return ctx->fRec.fFontID; |
| - } |
| - ctx = ctx->getNextContext(); |
| - } |
| - return 0; |
| - } |
| + SkFontID findTypefaceIdForChar(SkUnichar uni); |
| #endif |
| static inline void MakeRec(const SkPaint&, const SkDeviceProperties* deviceProperties, |
| @@ -245,6 +236,11 @@ private: |
| // is found, just returns the original context (this) |
| SkScalerContext* getGlyphContext(const SkGlyph& glyph); |
|
robertphillips
2013/03/08 16:20:15
not -> no
djsollen
2013/03/08 16:25:39
Done.
|
| + // returns the right context from our link-list for this char. If not match |
| + // is found it returns NULL. If a match is found the glyphID corresponding |
| + // to the char is also set. |
| + SkScalerContext* getContextFromChar(SkUnichar uni, uint16_t* glyphID); |
| + |
| // link-list of context, to handle missing chars. null-terminated. |
| SkScalerContext* fNextContext; |