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

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

Issue 1947153002: Modernize SkMutex and SkSemaphore. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: this time no destructors Created 4 years, 7 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 | « no previous file | include/private/SkMutex.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 SkFontConfigInterface_DEFINED 8 #ifndef SkFontConfigInterface_DEFINED
9 #define SkFontConfigInterface_DEFINED 9 #define SkFontConfigInterface_DEFINED
10 10
11 #include "SkDataTable.h" 11 #include "SkDataTable.h"
12 #include "SkFontStyle.h" 12 #include "SkFontStyle.h"
13 #include "SkRefCnt.h" 13 #include "SkRefCnt.h"
14 #include "SkTypeface.h" 14 #include "SkTypeface.h"
15 15
16 struct SkBaseMutex;
17 class SkFontMgr; 16 class SkFontMgr;
18 17
19 /** 18 /**
20 * \class SkFontConfigInterface 19 * \class SkFontConfigInterface
21 * 20 *
22 * A simple interface for remotable font management. 21 * A simple interface for remotable font management.
23 * The global instance can be found with RefGlobal(). 22 * The global instance can be found with RefGlobal().
24 */ 23 */
25 class SK_API SkFontConfigInterface : public SkRefCnt { 24 class SK_API SkFontConfigInterface : public SkRefCnt {
26 public: 25 public:
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 // New APIS, which have default impls for now (which do nothing) 114 // New APIS, which have default impls for now (which do nothing)
116 115
117 virtual SkDataTable* getFamilyNames() { return SkDataTable::NewEmpty(); } 116 virtual SkDataTable* getFamilyNames() { return SkDataTable::NewEmpty(); }
118 typedef SkRefCnt INHERITED; 117 typedef SkRefCnt INHERITED;
119 }; 118 };
120 119
121 /** Creates a SkFontMgr which wraps a SkFontConfigInterface. */ 120 /** Creates a SkFontMgr which wraps a SkFontConfigInterface. */
122 SK_API SkFontMgr* SkFontMgr_New_FCI(SkFontConfigInterface* fci); 121 SK_API SkFontMgr* SkFontMgr_New_FCI(SkFontConfigInterface* fci);
123 122
124 #endif 123 #endif
OLDNEW
« no previous file with comments | « no previous file | include/private/SkMutex.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698