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 SK_BUILD_FOR_ANDROID_FRAMEWORK 12 #define SK_DEFAULT_FONT_CACHE_LIMIT (768 * 1024) 13 #define SK_DEFAULT_GLOBAL_DISCARDABLE_MEMORY_POOL_SIZE (512 * 1024) 14 #define SK_PRINT_CODEC_MESSAGES 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_SUPPORT_STROKEANDFILL 24 #define SK_DISABLE_LEGACY_SKSURFACE_FLUSH 25 #define SK_DISABLE_LEGACY_CANVAS_FLUSH 26 #define SK_LEGACY_GPU_GETTERS_CONST 27 28 // Needed until we fix https://bug.skia.org/2440 29 #define SK_SUPPORT_LEGACY_CLIPTOLAYERFLAG 30 #define SK_SUPPORT_LEGACY_EMBOSSMASKFILTER 31 #define SK_FORCE_AAA 32 33 #define SK_ABORT(fmt, ...) __android_log_assert(nullptr, "skia", "[skia] \"" fmt "\" in {%s}", \ 34 ##__VA_ARGS__, __PRETTY_FUNCTION__) 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