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

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

Issue 1880873002: Revert "Revert of Pass effects directly to fontcache (patchset #8 id:140001 of https://codereview.c… (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 8 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
« no previous file with comments | « src/fonts/SkRandomScalerContext.cpp ('k') | src/fonts/SkTestScalerContext.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 * Copyright 2014 Google Inc. 2 * Copyright 2014 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef SkTestScalerContext_DEFINED 8 #ifndef SkTestScalerContext_DEFINED
9 #define SkTestScalerContext_DEFINED 9 #define SkTestScalerContext_DEFINED
10 10
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 public: 60 public:
61 SkTestTypeface(SkTestFont*, const SkFontStyle& style); 61 SkTestTypeface(SkTestFont*, const SkFontStyle& style);
62 virtual ~SkTestTypeface() { 62 virtual ~SkTestTypeface() {
63 SkSafeUnref(fTestFont); 63 SkSafeUnref(fTestFont);
64 } 64 }
65 void getAdvance(SkGlyph* glyph); 65 void getAdvance(SkGlyph* glyph);
66 void getFontMetrics(SkPaint::FontMetrics* metrics); 66 void getFontMetrics(SkPaint::FontMetrics* metrics);
67 void getMetrics(SkGlyph* glyph); 67 void getMetrics(SkGlyph* glyph);
68 void getPath(const SkGlyph& glyph, SkPath* path); 68 void getPath(const SkGlyph& glyph, SkPath* path);
69 protected: 69 protected:
70 SkScalerContext* onCreateScalerContext(const SkDescriptor* desc) const overr ide; 70 SkScalerContext* onCreateScalerContext(const SkScalerContextEffects&,
71 const SkDescriptor* desc) const overr ide;
71 void onFilterRec(SkScalerContextRec* rec) const override; 72 void onFilterRec(SkScalerContextRec* rec) const override;
72 SkAdvancedTypefaceMetrics* onGetAdvancedTypefaceMetrics( 73 SkAdvancedTypefaceMetrics* onGetAdvancedTypefaceMetrics(
73 PerGlyphInfo, 74 PerGlyphInfo,
74 const uint32_t* glyphIDs, 75 const uint32_t* glyphIDs,
75 uint32_t glyphIDsCount) const override; 76 uint32_t glyphIDsCount) const override;
76 77
77 SkStreamAsset* onOpenStream(int* ttcIndex) const override { 78 SkStreamAsset* onOpenStream(int* ttcIndex) const override {
78 return nullptr; 79 return nullptr;
79 } 80 }
80 81
(...skipping 23 matching lines...) Expand all
104 return 0; 105 return 0;
105 } 106 }
106 private: 107 private:
107 SkTestFont* fTestFont; 108 SkTestFont* fTestFont;
108 friend class SkTestScalerContext; 109 friend class SkTestScalerContext;
109 }; 110 };
110 111
111 SkTypeface* CreateTestTypeface(const char* name, SkTypeface::Style style); 112 SkTypeface* CreateTestTypeface(const char* name, SkTypeface::Style style);
112 113
113 #endif 114 #endif
OLDNEW
« no previous file with comments | « src/fonts/SkRandomScalerContext.cpp ('k') | src/fonts/SkTestScalerContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698