blob: 0e3351754d410b15c31632c27aef66a6e9e8359e [file] [log] [blame]
Brian Osmanf2c90142017-07-13 15:50:03 -04001# Copyright 2017 Google Inc.
2#
3# Use of this source code is governed by a BSD-style license that can be
4# found in the LICENSE file.
Robert Phillips193de5d2017-11-10 08:22:28 -05005flutter_defines = [
Mike Klein62cc5f52018-11-07 09:38:55 -05006 # Flutter always wants this https://github.com/flutter/flutter/issues/11402
7 "SK_ENABLE_DUMP_GPU",
8
Mike Klein05caa692018-10-04 15:28:07 -04009 # Remove software rasterizers to save some code size.
10 "SK_DISABLE_AAA",
Mike Klein419709d2018-10-11 22:05:14 -040011
Julia Lavrovaee33a3a2020-11-16 15:46:17 -050012 # Things we do for Flutter but don't want in general text layout
13 "SK_PARAGRAPH_LIBTXT_SPACES_RESOLUTION",
14
Mike Reeda735ad92020-04-06 21:32:43 -040015 # Staging
Tyler Denniston2dc28592021-07-07 09:33:47 -040016 "SK_LEGACY_INNER_JOINS",
Mike Reeda735ad92020-04-06 21:32:43 -040017
Mike Klein419709d2018-10-11 22:05:14 -040018 # Fast low-precision software rendering isn't a priority for Flutter.
Mike Klein89e2f3c2018-10-17 13:51:30 -040019 "SK_DISABLE_LEGACY_SHADERCONTEXT",
Mike Klein419709d2018-10-11 22:05:14 -040020 "SK_DISABLE_LOWP_RASTER_PIPELINE",
Mike Klein3c9fbae2018-10-22 09:48:01 -040021 "SK_FORCE_RASTER_PIPELINE_BLITTER",
Robert Phillips193de5d2017-11-10 08:22:28 -050022]
flara8e985e2019-11-13 15:12:07 -080023
24if (!is_fuchsia) {
Forrest Reiling51e40242020-09-15 01:17:47 +000025 flutter_defines += [
26 "SK_GL",
27 "SK_DISABLE_EFFECT_DESERIALIZATION",
28 ]
flara8e985e2019-11-13 15:12:07 -080029}