aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/utils/mac
diff options
context:
space:
mode:
authorGravatar reed@android.com <reed@android.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-01-04 01:29:52 +0000
committerGravatar reed@android.com <reed@android.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-01-04 01:29:52 +0000
commit4aaee0aecdac6106763cd0428dfe0e589b1744cc (patch)
tree882f6b19e7d04883adb6427f382cf3cd55cddc7e /include/utils/mac
parentad789ee56f62779626899a74e078bd3410229998 (diff)
static inline eliminates multiple definitions (and makes it zero-cost, since
it will be inlined) git-svn-id: http://skia.googlecode.com/svn/trunk@668 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/utils/mac')
-rw-r--r--include/utils/mac/SkCGUtils.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/utils/mac/SkCGUtils.h b/include/utils/mac/SkCGUtils.h
index 2d0853fc08..f534feea7b 100644
--- a/include/utils/mac/SkCGUtils.h
+++ b/include/utils/mac/SkCGUtils.h
@@ -21,7 +21,7 @@ CGImageRef SkCreateCGImageRefWithColorspace(const SkBitmap& bm,
* Create an imageref from the specified bitmap using the colorspace
* kCGColorSpaceGenericRGB
*/
-static CGImageRef SkCreateCGImageRef(const SkBitmap& bm) {
+static inline CGImageRef SkCreateCGImageRef(const SkBitmap& bm) {
return SkCreateCGImageRefWithColorspace(bm, NULL);
}