make inline helper static, so it can be included from than one .cpp

git-svn-id: http://skia.googlecode.com/svn/trunk@667 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
reed@android.com 2011-01-03 19:52:17 +00:00
Родитель 38669c12c5
Коммит ad789ee56f
2 изменённых файлов: 2 добавлений и 3 удалений

Просмотреть файл

@ -21,7 +21,7 @@ CGImageRef SkCreateCGImageRefWithColorspace(const SkBitmap& bm,
* Create an imageref from the specified bitmap using the colorspace
* kCGColorSpaceGenericRGB
*/
CGImageRef SkCreateCGImageRef(const SkBitmap& bm) {
static CGImageRef SkCreateCGImageRef(const SkBitmap& bm) {
return SkCreateCGImageRefWithColorspace(bm, NULL);
}

Просмотреть файл

@ -19,6 +19,7 @@
#include "SkMovie.h"
#include "SkStream.h"
#include "SkTemplates.h"
#include "SkCGUtils.h"
static void malloc_release_proc(void* info, const void* data, size_t size) {
sk_free(info);
@ -140,8 +141,6 @@ private:
Type fType;
};
extern CGImageRef SkCreateCGImageRef(const SkBitmap&);
/* Encode bitmaps via CGImageDestination. We setup a DataConsumer which writes
to our SkWStream. Since we don't reference/own the SkWStream, our consumer
must only live for the duration of the onEncode() method.