Lines Matching refs:AutoCFRelease
97 template<typename CFRef> class AutoCFRelease : private SkNoncopyable { class
99 explicit AutoCFRelease(CFRef cfRef = nullptr) : fCFRef(cfRef) { } in AutoCFRelease() function in AutoCFRelease
100 ~AutoCFRelease() { CFSafeRelease(fCFRef); } in ~AutoCFRelease()
138 AutoCFRelease<CFDataRef> fCFData;
313 AutoCFRelease<CGColorSpaceRef> colorspace(CGColorSpaceCreateDeviceRGB()); in supports_LCD()
314 AutoCFRelease<CGContextRef> cgContext(CGBitmapContextCreate(&rgb, 1, 1, 8, 4, in supports_LCD()
349 AutoCFRelease<CGColorSpaceRef> fRGBSpace;
352 AutoCFRelease<CGContextRef> fCG;
392 AutoCFRelease<CFDictionaryRef> dict( in fontstyle_from_descriptor()
457 AutoCFRelease<CTFontRef> fFontRef;
458 AutoCFRelease<CFTypeRef> fOriginatingCFTypeRef;
517 AutoCFRelease<CFStringRef> cfFontName(make_CFString(familyName)); in NewFromName()
519 AutoCFRelease<CFNumberRef> cfFontTraits( in NewFromName()
522 AutoCFRelease<CFMutableDictionaryRef> cfAttributes( in NewFromName()
527 AutoCFRelease<CFMutableDictionaryRef> cfTraits( in NewFromName()
541 AutoCFRelease<CTFontDescriptorRef> ctFontDesc( in NewFromName()
547 AutoCFRelease<CTFontRef> ctFont(CTFontCreateWithFontDescriptor(ctFontDesc, 0, nullptr)); in NewFromName()
708 AutoCFRelease<CTFontRef> fCTFont;
714 AutoCFRelease<CGFontRef> fCGFont;
735 AutoCFRelease<CGFontRef> baseCGFont(CTFontCopyGraphicsFont(baseFont, nullptr)); in ctfont_create_exact_copy()
1098 AutoCFRelease<CGPathRef> path(CTFontCreatePathForGlyph(fCTFont, cgGlyph, nullptr)); in generateMetrics()
1376 AutoCFRelease<CGPathRef> cgPath(CTFontCreatePathForGlyph(fCTFont, cgGlyph, &xform)); in generatePath()
1462 AutoCFRelease<CGFontRef> cg(CGFontCreateWithDataProvider(provider)); in create_from_dataProvider()
1496 AutoCFRelease<CFCharacterSetRef> charSet(CTFontCopyCharacterSet(ctFont)); in populate_glyph_to_unicode()
1502 AutoCFRelease<CFDataRef> bitmap(CFCharacterSetCreateBitmapRepresentation(kCFAllocatorDefault, in populate_glyph_to_unicode()
1566 AutoCFRelease<CTFontRef> ctFont(ctfont_create_exact_copy( in onGetAdvancedTypefaceMetrics()
1572 AutoCFRelease<CFStringRef> fontName(CTFontCopyPostScriptName(ctFont)); in onGetAdvancedTypefaceMetrics()
1664 AutoCFRelease<CFNumberRef> fontFormatRef( in get_font_type_tag()
1812 AutoCFRelease<CGFontRef> cgFont(CTFontCopyGraphicsFont(fFontRef, nullptr)); in get_variations()
1814 AutoCFRelease<CFDictionaryRef> cgVariations(CGFontCopyVariations(cgFont)); in get_variations()
1820 AutoCFRelease<CFArrayRef> cgAxes(CGFontCopyVariationAxes(cgFont)); in get_variations()
1874 AutoCFRelease<CGFontRef> cgFont(CTFontCopyGraphicsFont(fFontRef, nullptr)); in onGetUPEM()
1882 AutoCFRelease<CFStringRef> cfLanguage; in onCreateFamilyNameIterator()
1883 AutoCFRelease<CFStringRef> cfFamilyName( in onCreateFamilyNameIterator()
1909 AutoCFRelease<CGFontRef> cgFont(CTFontCopyGraphicsFont(ctFont, nullptr)); in copyTableFromFont()
1916 AutoCFRelease<CFArrayRef> cfArray(CTFontCopyAvailableTables(fFontRef, in onGetTableTags()
1933 AutoCFRelease<CFDataRef> srcData(copyTableFromFont(fFontRef, tag)); in onGetTableData()
2155 AutoCFRelease<CFStringRef> ref((CFStringRef)CTFontDescriptorCopyAttribute(desc, name)); in find_desc_str()
2189 AutoCFRelease<CTFontRef> ctFont(CTFontCreateWithFontDescriptor(desc, 0, nullptr)); in createFromDesc()
2287 AutoCFRelease<CFMutableDictionaryRef> cfAttr( in CreateSet()
2294 AutoCFRelease<CTFontDescriptorRef> desc( in CreateSet()
2329 AutoCFRelease<CFStringRef> cfName(make_CFString(familyName)); in onMatchFamily()
2351 AutoCFRelease<CGDataProviderRef> pr(SkCreateDataProviderFromData(data)); in onCreateFromData()
2359 AutoCFRelease<CGDataProviderRef> pr(SkCreateDataProviderFromStream(stream)); in onCreateFromStream()
2393 AutoCFRelease<CFArrayRef> cgAxes(CGFontCopyVariationAxes(cg)); in get_axes()
2404 AutoCFRelease<CTFontRef> ct(CTFontCreateWithGraphicsFont(cg, 0, nullptr, nullptr)); in get_axes()
2405 AutoCFRelease<CFArrayRef> ctAxes(CTFontCopyVariationAxes(ct)); in get_axes()
2478 AutoCFRelease<CGDataProviderRef> provider(SkCreateDataProviderFromStream(s)); in onCreateFromStream()
2482 AutoCFRelease<CGFontRef> cg(CGFontCreateWithDataProvider(provider)); in onCreateFromStream()
2487 AutoCFRelease<CFDictionaryRef> cgVariations(get_axes(cg, params)); in onCreateFromStream()
2491 AutoCFRelease<CGFontRef> cgVariant; in onCreateFromStream()
2506 AutoCFRelease<CFArrayRef> cgAxes(CGFontCopyVariationAxes(cg)); in get_axes()
2561 AutoCFRelease<CGDataProviderRef> provider(SkCreateDataProviderFromStream(stream)); in onCreateFromFontData()
2565 AutoCFRelease<CGFontRef> cg(CGFontCreateWithDataProvider(provider)); in onCreateFromFontData()
2570 AutoCFRelease<CFDictionaryRef> cgVariations(get_axes(cg, fontData)); in onCreateFromFontData()
2574 AutoCFRelease<CGFontRef> cgVariant; in onCreateFromFontData()
2589 AutoCFRelease<CGDataProviderRef> pr(CGDataProviderCreateWithFilename(path)); in onCreateFromFile()