reed@android.com | 0d55f1e | 2008-12-18 19:26:11 +0000 | [diff] [blame] | 1 | #ifndef SkCGUtils_DEFINED |
| 2 | #define SkCGUtils_DEFINED |
| 3 | |
reed@android.com | f2b98d6 | 2010-12-20 18:26:13 +0000 | [diff] [blame^] | 4 | #include "SkTypes.h" |
| 5 | |
| 6 | #ifdef SK_BUILD_FOR_MAC |
| 7 | #include <Carbon/Carbon.h> |
| 8 | #else |
| 9 | #include <CoreGraphics/CoreGraphics.h> |
| 10 | #endif |
reed@android.com | 0d55f1e | 2008-12-18 19:26:11 +0000 | [diff] [blame] | 11 | |
| 12 | class SkBitmap; |
| 13 | |
| 14 | CGImageRef SkCreateCGImageRef(const SkBitmap&); |
| 15 | |
reed@android.com | f2b98d6 | 2010-12-20 18:26:13 +0000 | [diff] [blame^] | 16 | void SkCGDrawBitmap(CGContextRef, const SkBitmap&, float x, float y); |
| 17 | |
reed@android.com | 0d55f1e | 2008-12-18 19:26:11 +0000 | [diff] [blame] | 18 | #endif |