OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2006-2012 The Android Open Source Project | 2 * Copyright 2006-2012 The Android Open Source Project |
3 * Copyright 2012 Mozilla Foundation | 3 * Copyright 2012 Mozilla Foundation |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 | 8 |
9 #ifndef SKFONTHOST_FREETYPE_COMMON_H_ | 9 #ifndef SKFONTHOST_FREETYPE_COMMON_H_ |
10 #define SKFONTHOST_FREETYPE_COMMON_H_ | 10 #define SKFONTHOST_FREETYPE_COMMON_H_ |
11 | 11 |
12 #include "SkGlyph.h" | 12 #include "SkGlyph.h" |
| 13 #include "SkMutex.h" |
13 #include "SkScalerContext.h" | 14 #include "SkScalerContext.h" |
14 #include "SkTypeface.h" | 15 #include "SkTypeface.h" |
15 #include "SkTypes.h" | 16 #include "SkTypes.h" |
16 | 17 |
17 #include <ft2build.h> | 18 #include <ft2build.h> |
18 #include FT_FREETYPE_H | 19 #include FT_FREETYPE_H |
19 | 20 |
20 class SkScalerContext_FreeType_Base : public SkScalerContext { | 21 class SkScalerContext_FreeType_Base : public SkScalerContext { |
21 protected: | 22 protected: |
22 // See http://freetype.sourceforge.net/freetype2/docs/reference/ft2-bitmap_h
andling.html#FT_Bitmap_Embolden | 23 // See http://freetype.sourceforge.net/freetype2/docs/reference/ft2-bitmap_h
andling.html#FT_Bitmap_Embolden |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 virtual size_t onGetTableData(SkFontTableTag, size_t offset, | 85 virtual size_t onGetTableData(SkFontTableTag, size_t offset, |
85 size_t length, void* data) const override; | 86 size_t length, void* data) const override; |
86 | 87 |
87 private: | 88 private: |
88 mutable int fGlyphCount; | 89 mutable int fGlyphCount; |
89 | 90 |
90 typedef SkTypeface INHERITED; | 91 typedef SkTypeface INHERITED; |
91 }; | 92 }; |
92 | 93 |
93 #endif // SKFONTHOST_FREETYPE_COMMON_H_ | 94 #endif // SKFONTHOST_FREETYPE_COMMON_H_ |
OLD | NEW |