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
This commit is contained in:
reed@android.com 2011-01-04 01:29:52 +00:00
parent ad789ee56f
commit 4aaee0aecd

View 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);
}