1 /* 2 * Copyright 2017 Google Inc. 3 * 4 * Use of this source code is governed by a BSD-style license that can be 5 * found in the LICENSE file. 6 */ 7 8 #ifndef SkUserConfigManual_DEFINED 9 #define SkUserConfigManual_DEFINED 10 #include <android/log.h> 11 #define GR_TEST_UTILS 1 12 #define SK_BUILD_FOR_ANDROID_FRAMEWORK 13 #define SK_DEFAULT_FONT_CACHE_LIMIT (768 * 1024) 14 #define SK_DEFAULT_GLOBAL_DISCARDABLE_MEMORY_POOL_SIZE (512 * 1024) 15 #define SK_USE_FREETYPE_EMBOLDEN 16 17 // Disable these Ganesh features 18 #define SK_DISABLE_REDUCE_OPLIST_SPLITTING 19 // Check error is expensive. HWUI historically also doesn't check its allocations 20 #define GR_GL_CHECK_ALLOC_WITH_GET_ERROR 0 21 22 // Staging flags 23 #define SK_LEGACY_PATH_ARCTO_ENDPOINT 24 #define SK_SUPPORT_STROKEANDFILL 25 26 // Needed until we fix https://bug.skia.org/2440 27 #define SK_SUPPORT_LEGACY_CLIPTOLAYERFLAG 28 #define SK_SUPPORT_LEGACY_EMBOSSMASKFILTER 29 #define SK_SUPPORT_LEGACY_AA_CHOICE 30 #define SK_SUPPORT_LEGACY_AAA_CHOICE 31 32 #define SK_DISABLE_DAA // skbug.com/6886 33 34 #define SK_ABORT(...) __android_log_assert(nullptr, "skia", ##__VA_ARGS__) 35 36 // TODO (b/239048372): Remove this flag when we can safely migrate apps to the 37 // new behavior. 38 #define SK_SUPPORT_LEGACY_ALPHA_BITMAP_AS_COVERAGE 39 #endif // SkUserConfigManual_DEFINED 40