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

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

Issue 1217573002: remove SkInstCnt (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: Created 5 years, 5 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/images/SkMovie.h ('k') | include/ports/SkFontMgr.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 "SkTArray.h" 14 #include "SkTArray.h"
15 #include "SkTypeface.h" 15 #include "SkTypeface.h"
16 16
17 struct SkBaseMutex; 17 struct SkBaseMutex;
18 18
19 /** 19 /**
20 * \class SkFontConfigInterface 20 * \class SkFontConfigInterface
21 * 21 *
22 * A simple interface for remotable font management. 22 * A simple interface for remotable font management.
23 * The global instance can be found with RefGlobal(). 23 * The global instance can be found with RefGlobal().
24 */ 24 */
25 class SK_API SkFontConfigInterface : public SkRefCnt { 25 class SK_API SkFontConfigInterface : public SkRefCnt {
26 public: 26 public:
27 SK_DECLARE_INST_COUNT(SkFontConfigInterface) 27
28 28
29 /** 29 /**
30 * Returns the global SkFontConfigInterface instance, and if it is not 30 * Returns the global SkFontConfigInterface instance, and if it is not
31 * NULL, calls ref() on it. The caller must balance this with a call to 31 * NULL, calls ref() on it. The caller must balance this with a call to
32 * unref(). 32 * unref().
33 */ 33 */
34 static SkFontConfigInterface* RefGlobal(); 34 static SkFontConfigInterface* RefGlobal();
35 35
36 /** 36 /**
37 * Replace the current global instance with the specified one, safely 37 * Replace the current global instance with the specified one, safely
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 virtual SkDataTable* getFamilyNames() { return SkDataTable::NewEmpty(); } 106 virtual SkDataTable* getFamilyNames() { return SkDataTable::NewEmpty(); }
107 virtual bool matchFamilySet(const char[] /*inFamilyName*/, 107 virtual bool matchFamilySet(const char[] /*inFamilyName*/,
108 SkString* /*outFamilyName*/, 108 SkString* /*outFamilyName*/,
109 SkTArray<FontIdentity>*) { 109 SkTArray<FontIdentity>*) {
110 return false; 110 return false;
111 } 111 }
112 typedef SkRefCnt INHERITED; 112 typedef SkRefCnt INHERITED;
113 }; 113 };
114 114
115 #endif 115 #endif
OLDNEW
« no previous file with comments | « include/images/SkMovie.h ('k') | include/ports/SkFontMgr.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698