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

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

Issue 18461007: Fix two leaks & improve leak tracking (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « include/lazy/SkPurgeableImageCache.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 /** 17 /**
18 * \class SkFontConfigInterface 18 * \class SkFontConfigInterface
19 * 19 *
20 * Provides SkFontHost clients with access to fontconfig services. They will 20 * Provides SkFontHost clients with access to fontconfig services. They will
21 * access the global instance found in RefGlobal(). 21 * access the global instance found in RefGlobal().
22 */ 22 */
23 class SK_API SkFontConfigInterface : public SkRefCnt { 23 class SK_API SkFontConfigInterface : public SkRefCnt {
24 public: 24 public:
25 SK_DECLARE_INST_COUNT(SkFontConfigInterface)
26
25 /** 27 /**
26 * Returns the global SkFontConfigInterface instance, and if it is not 28 * Returns the global SkFontConfigInterface instance, and if it is not
27 * NULL, calls ref() on it. The caller must balance this with a call to 29 * NULL, calls ref() on it. The caller must balance this with a call to
28 * unref(). 30 * unref().
29 */ 31 */
30 static SkFontConfigInterface* RefGlobal(); 32 static SkFontConfigInterface* RefGlobal();
31 33
32 /** 34 /**
33 * Replace the current global instance with the specified one, safely 35 * Replace the current global instance with the specified one, safely
34 * ref'ing the new instance, and unref'ing the previous. Returns its 36 * ref'ing the new instance, and unref'ing the previous. Returns its
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 102
101 virtual SkDataTable* getFamilyNames() { return SkDataTable::NewEmpty(); } 103 virtual SkDataTable* getFamilyNames() { return SkDataTable::NewEmpty(); }
102 virtual bool matchFamilySet(const char inFamilyName[], 104 virtual bool matchFamilySet(const char inFamilyName[],
103 SkString* outFamilyName, 105 SkString* outFamilyName,
104 SkTArray<FontIdentity>*) { 106 SkTArray<FontIdentity>*) {
105 return false; 107 return false;
106 } 108 }
107 }; 109 };
108 110
109 #endif 111 #endif
OLDNEW
« no previous file with comments | « include/lazy/SkPurgeableImageCache.h ('k') | include/ports/SkFontMgr.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698