diff options
author | skia.committer@gmail.com <skia.committer@gmail.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-03-30 07:01:27 +0000 |
---|---|---|
committer | skia.committer@gmail.com <skia.committer@gmail.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-03-30 07:01:27 +0000 |
commit | d55846d100bb09448b398b41798bd4ab100a753a (patch) | |
tree | 5d4285b943f411b4badc52e4ecf9dba915b82dff /src | |
parent | b79d865f03456b67273b568fa5046b8ba01e365a (diff) |
Sanitizing source files in Skia_Periodic_House_Keeping
git-svn-id: http://skia.googlecode.com/svn/trunk@8452 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src')
-rwxr-xr-x | src/ports/SkFontHost_mac.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/ports/SkFontHost_mac.cpp b/src/ports/SkFontHost_mac.cpp index 309dabc891..a706e05bcb 100755 --- a/src/ports/SkFontHost_mac.cpp +++ b/src/ports/SkFontHost_mac.cpp @@ -361,7 +361,7 @@ private: } }; -Offscreen::Offscreen() : fRGBSpace(NULL), fCG(NULL), +Offscreen::Offscreen() : fRGBSpace(NULL), fCG(NULL), fDoAA(false), fDoLCD(false) { fSize.set(0, 0); } @@ -2056,7 +2056,7 @@ private: CTFontDescriptorRef findMatchingDesc(const SkFontStyle& pattern) const { int bestMetric = SK_MaxS32; CTFontDescriptorRef bestDesc = NULL; - + for (int i = 0; i < fCount; ++i) { CTFontDescriptorRef desc = (CTFontDescriptorRef)CFArrayGetValueAtIndex(fArray, i); int metric = compute_metric(pattern, desc2fontstyle(desc)); @@ -2094,14 +2094,14 @@ class SkFontMgr_Mac : public SkFontMgr { CFDictionaryCreateMutable(kCFAllocatorDefault, 0, &kCFTypeDictionaryKeyCallBacks, &kCFTypeDictionaryValueCallBacks)); - + CFDictionaryAddValue(cfAttr, kCTFontFamilyNameAttribute, cfFamilyName); - + AutoCFRelease<CTFontDescriptorRef> desc( CTFontDescriptorCreateWithAttributes(cfAttr)); return SkNEW_ARGS(SkFontStyleSet_Mac, (cfFamilyName, desc)); } - + public: SkFontMgr_Mac() : fCount(0), fNames(NULL) {} @@ -2131,12 +2131,12 @@ protected: } return CreateSet(this->stringAt(index)); } - + virtual SkFontStyleSet* onMatchFamily(const char familyName[]) SK_OVERRIDE { AutoCFRelease<CFStringRef> cfName(make_CFString(familyName)); return CreateSet(cfName); } - + virtual SkTypeface* onMatchFamilyStyle(const char familyName[], const SkFontStyle&) SK_OVERRIDE { return NULL; |