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

Side by Side Diff: src/ports/SkTypeface_win_dw.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/ports/SkScalerContext_win_dw.cpp ('k') | src/ports/SkTypeface_win_dw.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 SkTypeface_win_dw_DEFINED 8 #ifndef SkTypeface_win_dw_DEFINED
9 #define SkTypeface_win_dw_DEFINED 9 #define SkTypeface_win_dw_DEFINED
10 10
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 } 89 }
90 if (fDWriteFontFileLoader.get()) { 90 if (fDWriteFontFileLoader.get()) {
91 HRV(fFactory->UnregisterFontFileLoader(fDWriteFontFileLoader.get())) ; 91 HRV(fFactory->UnregisterFontFileLoader(fDWriteFontFileLoader.get())) ;
92 } 92 }
93 93
94 //SkTypefaceCache::Remove(this); 94 //SkTypefaceCache::Remove(this);
95 INHERITED::weak_dispose(); 95 INHERITED::weak_dispose();
96 } 96 }
97 97
98 SkStreamAsset* onOpenStream(int* ttcIndex) const override; 98 SkStreamAsset* onOpenStream(int* ttcIndex) const override;
99 SkScalerContext* onCreateScalerContext(const SkDescriptor*) const override; 99 SkScalerContext* onCreateScalerContext(const SkScalerContextEffects&,
100 const SkDescriptor*) const override;
100 void onFilterRec(SkScalerContextRec*) const override; 101 void onFilterRec(SkScalerContextRec*) const override;
101 SkAdvancedTypefaceMetrics* onGetAdvancedTypefaceMetrics( 102 SkAdvancedTypefaceMetrics* onGetAdvancedTypefaceMetrics(
102 PerGlyphInfo, const uint32_t*, uint32_t) const o verride; 103 PerGlyphInfo, const uint32_t*, uint32_t) const o verride;
103 void onGetFontDescriptor(SkFontDescriptor*, bool*) const override; 104 void onGetFontDescriptor(SkFontDescriptor*, bool*) const override;
104 virtual int onCharsToGlyphs(const void* chars, Encoding encoding, 105 virtual int onCharsToGlyphs(const void* chars, Encoding encoding,
105 uint16_t glyphs[], int glyphCount) const overrid e; 106 uint16_t glyphs[], int glyphCount) const overrid e;
106 int onCountGlyphs() const override; 107 int onCountGlyphs() const override;
107 int onGetUPEM() const override; 108 int onGetUPEM() const override;
108 void onGetFamilyName(SkString* familyName) const override; 109 void onGetFamilyName(SkString* familyName) const override;
109 SkTypeface::LocalizedStrings* onCreateFamilyNameIterator() const override; 110 SkTypeface::LocalizedStrings* onCreateFamilyNameIterator() const override;
110 int onGetTableTags(SkFontTableTag tags[]) const override; 111 int onGetTableTags(SkFontTableTag tags[]) const override;
111 virtual size_t onGetTableData(SkFontTableTag, size_t offset, 112 virtual size_t onGetTableData(SkFontTableTag, size_t offset,
112 size_t length, void* data) const override; 113 size_t length, void* data) const override;
113 114
114 private: 115 private:
115 typedef SkTypeface INHERITED; 116 typedef SkTypeface INHERITED;
116 }; 117 };
117 118
118 #endif 119 #endif
OLDNEW
« no previous file with comments | « src/ports/SkScalerContext_win_dw.cpp ('k') | src/ports/SkTypeface_win_dw.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698