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

Side by Side Diff: src/fonts/SkGScalerContext.h

Issue 14890016: start a wrapper for color fonts (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 6 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
(Empty)
1
bungeman-skia 2013/05/29 21:21:14 Copyright?
reed1 2013/05/30 16:04:29 Done.
2
3
4 #ifndef SkGScalerContext_DEFINED
5 #define SkGScalerContext_DEFINED
6
7 #include "SkScalerContext.h"
8 #include "SkTypeface.h"
9
10 class SkGTypeface : public SkTypeface {
11 public:
12 SkGTypeface(SkTypeface* proxy, const SkPaint&);
13 virtual ~SkGTypeface();
14
15 SkTypeface* proxy() const { return fProxy; }
16 const SkPaint& paint() const { return fPaint; }
17
18 protected:
19 virtual SkScalerContext* onCreateScalerContext(const SkDescriptor*) const SK _OVERRIDE;
20 virtual void onFilterRec(SkScalerContextRec*) const SK_OVERRIDE;
21 virtual SkAdvancedTypefaceMetrics* onGetAdvancedTypefaceMetrics(
22 SkAdvancedTy pefaceMetrics::PerGlyphInfo,
bungeman-skia 2013/05/29 21:21:14 These lines are also rather long.
reed1 2013/05/30 16:04:29 Done.
23 const uint32 _t* glyphIDs,
24 uint32_t gly phIDsCount) const SK_OVERRIDE;
25 virtual SkStream* onOpenStream(int* ttcIndex) const SK_OVERRIDE;
26 virtual void onGetFontDescriptor(SkFontDescriptor*, bool* isLocal) const SK_ OVERRIDE;
27
28 virtual int onGetUPEM() const SK_OVERRIDE;
29
30 virtual int onGetTableTags(SkFontTableTag tags[]) const SK_OVERRIDE;
31 virtual size_t onGetTableData(SkFontTableTag, size_t offset,
32 size_t length, void* data) const SK_OVERRIDE;
33
34 private:
35 SkTypeface* fProxy;
36 SkPaint fPaint;
37 };
38
39 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698