Lines Matching refs:cg
161 void SkCGDrawBitmap(CGContextRef cg, const SkBitmap& bm, float x, float y) { in SkCGDrawBitmap() argument
167 CGContextSaveGState(cg); in SkCGDrawBitmap()
168 CGContextTranslateCTM(cg, x, r.size.height + y); in SkCGDrawBitmap()
169 CGContextScaleCTM(cg, 1, -1); in SkCGDrawBitmap()
171 CGContextDrawImage(cg, r, img); in SkCGDrawBitmap()
173 CGContextRestoreGState(cg); in SkCGDrawBitmap()
199 CGContextRef cg = CGBitmapContextCreate(pmap.writable_addr(), pmap.width(), pmap.height(), in SkCreateCGContext() local
202 return cg; in SkCreateCGContext()
223 CGContextRef cg = CGBitmapContextCreate(pixels, info.width(), info.height(), bitsPerComponent, in SkCopyPixelsFromCGImage() local
226 if (nullptr == cg) { in SkCopyPixelsFromCGImage()
232 CGContextSetBlendMode(cg, kCGBlendModeCopy); in SkCopyPixelsFromCGImage()
234 CGContextDrawImage(cg, CGRectMake(0, 0, info.width(), info.height()), image); in SkCopyPixelsFromCGImage()
235 CGContextRelease(cg); in SkCopyPixelsFromCGImage()