diff options
Diffstat (limited to 'skia/skia_library.gypi')
-rw-r--r-- | skia/skia_library.gypi | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/skia/skia_library.gypi b/skia/skia_library.gypi index a93f6d5..4e1139a 100644 --- a/skia/skia_library.gypi +++ b/skia/skia_library.gypi @@ -398,6 +398,15 @@ '-Wstring-conversion', ], }], + # On windows, GDI handles are a scarse system-wide resource so we have to keep + # the glyph cache, which holds up to 4 GDI handles per entry, to a fairly small + # size. + # http://crbug.com/314387 + [ 'OS == "win"', { + 'defines': [ + 'SK_DEFAULT_FONT_CACHE_COUNT_LIMIT=256', + ], + }], ], 'target_conditions': [ # Pull in specific Mac files for iOS (which have been filtered out @@ -440,9 +449,6 @@ 'SK_GDI_ALWAYS_USE_TEXTMETRICS_FOR_FONT_METRICS', 'SK_DEFAULT_FONT_CACHE_LIMIT=<(default_font_cache_limit)', - - # http://crbug.com/314387 - 'SK_DEFAULT_FONT_CACHE_COUNT_LIMIT=64', ], 'direct_dependent_settings': { |