8#ifndef SkCGUtils_DEFINED
9#define SkCGUtils_DEFINED
16#if defined(SK_BUILD_FOR_MAC) || defined(SK_BUILD_FOR_IOS)
18#ifdef SK_BUILD_FOR_MAC
19#include <ApplicationServices/ApplicationServices.h>
22#ifdef SK_BUILD_FOR_IOS
23#include <CoreGraphics/CoreGraphics.h>
57static inline bool SkCopyPixelsFromCGImage(
const SkPixmap&
dst, CGImageRef
src) {
58 return SkCopyPixelsFromCGImage(
dst.info(),
dst.rowBytes(),
dst.writable_addr(),
src);
64SK_API CGImageRef SkCreateCGImageRefWithColorspace(
const SkBitmap& bm,
65 CGColorSpaceRef space);
87void SkCGDrawBitmap(CGContextRef,
const SkBitmap&,
float x,
float y);
static void info(const char *fmt,...) SK_PRINTF_LIKE(1