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

Side by Side Diff: src/ports/SkFontHost_FreeType_common.h

Issue 12807004: move impl of AdvancedTypefaceMetrics into typeface (3) (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
OLDNEW
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_
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 }; 46 };
47 47
48 class SkTypeface_FreeType : public SkTypeface { 48 class SkTypeface_FreeType : public SkTypeface {
49 protected: 49 protected:
50 SkTypeface_FreeType(Style style, SkFontID uniqueID, bool isFixedWidth) 50 SkTypeface_FreeType(Style style, SkFontID uniqueID, bool isFixedWidth)
51 : INHERITED(style, uniqueID, isFixedWidth) {} 51 : INHERITED(style, uniqueID, isFixedWidth) {}
52 52
53 virtual SkScalerContext* onCreateScalerContext( 53 virtual SkScalerContext* onCreateScalerContext(
54 const SkDescriptor*) const SK_OVERRIDE; 54 const SkDescriptor*) const SK_OVERRIDE;
55 virtual void onFilterRec(SkScalerContextRec*) const SK_OVERRIDE; 55 virtual void onFilterRec(SkScalerContextRec*) const SK_OVERRIDE;
56 56 virtual SkAdvancedTypefaceMetrics* onGetAdvancedTypefaceMetrics(
57 SkAdvancedTypefaceMetrics::PerGlyphInfo,
58 const uint32_t*, uint32_t) const SK_OVERRIDE;
57 private: 59 private:
58 typedef SkTypeface INHERITED; 60 typedef SkTypeface INHERITED;
59 }; 61 };
60 62
61 #endif // SKFONTHOST_FREETYPE_COMMON_H_ 63 #endif // SKFONTHOST_FREETYPE_COMMON_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698