aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/utils/mac
diff options
context:
space:
mode:
authorGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-01-05 16:29:02 +0000
committerGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-01-05 16:29:02 +0000
commit5a8a131d8a46424ae494041de2d748cdecea8ec9 (patch)
treeaea538c51cf83eade360538518de01479ea133f7 /include/utils/mac
parentc280d112a820fce69bf6bac4dafdbb99d84077e9 (diff)
update dox to reflect that the default colorspace is CGColorSpaceCreateDeviceRGB()
git-svn-id: http://skia.googlecode.com/svn/trunk@676 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/utils/mac')
-rw-r--r--include/utils/mac/SkCGUtils.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/utils/mac/SkCGUtils.h b/include/utils/mac/SkCGUtils.h
index f534feea7b..db67edf6e5 100644
--- a/include/utils/mac/SkCGUtils.h
+++ b/include/utils/mac/SkCGUtils.h
@@ -13,13 +13,14 @@ class SkBitmap;
/**
* Create an imageref from the specified bitmap using the specified colorspace.
+ * If space is NULL, then CGColorSpaceCreateDeviceRGB() is used.
*/
CGImageRef SkCreateCGImageRefWithColorspace(const SkBitmap& bm,
CGColorSpaceRef space);
/**
- * Create an imageref from the specified bitmap using the colorspace
- * kCGColorSpaceGenericRGB
+ * Create an imageref from the specified bitmap using the colorspace returned
+ * by CGColorSpaceCreateDeviceRGB()
*/
static inline CGImageRef SkCreateCGImageRef(const SkBitmap& bm) {
return SkCreateCGImageRefWithColorspace(bm, NULL);
@@ -28,7 +29,8 @@ static inline CGImageRef SkCreateCGImageRef(const SkBitmap& bm) {
/**
* Draw the bitmap into the specified CG context. The bitmap will be converted
* to a CGImage using the generic RGB colorspace. (x,y) specifies the position
- * of the top-left corner of the bitmap.
+ * of the top-left corner of the bitmap. The bitmap is converted using the
+ * colorspace returned by CGColorSpaceCreateDeviceRGB()
*/
void SkCGDrawBitmap(CGContextRef, const SkBitmap&, float x, float y);