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

Side by Side Diff: src/core/SkAdvancedTypefaceMetrics.h

Issue 1217573002: remove SkInstCnt (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: Created 5 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 | « samplecode/SampleApp.h ('k') | src/core/SkBBoxHierarchy.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 /* 2 /*
3 * Copyright 2011 Google Inc. 3 * Copyright 2011 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 9
10 #ifndef SkAdvancedTypefaceMetrics_DEFINED 10 #ifndef SkAdvancedTypefaceMetrics_DEFINED
11 #define SkAdvancedTypefaceMetrics_DEFINED 11 #define SkAdvancedTypefaceMetrics_DEFINED
12 12
13 #include "SkRect.h" 13 #include "SkRect.h"
14 #include "SkRefCnt.h" 14 #include "SkRefCnt.h"
15 #include "SkString.h" 15 #include "SkString.h"
16 #include "SkTDArray.h" 16 #include "SkTDArray.h"
17 #include "SkTemplates.h" 17 #include "SkTemplates.h"
18 18
19 /** \class SkAdvancedTypefaceMetrics 19 /** \class SkAdvancedTypefaceMetrics
20 20
21 The SkAdvancedTypefaceMetrics class is used by the PDF backend to correctly 21 The SkAdvancedTypefaceMetrics class is used by the PDF backend to correctly
22 embed typefaces. This class is created and filled in with information by 22 embed typefaces. This class is created and filled in with information by
23 SkTypeface::getAdvancedTypefaceMetrics. 23 SkTypeface::getAdvancedTypefaceMetrics.
24 */ 24 */
25 25
26 class SkAdvancedTypefaceMetrics : public SkRefCnt { 26 class SkAdvancedTypefaceMetrics : public SkRefCnt {
27 public: 27 public:
28 SK_DECLARE_INST_COUNT(SkAdvancedTypefaceMetrics) 28
29 29
30 SkString fFontName; 30 SkString fFontName;
31 31
32 enum FontType { 32 enum FontType {
33 kType1_Font, 33 kType1_Font,
34 kType1CID_Font, 34 kType1CID_Font,
35 kCFF_Font, 35 kCFF_Font,
36 kTrueType_Font, 36 kTrueType_Font,
37 kOther_Font, 37 kOther_Font,
38 }; 38 };
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 SkAdvancedTypefaceMetrics::AdvanceMetric<Data>* getAdvanceData( 143 SkAdvancedTypefaceMetrics::AdvanceMetric<Data>* getAdvanceData(
144 FontHandle fontHandle, 144 FontHandle fontHandle,
145 int num_glyphs, 145 int num_glyphs,
146 const uint32_t* glyphIDs, 146 const uint32_t* glyphIDs,
147 uint32_t glyphIDsCount, 147 uint32_t glyphIDsCount,
148 bool (*getAdvance)(FontHandle fontHandle, int gId, Data* data)); 148 bool (*getAdvance)(FontHandle fontHandle, int gId, Data* data));
149 149
150 } // namespace skia_advanced_typeface_metrics_utils 150 } // namespace skia_advanced_typeface_metrics_utils
151 151
152 #endif 152 #endif
OLDNEW
« no previous file with comments | « samplecode/SampleApp.h ('k') | src/core/SkBBoxHierarchy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698