зеркало из https://github.com/mozilla/moz-skia.git
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:
Родитель
38669c12c5
Коммит
ad789ee56f
|
@ -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.
|
||||
|
|
Загрузка…
Ссылка в новой задаче