зеркало из https://github.com/mozilla/moz-skia.git
Change remaining ANDROID ifdefs to SK_BUILD_FOR_ANDROID
Review URL: http://codereview.appspot.com/5528050 git-svn-id: http://skia.googlecode.com/svn/trunk@2990 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
Родитель
a44e6c6b53
Коммит
fa394d491b
|
@ -152,7 +152,6 @@
|
|||
['skia_os == "android"',
|
||||
{
|
||||
'defines': [
|
||||
'ANDROID', # TODO: change these defines to SK_BUILD_FOR_ANDROID
|
||||
'SK_BUILD_FOR_ANDROID',
|
||||
'SK_BUILD_FOR_ANDROID_NDK',
|
||||
],
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
#include "SkScript2.h" // compiled script experiment
|
||||
#include "SkSystemEventTypes.h"
|
||||
#include "SkTypedArray.h"
|
||||
#ifdef ANDROID
|
||||
#ifdef SK_BUILD_FOR_ANDROID
|
||||
#include "SkDrawExtraPathEffect.h"
|
||||
#endif
|
||||
#ifdef SK_DEBUG
|
||||
|
@ -387,7 +387,7 @@ void SkAnimator::initialize() {
|
|||
SkDELETE(fMaker);
|
||||
fMaker = SkNEW_ARGS(SkAnimateMaker, (this, NULL, NULL));
|
||||
decodeMemory(gMathPrimer, sizeof(gMathPrimer)-1);
|
||||
#ifdef ANDROID
|
||||
#ifdef SK_BUILD_FOR_ANDROID
|
||||
InitializeSkExtraPathEffects(this);
|
||||
#endif
|
||||
}
|
||||
|
|
|
@ -23,7 +23,7 @@ extern "C" {
|
|||
#include "jerror.h"
|
||||
}
|
||||
|
||||
#ifdef ANDROID
|
||||
#ifdef SK_BUILD_FOR_ANDROID
|
||||
#include <cutils/properties.h>
|
||||
|
||||
// Key to lookup the size of memory buffer set in system property
|
||||
|
@ -87,7 +87,7 @@ private:
|
|||
jpeg_decompress_struct* cinfo_ptr;
|
||||
};
|
||||
|
||||
#ifdef ANDROID
|
||||
#ifdef SK_BUILD_FOR_ANDROID
|
||||
/* Check if the memory cap property is set.
|
||||
If so, use the memory size for jpeg decode.
|
||||
*/
|
||||
|
@ -170,7 +170,7 @@ bool SkJPEGImageDecoder::onDecode(SkStream* stream, SkBitmap* bm, Mode mode) {
|
|||
jpeg_create_decompress(&cinfo);
|
||||
autoClean.set(&cinfo);
|
||||
|
||||
#ifdef ANDROID
|
||||
#ifdef SK_BUILD_FOR_ANDROID
|
||||
overwrite_mem_buffer_size(&cinfo);
|
||||
#endif
|
||||
|
||||
|
|
|
@ -325,10 +325,7 @@ static FT_Error getAdvances(FT_Face face, FT_UInt start, FT_UInt count,
|
|||
}
|
||||
|
||||
static bool canEmbed(FT_Face face) {
|
||||
// The Android freetype library does not compile the FT_Get_FSType_Flags
|
||||
// function, so we are required to add the !defined(SK_BUILD_FOR_ANDROID) until
|
||||
// support is added to Androids port of freetype.
|
||||
#if defined(FT_FSTYPE_RESTRICTED_LICENSE_EMBEDDING) && !defined(SK_BUILD_FOR_ANDROID)
|
||||
#ifdef FT_FSTYPE_RESTRICTED_LICENSE_EMBEDDING
|
||||
FT_UShort fsType = FT_Get_FSType_Flags(face);
|
||||
return (fsType & (FT_FSTYPE_RESTRICTED_LICENSE_EMBEDDING |
|
||||
FT_FSTYPE_BITMAP_EMBEDDING_ONLY)) == 0;
|
||||
|
|
Загрузка…
Ссылка в новой задаче