Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(56)

Side by Side Diff: src/ports/SkFontHost_ascender.cpp

Issue 12921003: reland 8200 w/ fix for android (use fullpath instead of path) (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/ports/SkFontHost_android.cpp ('k') | src/ports/SkFontHost_freetype_mac.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « src/ports/SkFontHost_android.cpp ('k') | src/ports/SkFontHost_freetype_mac.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698