Searched refs:SkUniqueCFRef (Results 1 – 15 of 15) sorted by relevance
/external/skia/src/ports/ |
D | SkFontMgr_mac_ct.cpp | 73 static SkUniqueCFRef<CFStringRef> make_CFString(const char s[]) { in make_CFString() 74 return SkUniqueCFRef<CFStringRef>(CFStringCreateWithCString(nullptr, s, kCFStringEncodingUTF8)); in make_CFString() 79 SkUniqueCFRef<CTFontRef> ctFont(CTFontCreateWithFontDescriptor(desc, 0, nullptr)); in create_from_desc() 87 static SkUniqueCFRef<CTFontDescriptorRef> create_descriptor(const char familyName[], in create_descriptor() 89 SkUniqueCFRef<CFMutableDictionaryRef> cfAttributes( in create_descriptor() 94 SkUniqueCFRef<CFMutableDictionaryRef> cfTraits( in create_descriptor() 125 SkUniqueCFRef<CFNumberRef> cfFontTraits( in create_descriptor() 134 SkUniqueCFRef<CFNumberRef> cfFontWeight( in create_descriptor() 141 SkUniqueCFRef<CFNumberRef> cfFontWidth( in create_descriptor() 150 SkUniqueCFRef<CFNumberRef> cfFontSlant( in create_descriptor() [all …]
|
D | SkTypeface_mac_ct.cpp | 82 SkUniqueCFRef<CFStringRef> typeDescription(CFCopyTypeIDDescription(id)); in SkCFTypeIDDescription() 164 SkUniqueCFRef<CFNumberRef> opszValueNumber( in add_opsz_attr() 174 SkUniqueCFRef<CFNumberRef> unscaledTrackingNumber( in add_notrak_attr() 180 SkUniqueCFRef<CTFontRef> SkCTFontCreateExactCopy(CTFontRef baseFont, CGFloat textSize, in SkCTFontCreateExactCopy() 183 SkUniqueCFRef<CFMutableDictionaryRef> attr( in SkCTFontCreateExactCopy() 201 SkUniqueCFRef<CFTypeRef> opsz(CTFontCopyAttribute(baseFont, SkCTFontOpticalSizeAttribute)); in SkCTFontCreateExactCopy() 214 SkUniqueCFRef<CTFontDescriptorRef> desc(CTFontDescriptorCreateWithAttributes(attr.get())); in SkCTFontCreateExactCopy() 216 return SkUniqueCFRef<CTFontRef>( in SkCTFontCreateExactCopy() 232 sk_sp<SkTypeface> SkTypeface_Mac::Make(SkUniqueCFRef<CTFontRef> font, in Make() 242 SkUniqueCFRef<CTFontDescriptorRef> desc(CTFontCopyFontDescriptor(font.get())); in Make() [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.h | 53 SkUniqueCFRef<CFDictionaryRef> variation; 54 SkUniqueCFRef<CFDictionaryRef> wrongOpszVariation; 58 SkUniqueCFRef<CTFontRef> SkCTFontCreateExactCopy(CTFontRef baseFont, CGFloat textSize, 70 SkTypeface_Mac(SkUniqueCFRef<CTFontRef> fontRef, const SkFontStyle& fs, bool isFixedPitch, in SkTypeface_Mac() 84 static sk_sp<SkTypeface> Make(SkUniqueCFRef<CTFontRef> font, 91 SkUniqueCFRef<CTFontRef> fFontRef; 134 mutable SkUniqueCFRef<CFArrayRef> fVariationAxes;
|
D | SkScalerContext_mac_ct.h | 66 SkUniqueCFRef<CGColorSpaceRef> fRGBSpace; 69 SkUniqueCFRef<CGContextRef> fCG; 70 SkUniqueCFRef<CGColorRef> fCGForegroundColor; 96 SkUniqueCFRef<CTFontRef> fCTFont; 102 SkUniqueCFRef<CGFontRef> fCGFont;
|
D | SkScalerContext_mac_ct.cpp | 340 SkUniqueCFRef<CGPathRef> path(CTFontCreatePathForGlyph(fCTFont.get(), cgGlyph,nullptr)); in generateMetrics() 679 SkUniqueCFRef<CGPathRef> cgPath(CTFontCreatePathForGlyph(fCTFont.get(), cgGlyph, &xform)); in generatePath()
|
/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() 361 SkUniqueCFRef<CFDataRef> cfData( in SkCTFontGetDataFontWeightMapping() 366 SkUniqueCFRef<CTFontDescriptorRef> desc( in SkCTFontGetDataFontWeightMapping() 376 SkUniqueCFRef<CTFontRef> ctFont(CTFontCreateWithFontDescriptor(desc.get(), 9, nullptr)); in SkCTFontGetDataFontWeightMapping() 380 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
|
D | BUILD.bazel | 15 "SkUniqueCFRef.h",
|
/external/skia/modules/skshaper/src/ |
D | SkShaper_coretext.cpp | 114 SkUniqueCFRef<CTLineRef> nextLine() { in nextLine() 120 return SkUniqueCFRef<CTLineRef>(CTTypesetterCreateLine(fTypesetter, stringRange)); in nextLine() 125 SkUniqueCFRef<CFNumberRef> number( in dict_add_double() 130 static SkUniqueCFRef<CTFontRef> create_ctfont_from_font(const SkFont& font) { in create_ctfont_from_font() 133 return SkUniqueCFRef<CTFontRef>( in create_ctfont_from_font() 206 SkUniqueCFRef<CFStringRef> textString( in shape() 215 SkUniqueCFRef<CTFontRef> ctfont = create_ctfont_from_font(font); in shape() 217 SkUniqueCFRef<CFMutableDictionaryRef> attr( in shape() 228 SkUniqueCFRef<CFAttributedStringRef> attrString( in shape() 231 SkUniqueCFRef<CTTypesetterRef> typesetter( in shape() [all …]
|
/external/skia/dm/ |
D | DM.cpp | 1217 SkUniqueCFRef<CGDataProviderRef> provider{ in Run() 1223 SkUniqueCFRef<CGPDFDocumentRef> pdf{ in Run() 1237 SkUniqueCFRef<CGColorSpaceRef> cs{CGColorSpaceCreateDeviceRGB()}; in Run() 1241 SkUniqueCFRef<CGContextRef> ctx{CGBitmapContextCreate( in Run()
|
/external/skia/gn/ |
D | utils.gni | 114 "$_src/utils/mac/SkUniqueCFRef.h",
|
/external/skia/ |
D | public.bzl | 1883 "src/utils/mac/SkUniqueCFRef.h",
|