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

Unified Diff: include/core/SkAdvancedTypefaceMetrics.h

Issue 23621005: Replace SkTScopedPtr with SkAutoTDelete in Skia. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: port class comment Created 7 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gyp/public_headers.gypi ('k') | include/core/SkTScopedPtr.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkAdvancedTypefaceMetrics.h
diff --git a/include/core/SkAdvancedTypefaceMetrics.h b/include/core/SkAdvancedTypefaceMetrics.h
index acfd86e218dafd808c0a17864d4772678af03981..e75365ba31ca013b6b52e1e5250c157eb950a4af 100755
--- a/include/core/SkAdvancedTypefaceMetrics.h
+++ b/include/core/SkAdvancedTypefaceMetrics.h
@@ -15,7 +15,6 @@
#include "SkString.h"
#include "SkTDArray.h"
#include "SkTemplates.h"
-#include "SkTScopedPtr.h"
/** \class SkAdvancedTypefaceMetrics
@@ -90,7 +89,7 @@ public:
uint16_t fStartId;
uint16_t fEndId;
SkTDArray<Data> fAdvance;
- SkTScopedPtr<AdvanceMetric<Data> > fNext;
+ SkAutoTDelete<AdvanceMetric<Data> > fNext;
};
struct VerticalMetric {
@@ -102,12 +101,12 @@ public:
typedef AdvanceMetric<VerticalMetric> VerticalAdvanceRange;
// This is indexed by glyph id.
- SkTScopedPtr<WidthRange> fGlyphWidths;
+ SkAutoTDelete<WidthRange> fGlyphWidths;
// Only used for Vertical CID fonts.
- SkTScopedPtr<VerticalAdvanceRange> fVerticalMetrics;
+ SkAutoTDelete<VerticalAdvanceRange> fVerticalMetrics;
// The names of each glyph, only populated for postscript fonts.
- SkTScopedPtr<SkAutoTArray<SkString> > fGlyphNames;
+ SkAutoTDelete<SkAutoTArray<SkString> > fGlyphNames;
// The mapping from glyph to Unicode, only populated if
// kToUnicode_PerGlyphInfo is passed to GetAdvancedTypefaceMetrics.
@@ -125,7 +124,7 @@ void resetRange(SkAdvancedTypefaceMetrics::AdvanceMetric<Data>* range,
template <typename Data>
SkAdvancedTypefaceMetrics::AdvanceMetric<Data>* appendRange(
- SkTScopedPtr<SkAdvancedTypefaceMetrics::AdvanceMetric<Data> >* nextSlot,
+ SkAutoTDelete<SkAdvancedTypefaceMetrics::AdvanceMetric<Data> >* nextSlot,
int startId);
template <typename Data>
« no previous file with comments | « gyp/public_headers.gypi ('k') | include/core/SkTScopedPtr.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698