/external/skia/src/ports/ |
D | SkFontMgr_mac_ct.cpp | 43 static SkUniqueCFRef<CFStringRef> make_CFString(const char s[]) { in make_CFString() 44 return SkUniqueCFRef<CFStringRef>(CFStringCreateWithCString(nullptr, s, kCFStringEncodingUTF8)); in make_CFString() 49 SkUniqueCFRef<CTFontRef> ctFont(CTFontCreateWithFontDescriptor(desc, 0, nullptr)); in create_from_desc() 57 static SkUniqueCFRef<CTFontDescriptorRef> create_descriptor(const char familyName[], in create_descriptor() 59 SkUniqueCFRef<CFMutableDictionaryRef> cfAttributes( in create_descriptor() 64 SkUniqueCFRef<CFMutableDictionaryRef> cfTraits( in create_descriptor() 95 SkUniqueCFRef<CFNumberRef> cfFontTraits( in create_descriptor() 104 SkUniqueCFRef<CFNumberRef> cfFontWeight( in create_descriptor() 111 SkUniqueCFRef<CFNumberRef> cfFontWidth( in create_descriptor() 120 SkUniqueCFRef<CFNumberRef> cfFontSlant( in create_descriptor() [all …]
|
D | SkImageGeneratorCG.cpp | 28 ImageGeneratorCG(const SkImageInfo&, SkUniqueCFRef<CGImageSourceRef> imageSrc, 37 const SkUniqueCFRef<CGImageSourceRef> fImageSrc; 44 static SkUniqueCFRef<CGImageSourceRef> data_to_CGImageSrc(SkData* data) { in data_to_CGImageSrc() 45 SkUniqueCFRef<CGDataProviderRef> cgData( in data_to_CGImageSrc() 50 return SkUniqueCFRef<CGImageSourceRef>( in data_to_CGImageSrc() 57 SkUniqueCFRef<CGImageSourceRef> imageSrc = data_to_CGImageSrc(data.get()); in MakeFromEncodedCG() 62 SkUniqueCFRef<CFDictionaryRef> properties( in MakeFromEncodedCG() 107 ImageGeneratorCG::ImageGeneratorCG(const SkImageInfo& info, SkUniqueCFRef<CGImageSourceRef> src, in ImageGeneratorCG() 139 SkUniqueCFRef<CGImageRef> image(CGImageSourceCreateImageAtIndex(fImageSrc.get(), 0, nullptr)); in onGetPixels()
|
D | SkImageEncoder_CG.cpp | 41 static SkUniqueCFRef<CGDataConsumerRef> SkStreamToCGDataConsumer(SkWStream* stream) { in SkStreamToCGDataConsumer() 47 return SkUniqueCFRef<CGDataConsumerRef>(CGDataConsumerCreate(stream, &procs)); in SkStreamToCGDataConsumer() 50 static SkUniqueCFRef<CGImageDestinationRef> SkStreamToImageDestination(SkWStream* stream, in SkStreamToImageDestination() 52 SkUniqueCFRef<CGDataConsumerRef> consumer = SkStreamToCGDataConsumer(stream); in SkStreamToImageDestination() 57 return SkUniqueCFRef<CGImageDestinationRef>( in SkStreamToImageDestination() 104 SkUniqueCFRef<CGImageDestinationRef> dst = SkStreamToImageDestination(stream, type); in SkEncodeImageWithCG() 109 SkUniqueCFRef<CGImageRef> image(SkCreateCGImageRef(bm)); in SkEncodeImageWithCG()
|
D | SkTypeface_mac_ct.cpp | 81 SkUniqueCFRef<CFStringRef> typeDescription(CFCopyTypeIDDescription(id)); in SkCFTypeIDDescription() 163 SkUniqueCFRef<CFNumberRef> opszValueNumber( in add_opsz_attr() 173 SkUniqueCFRef<CFNumberRef> unscaledTrackingNumber( in add_notrak_attr() 179 SkUniqueCFRef<CTFontRef> SkCTFontCreateExactCopy(CTFontRef baseFont, CGFloat textSize, in SkCTFontCreateExactCopy() 182 SkUniqueCFRef<CFMutableDictionaryRef> attr( in SkCTFontCreateExactCopy() 200 SkUniqueCFRef<CFTypeRef> opsz(CTFontCopyAttribute(baseFont, SkCTFontOpticalSizeAttribute)); in SkCTFontCreateExactCopy() 213 SkUniqueCFRef<CTFontDescriptorRef> desc(CTFontDescriptorCreateWithAttributes(attr.get())); in SkCTFontCreateExactCopy() 215 return SkUniqueCFRef<CTFontRef>( in SkCTFontCreateExactCopy() 231 sk_sp<SkTypeface> SkTypeface_Mac::Make(SkUniqueCFRef<CTFontRef> font, in Make() 241 SkUniqueCFRef<CTFontDescriptorRef> desc(CTFontCopyFontDescriptor(font.get())); in Make() [all …]
|
D | SkTypeface_mac_ct.h | 53 SkUniqueCFRef<CFDictionaryRef> variation; 54 SkUniqueCFRef<CFDictionaryRef> wrongOpszVariation; 60 SkUniqueCFRef<CTFontRef> SkCTFontCreateExactCopy(CTFontRef baseFont, CGFloat textSize, 72 SkTypeface_Mac(SkUniqueCFRef<CTFontRef> fontRef, const SkFontStyle& fs, bool isFixedPitch, in SkTypeface_Mac() 86 static sk_sp<SkTypeface> Make(SkUniqueCFRef<CTFontRef> font, 90 SkUniqueCFRef<CTFontRef> fFontRef;
|
D | SkScalerContext_mac_ct.h | 73 SkUniqueCFRef<CGColorSpaceRef> fRGBSpace; 76 SkUniqueCFRef<CGContextRef> fCG; 101 SkUniqueCFRef<CTFontRef> fCTFont; 107 SkUniqueCFRef<CGFontRef> fCGFont;
|
D | SkScalerContext_mac_ct.cpp | 308 SkUniqueCFRef<CGPathRef> path(CTFontCreatePathForGlyph(fCTFont.get(), cgGlyph,nullptr)); in generateMetrics() 647 SkUniqueCFRef<CGPathRef> cgPath(CTFontCreatePathForGlyph(fCTFont.get(), cgGlyph, &xform)); in generatePath() 690 SkUniqueCFRef<CFArrayRef> ctAxes(CTFontCopyVariationAxes(fCTFont.get())); in generateFontMetrics()
|
/external/skqp/src/ports/ |
D | SkFontHost_mac.cpp | 77 static SkUniqueCFRef<CFStringRef> make_CFString(const char s[]) { in make_CFString() 78 return SkUniqueCFRef<CFStringRef>(CFStringCreateWithCString(nullptr, s, kCFStringEncodingUTF8)); in make_CFString() 392 SkUniqueCFRef<CGColorSpaceRef> colorspace(CGColorSpaceCreateDeviceRGB()); in smooth_behavior() 393 SkUniqueCFRef<CGContextRef> noSmoothContext( in smooth_behavior() 396 SkUniqueCFRef<CGContextRef> smoothContext( in smooth_behavior() 400 SkUniqueCFRef<CGDataProviderRef> data( in smooth_behavior() 403 SkUniqueCFRef<CGFontRef> cgFont(CGFontCreateWithDataProvider(data.get())); in smooth_behavior() 405 SkUniqueCFRef<CTFontRef> ctFont( in smooth_behavior() 467 SkUniqueCFRef<CGColorSpaceRef> fRGBSpace; 470 SkUniqueCFRef<CGContextRef> fCG; [all …]
|
D | SkImageGeneratorCG.cpp | 28 ImageGeneratorCG(const SkImageInfo&, SkUniqueCFRef<CGImageSourceRef> imageSrc, 37 const SkUniqueCFRef<CGImageSourceRef> fImageSrc; 44 static SkUniqueCFRef<CGImageSourceRef> data_to_CGImageSrc(SkData* data) { in data_to_CGImageSrc() 45 SkUniqueCFRef<CGDataProviderRef> cgData( in data_to_CGImageSrc() 50 return SkUniqueCFRef<CGImageSourceRef>( in data_to_CGImageSrc() 57 SkUniqueCFRef<CGImageSourceRef> imageSrc = data_to_CGImageSrc(data.get()); in MakeFromEncodedCG() 62 SkUniqueCFRef<CFDictionaryRef> properties( in MakeFromEncodedCG() 107 ImageGeneratorCG::ImageGeneratorCG(const SkImageInfo& info, SkUniqueCFRef<CGImageSourceRef> src, in ImageGeneratorCG() 139 SkUniqueCFRef<CGImageRef> image(CGImageSourceCreateImageAtIndex(fImageSrc.get(), 0, nullptr)); in onGetPixels()
|
D | SkImageEncoder_CG.cpp | 41 static SkUniqueCFRef<CGDataConsumerRef> SkStreamToCGDataConsumer(SkWStream* stream) { in SkStreamToCGDataConsumer() 47 return SkUniqueCFRef<CGDataConsumerRef>(CGDataConsumerCreate(stream, &procs)); in SkStreamToCGDataConsumer() 50 static SkUniqueCFRef<CGImageDestinationRef> SkStreamToImageDestination(SkWStream* stream, in SkStreamToImageDestination() 52 SkUniqueCFRef<CGDataConsumerRef> consumer = SkStreamToCGDataConsumer(stream); in SkStreamToImageDestination() 57 return SkUniqueCFRef<CGImageDestinationRef>( in SkStreamToImageDestination() 104 SkUniqueCFRef<CGImageDestinationRef> dst = SkStreamToImageDestination(stream, type); in SkEncodeImageWithCG() 109 SkUniqueCFRef<CGImageRef> image(SkCreateCGImageRef(bm)); in SkEncodeImageWithCG()
|
/external/skia/src/utils/mac/ |
D | SkCTFont.cpp | 223 SkUniqueCFRef<CGColorSpaceRef> colorspace(CGColorSpaceCreateDeviceRGB()); in SkCTFontGetSmoothBehavior() 224 SkUniqueCFRef<CGContextRef> noSmoothContext( in SkCTFontGetSmoothBehavior() 227 SkUniqueCFRef<CGContextRef> smoothContext( in SkCTFontGetSmoothBehavior() 231 SkUniqueCFRef<CFDataRef> data(CFDataCreateWithBytesNoCopy( in SkCTFontGetSmoothBehavior() 234 SkUniqueCFRef<CTFontDescriptorRef> desc( in SkCTFontGetSmoothBehavior() 236 SkUniqueCFRef<CTFontRef> ctFont(CTFontCreateWithFontDescriptor(desc.get(), 16, nullptr)); in SkCTFontGetSmoothBehavior() 360 SkUniqueCFRef<CFDataRef> cfData( in SkCTFontGetDataFontWeightMapping() 365 SkUniqueCFRef<CTFontDescriptorRef> desc( in SkCTFontGetDataFontWeightMapping() 375 SkUniqueCFRef<CTFontRef> ctFont(CTFontCreateWithFontDescriptor(desc.get(), 9, nullptr)); in SkCTFontGetDataFontWeightMapping() 379 SkUniqueCFRef<CTFontDescriptorRef> desc2(CTFontCopyFontDescriptor(ctFont.get())); in SkCTFontGetDataFontWeightMapping() [all …]
|
D | SkCreateCGImageRef.cpp | 122 SkUniqueCFRef<CGDataProviderRef> dataRef(CGDataProviderCreateWithData( in SkCreateCGImageRefWithColorspace() 126 SkUniqueCFRef<CGColorSpaceRef> rgb; in SkCreateCGImageRefWithColorspace() 137 SkUniqueCFRef<CGImageRef> img(SkCreateCGImageRef(bm)); in SkCGDrawBitmap() 171 SkUniqueCFRef<CGColorSpaceRef> cs(CGColorSpaceCreateDeviceRGB()); in SkCreateCGContext() 194 SkUniqueCFRef<CGColorSpaceRef> cs(CGColorSpaceCreateDeviceRGB()); in SkCopyPixelsFromCGImage() 195 SkUniqueCFRef<CGContextRef> cg(CGBitmapContextCreate( in SkCopyPixelsFromCGImage()
|
D | SkUniqueCFRef.h | 20 template <typename CFRef> using SkUniqueCFRef = variable
|
/external/skia/modules/skshaper/src/ |
D | SkShaper_coretext.cpp | 112 SkUniqueCFRef<CTLineRef> nextLine() { in nextLine() 118 return SkUniqueCFRef<CTLineRef>(CTTypesetterCreateLine(fTypesetter, stringRange)); in nextLine() 123 SkUniqueCFRef<CFNumberRef> number( in dict_add_double() 128 static SkUniqueCFRef<CTFontRef> create_ctfont_from_font(const SkFont& font) { in create_ctfont_from_font() 131 return SkUniqueCFRef<CTFontRef>( in create_ctfont_from_font() 204 SkUniqueCFRef<CFStringRef> textString( in shape() 213 SkUniqueCFRef<CTFontRef> ctfont = create_ctfont_from_font(font); in shape() 215 SkUniqueCFRef<CFMutableDictionaryRef> attr( in shape() 226 SkUniqueCFRef<CFAttributedStringRef> attrString( in shape() 229 SkUniqueCFRef<CTTypesetterRef> typesetter( in shape() [all …]
|
/external/skqp/src/utils/mac/ |
D | SkUniqueCFRef.h | 20 template <typename CFRef> using SkUniqueCFRef = variable
|
/external/skqp/gn/ |
D | utils.gni | 76 "$_src/utils/mac/SkUniqueCFRef.h",
|
/external/skia/gn/ |
D | utils.gni | 88 "$_src/utils/mac/SkUniqueCFRef.h",
|
/external/skia/dm/ |
D | DM.cpp | 1208 SkUniqueCFRef<CGDataProviderRef> provider{ in Run() 1214 SkUniqueCFRef<CGPDFDocumentRef> pdf{ in Run() 1228 SkUniqueCFRef<CGColorSpaceRef> cs{CGColorSpaceCreateDeviceRGB()}; in Run() 1232 SkUniqueCFRef<CGContextRef> ctx{CGBitmapContextCreate( in Run()
|