• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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_SUPPORT_STROKEANDFILL
24 
25   // Needed until we fix https://bug.skia.org/2440
26   #define SK_SUPPORT_LEGACY_CLIPTOLAYERFLAG
27   #define SK_SUPPORT_LEGACY_EMBOSSMASKFILTER
28   #define SK_SUPPORT_LEGACY_AAA_CHOICE
29 
30   #define SK_ABORT(fmt, ...) __android_log_assert(nullptr, "skia", "[skia] \"" fmt "\" in {%s}",  \
31                                                   ##__VA_ARGS__, __PRETTY_FUNCTION__)
32 
33   // TODO (b/239048372): Remove this flag when we can safely migrate apps to the
34   // new behavior.
35   #define SK_SUPPORT_LEGACY_ALPHA_BITMAP_AS_COVERAGE
36 #endif // SkUserConfigManual_DEFINED
37