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

Side by Side Diff: include/ports/SkRemotableFontMgr.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/ports/SkFontMgr_indirect.h ('k') | src/core/SkFontHost.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 SkRemotableFontMgr_DEFINED 8 #ifndef SkRemotableFontMgr_DEFINED
9 #define SkRemotableFontMgr_DEFINED 9 #define SkRemotableFontMgr_DEFINED
10 10
(...skipping 28 matching lines...) Expand all
39 39
40 SkRemotableFontIdentitySet(int count, SkFontIdentity** data); 40 SkRemotableFontIdentitySet(int count, SkFontIdentity** data);
41 41
42 int count() const { return fCount; } 42 int count() const { return fCount; }
43 const SkFontIdentity& at(int index) const { return fData[index]; } 43 const SkFontIdentity& at(int index) const { return fData[index]; }
44 44
45 static SkRemotableFontIdentitySet* NewEmpty(); 45 static SkRemotableFontIdentitySet* NewEmpty();
46 46
47 private: 47 private:
48 SkRemotableFontIdentitySet() : fCount(0), fData() { } 48 SkRemotableFontIdentitySet() : fCount(0), fData() { }
49 static void NewEmptyImpl(int); 49 static SkRemotableFontIdentitySet* NewEmptyImpl();
50 50
51 int fCount; 51 int fCount;
52 SkAutoTMalloc<SkFontIdentity> fData; 52 SkAutoTMalloc<SkFontIdentity> fData;
53 53
54 typedef SkRefCnt INHERITED; 54 typedef SkRefCnt INHERITED;
55 }; 55 };
56 56
57 class SK_API SkRemotableFontMgr : public SkRefCnt { 57 class SK_API SkRemotableFontMgr : public SkRefCnt {
58 public: 58 public:
59 SK_DECLARE_INST_COUNT(SkRemotableFontMgr) 59 SK_DECLARE_INST_COUNT(SkRemotableFontMgr)
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 * 143 *
144 * The caller must unref() the returned object. 144 * The caller must unref() the returned object.
145 */ 145 */
146 virtual SkStreamAsset* getData(int dataId) const = 0; 146 virtual SkStreamAsset* getData(int dataId) const = 0;
147 147
148 private: 148 private:
149 typedef SkRefCnt INHERITED; 149 typedef SkRefCnt INHERITED;
150 }; 150 };
151 151
152 #endif 152 #endif
OLDNEW
« no previous file with comments | « include/ports/SkFontMgr_indirect.h ('k') | src/core/SkFontHost.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698