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

Side by Side Diff: include/ports/SkFontMgr.h

Issue 304383005: Port most uses of SkOnce to SkLazyPtr. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: add mutex Created 6 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
« no previous file with comments | « include/core/SkTypeface.h ('k') | include/ports/SkFontMgr_indirect.h » ('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 2013 Google Inc. 2 * Copyright 2013 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 SkFontMgr_DEFINED 8 #ifndef SkFontMgr_DEFINED
9 #define SkFontMgr_DEFINED 9 #define SkFontMgr_DEFINED
10 10
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 const SkFontStyle&) const = 0; 124 const SkFontStyle&) const = 0;
125 125
126 virtual SkTypeface* onCreateFromData(SkData*, int ttcIndex) const = 0; 126 virtual SkTypeface* onCreateFromData(SkData*, int ttcIndex) const = 0;
127 virtual SkTypeface* onCreateFromStream(SkStream*, int ttcIndex) const = 0; 127 virtual SkTypeface* onCreateFromStream(SkStream*, int ttcIndex) const = 0;
128 virtual SkTypeface* onCreateFromFile(const char path[], int ttcIndex) const = 0; 128 virtual SkTypeface* onCreateFromFile(const char path[], int ttcIndex) const = 0;
129 129
130 virtual SkTypeface* onLegacyCreateTypeface(const char familyName[], 130 virtual SkTypeface* onLegacyCreateTypeface(const char familyName[],
131 unsigned styleBits) const = 0; 131 unsigned styleBits) const = 0;
132 private: 132 private:
133 static SkFontMgr* Factory(); // implemented by porting layer 133 static SkFontMgr* Factory(); // implemented by porting layer
134 friend void set_up_default(SkFontMgr** singleton); 134 static SkFontMgr* CreateDefault();
135 135
136 typedef SkRefCnt INHERITED; 136 typedef SkRefCnt INHERITED;
137 }; 137 };
138 138
139 #endif 139 #endif
OLDNEW
« no previous file with comments | « include/core/SkTypeface.h ('k') | include/ports/SkFontMgr_indirect.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698