diff options
author | reed@android.com <reed@android.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2011-01-04 01:29:52 +0000 |
---|---|---|
committer | reed@android.com <reed@android.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2011-01-04 01:29:52 +0000 |
commit | 4aaee0aecdac6106763cd0428dfe0e589b1744cc (patch) | |
tree | 882f6b19e7d04883adb6427f382cf3cd55cddc7e /include/utils/mac | |
parent | ad789ee56f62779626899a74e078bd3410229998 (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.h | 2 |
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); } |