| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2006 The Android Open Source Project | 2 * Copyright 2006 The Android Open Source Project |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 #ifndef SkGlyph_DEFINED | 8 #ifndef SkGlyph_DEFINED |
| 9 #define SkGlyph_DEFINED | 9 #define SkGlyph_DEFINED |
| 10 | 10 |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 encounters an error measuring a glyph). Note: this does not alter the | 110 encounters an error measuring a glyph). Note: this does not alter the |
| 111 fImage, fPath, fID, fMaskFormat fields. | 111 fImage, fPath, fID, fMaskFormat fields. |
| 112 */ | 112 */ |
| 113 void zeroMetrics(); | 113 void zeroMetrics(); |
| 114 | 114 |
| 115 void toMask(SkMask* mask) const; | 115 void toMask(SkMask* mask) const; |
| 116 | 116 |
| 117 private: | 117 private: |
| 118 // TODO(herb) remove friend statement after SkGlyphCache cleanup. | 118 // TODO(herb) remove friend statement after SkGlyphCache cleanup. |
| 119 friend class SkGlyphCache; | 119 friend class SkGlyphCache; |
| 120 friend class GlyphTrait; |
| 120 | 121 |
| 121 void initCommon(uint32_t id) { | 122 void initCommon(uint32_t id) { |
| 122 fID = id; | 123 fID = id; |
| 123 fImage = NULL; | 124 fImage = NULL; |
| 124 fPath = NULL; | 125 fPath = NULL; |
| 125 fMaskFormat = MASK_FORMAT_UNKNOWN; | 126 fMaskFormat = MASK_FORMAT_UNKNOWN; |
| 126 fForceBW = 0; | 127 fForceBW = 0; |
| 127 } | 128 } |
| 128 | 129 |
| 129 static unsigned ID2Code(uint32_t id) { | 130 static unsigned ID2Code(uint32_t id) { |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 | 167 |
| 167 // FIXME - This is needed because the Android frame work directly | 168 // FIXME - This is needed because the Android frame work directly |
| 168 // accesses fID. Remove when fID accesses are cleaned up. | 169 // accesses fID. Remove when fID accesses are cleaned up. |
| 169 #ifdef SK_BUILD_FOR_ANDROID_FRAMEWORK | 170 #ifdef SK_BUILD_FOR_ANDROID_FRAMEWORK |
| 170 public: | 171 public: |
| 171 #endif | 172 #endif |
| 172 uint32_t fID; | 173 uint32_t fID; |
| 173 }; | 174 }; |
| 174 | 175 |
| 175 #endif | 176 #endif |
| OLD | NEW |