Lines Matching refs:AutoCFRelease
47 // CFSafeRelease(autoCFRelease) through implicit conversion.
55 // CFSafeRetain(autoCFRelease) through implicit conversion.
63 template<typename CFRef> class AutoCFRelease : private SkNoncopyable {
65 explicit AutoCFRelease(CFRef cfRef = NULL) : fCFRef(cfRef) { }
66 ~AutoCFRelease() { CFSafeRelease(fCFRef); }
74 AutoCFRelease& operator =(CFRef that) {
97 AutoCFRelease<CFDataRef> fCFData;
305 AutoCFRelease<CGColorSpaceRef> colorspace(CGColorSpaceCreateDeviceRGB());
306 AutoCFRelease<CGContextRef> cgContext(CGBitmapContextCreate(&rgb, 1, 1, 8, 4,
334 AutoCFRelease<CGColorSpaceRef> fRGBSpace;
337 AutoCFRelease<CGContextRef> fCG;
383 AutoCFRelease<CGFontRef> cgFont(CTFontCopyGraphicsFont(fontRef, NULL));
409 AutoCFRelease<CTFontRef> fFontRef;
438 AutoCFRelease<CFStringRef> cfFontName(
441 AutoCFRelease<CFNumberRef> cfFontTraits(
444 AutoCFRelease<CFMutableDictionaryRef> cfAttributes(
449 AutoCFRelease<CFMutableDictionaryRef> cfTraits(
461 AutoCFRelease<CTFontDescriptorRef> ctFontDesc(
467 AutoCFRelease<CTFontRef> ctNamed(CTFontCreateWithName(cfFontName, 1, NULL));
629 AutoCFRelease<CTFontRef> fCTFont;
630 AutoCFRelease<CTFontRef> fCTVerticalFont; // for vertical advance
631 AutoCFRelease<CGFontRef> fCGFont;
677 AutoCFRelease<CTFontDescriptorRef> ctFontDesc;
679 AutoCFRelease<CFMutableDictionaryRef> cfAttributes(CFDictionaryCreateMutable(
685 AutoCFRelease<CFNumberRef> cfVertical(CFNumberCreate(
955 AutoCFRelease<CGPathRef> path(CTFontCreatePathForGlyph(fCTFont, cgGlyph, NULL));
1267 AutoCFRelease<CGPathRef> cgPath(CTFontCreatePathForGlyph(font, cgGlyph, NULL));
1351 AutoCFRelease<CGFontRef> cg(CGFontCreateWithDataProvider(provider));
1360 AutoCFRelease<CGDataProviderRef> provider(SkCreateDataProviderFromStream(stream));
1368 AutoCFRelease<CGDataProviderRef> provider(CGDataProviderCreateWithFilename(path));
1401 AutoCFRelease<CFCharacterSetRef> charSet(CTFontCopyCharacterSet(ctFont));
1407 AutoCFRelease<CFDataRef> bitmap(CFCharacterSetCreateBitmapRepresentation(kCFAllocatorDefault,
1470 AutoCFRelease<CTFontRef> ctFont(CTFontCreateCopyWithAttributes(
1475 AutoCFRelease<CFStringRef> fontName(CTFontCopyPostScriptName(ctFont));
1581 AutoCFRelease<CFNumberRef> fontFormatRef(
1800 AutoCFRelease<CFArrayRef> cfArray(CTFontCopyAvailableTables(ctFont,
1810 AutoCFRelease<CFArrayRef> cfArray(CTFontCopyAvailableTables(ctFont,
1832 AutoCFRelease<CGFontRef> cgFont(CTFontCopyGraphicsFont(ctFont, NULL));
1840 AutoCFRelease<CFDataRef> srcData(copyTableFromFont(ctFont, tag));
1850 AutoCFRelease<CFDataRef> srcData(copyTableFromFont(ctFont, tag));