OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2011 Google Inc. | 3 * Copyright 2011 Google Inc. |
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 #include "SkScalerContext.h" | 8 #include "SkScalerContext.h" |
9 #include "SkBitmap.h" | 9 #include "SkBitmap.h" |
10 #include "SkCanvas.h" | 10 #include "SkCanvas.h" |
11 #include "SkDescriptor.h" | 11 #include "SkDescriptor.h" |
12 #include "SkFDot6.h" | 12 #include "SkFDot6.h" |
13 #include "SkFontHost.h" | 13 #include "SkFontHost.h" |
14 #include "SkMask.h" | 14 #include "SkMask.h" |
15 #include "SkStream.h" | 15 #include "SkStream.h" |
16 #include "SkString.h" | 16 #include "SkString.h" |
17 #include "SkThread.h" | 17 #include "SkThread.h" |
18 #include "SkTemplates.h" | 18 #include "SkTemplates.h" |
19 | 19 |
20 #include <acaapi.h> | 20 #include <acaapi.h> |
21 | 21 |
22 ////////////////////////////////////////////////////////////////////////// | 22 ////////////////////////////////////////////////////////////////////////// |
23 | 23 |
24 #include "SkMMapStream.h" | |
25 | |
26 class SkScalerContext_Ascender : public SkScalerContext { | 24 class SkScalerContext_Ascender : public SkScalerContext { |
27 public: | 25 public: |
28 SkScalerContext_Ascender(const SkDescriptor* desc); | 26 SkScalerContext_Ascender(const SkDescriptor* desc); |
29 virtual ~SkScalerContext_Ascender(); | 27 virtual ~SkScalerContext_Ascender(); |
30 | 28 |
31 protected: | 29 protected: |
32 virtual unsigned generateGlyphCount(); | 30 virtual unsigned generateGlyphCount(); |
33 virtual uint16_t generateCharToGlyph(SkUnichar uni); | 31 virtual uint16_t generateCharToGlyph(SkUnichar uni); |
34 virtual void generateMetrics(SkGlyph* glyph); | 32 virtual void generateMetrics(SkGlyph* glyph); |
35 virtual void generateImage(const SkGlyph& glyph); | 33 virtual void generateImage(const SkGlyph& glyph); |
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
220 } | 218 } |
221 } | 219 } |
222 | 220 |
223 //////////////////////////////////////////////////////////////////////// | 221 //////////////////////////////////////////////////////////////////////// |
224 //////////////////////////////////////////////////////////////////////// | 222 //////////////////////////////////////////////////////////////////////// |
225 | 223 |
226 SkScalerContext* SkFontHost::CreateScalerContext(const SkDescriptor* desc) | 224 SkScalerContext* SkFontHost::CreateScalerContext(const SkDescriptor* desc) |
227 { | 225 { |
228 return SkNEW_ARGS(SkScalerContext_Ascender, (desc)); | 226 return SkNEW_ARGS(SkScalerContext_Ascender, (desc)); |
229 } | 227 } |
OLD | NEW |