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 #include "include/gpu/graphite/LogPriority.h" 12 13 #define SK_BUILD_FOR_ANDROID_FRAMEWORK 14 #define SK_DEFAULT_FONT_CACHE_LIMIT (768 * 1024) 15 #define SK_DEFAULT_GLOBAL_DISCARDABLE_MEMORY_POOL_SIZE (512 * 1024) 16 #define SK_PRINT_CODEC_MESSAGES 17 #define SK_USE_FREETYPE_EMBOLDEN 18 19 // Disable these Ganesh features 20 #define SK_DISABLE_REDUCE_OPLIST_SPLITTING 21 // Check error is expensive. HWUI historically also doesn't check its allocations 22 #define GR_GL_CHECK_ALLOC_WITH_GET_ERROR 0 23 24 // Staging flags 25 #define SK_USE_LEGACY_BLUR_GANESH 26 27 #define SK_SUPPORT_LEGACY_EMBOSSMASKFILTER 28 29 // Logging settings 30 #define SKGPU_GRAPHITE_LOWEST_ACTIVE_LOG_PRIORITY skgpu::graphite::LogPriority::kWarning 31 #define SK_ABORT(fmt, ...) __android_log_assert(nullptr, "skia", "[skia] \"" fmt "\" in {%s}", \ 32 ##__VA_ARGS__, __PRETTY_FUNCTION__) 33 34 // TODO (b/239048372): Remove this flag when we can safely migrate apps to the 35 // new behavior. 36 #define SK_SUPPORT_LEGACY_ALPHA_BITMAP_AS_COVERAGE 37 38 #if defined(__APPLE__) && !defined(SK_R32_SHIFT) 39 // Set macOS to use BGRA format to match Linux and Windows 40 #define SK_R32_SHIFT 16 41 #endif 42 #endif // SkUserConfigManual_DEFINED 43