Home | History | Annotate | Download | only in config
      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   #define GR_TEST_UTILS 1
     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_USE_FREETYPE_EMBOLDEN
     15 
     16   // Disable these Ganesh features
     17   #define SK_DISABLE_EXPLICIT_GPU_RESOURCE_ALLOCATION
     18   #define SK_DISABLE_RENDER_TARGET_SORTING
     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   // Legacy flags
     23   #define SK_IGNORE_GPU_DITHER
     24   #define SK_SUPPORT_DEPRECATED_CLIPOPS
     25   #define SK_SUPPORT_LEGACY_DRAWLOOPER
     26   #define SK_SUPPORT_LEGACY_TILEMODE_ENUM
     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_SUPPORT_LEGACY_AA_CHOICE
     32   #define SK_SUPPORT_LEGACY_A8_MASKBLITTER
     33   #define SK_SUPPORT_LEGACY_AAA_CHOICE
     34 
     35   #define SK_DISABLE_DAA  // skbug.com/6886
     36 
     37 #endif // SkUserConfigManual_DEFINED
     38