static inline eliminates multiple definitions (and makes it zero-cost, since
authorreed@android.com <reed@android.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Tue, 4 Jan 2011 01:29:52 +0000 (01:29 +0000)
committerreed@android.com <reed@android.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Tue, 4 Jan 2011 01:29:52 +0000 (01:29 +0000)
it will be inlined)

git-svn-id: http://skia.googlecode.com/svn/trunk@668 2bbb7eff-a529-9590-31e7-b0007b416f81

include/utils/mac/SkCGUtils.h

index 2d0853f..f534fee 100644 (file)
@@ -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);
 }