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

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 /*
2 * Copyright 2013 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8 #ifndef SkGScalerContext_DEFINED
9 #define SkGScalerContext_DEFINED
10
11 #include "SkScalerContext.h"
12 #include "SkTypeface.h"
13
14 class SkGTypeface : public SkTypeface {
15 public:
16 SkGTypeface(SkTypeface* proxy, const SkPaint&);
17 virtual ~SkGTypeface();
18
19 SkTypeface* proxy() const { return fProxy; }
20 const SkPaint& paint() const { return fPaint; }
21
22 protected:
23 virtual SkScalerContext* onCreateScalerContext(const SkDescriptor*) const SK _OVERRIDE;
24 virtual void onFilterRec(SkScalerContextRec*) const SK_OVERRIDE;
25 virtual SkAdvancedTypefaceMetrics* onGetAdvancedTypefaceMetrics(
26 SkAdvancedTypefaceMetrics::PerGlyphInfo,
27 const uint32_t* glyphIDs,
28 uint32_t glyphIDsCount) const SK_OVERRIDE;
29 virtual SkStream* onOpenStream(int* ttcIndex) const SK_OVERRIDE;
30 virtual void onGetFontDescriptor(SkFontDescriptor*, bool* isLocal) const SK_ OVERRIDE;
31
32 virtual int onGetUPEM() const SK_OVERRIDE;
33
34 virtual int onGetTableTags(SkFontTableTag tags[]) const SK_OVERRIDE;
35 virtual size_t onGetTableData(SkFontTableTag, size_t offset,
36 size_t length, void* data) const SK_OVERRIDE;
37
38 private:
39 SkTypeface* fProxy;
40 SkPaint fPaint;
41 };
42
43 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698