Brian Osman | f2c9014 | 2017-07-13 15:50:03 -0400 | [diff] [blame] | 1 | # 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 Phillips | 193de5d | 2017-11-10 08:22:28 -0500 | [diff] [blame] | 5 | flutter_defines = [ |
Mike Klein | 62cc5f5 | 2018-11-07 09:38:55 -0500 | [diff] [blame] | 6 | # Flutter always wants this https://github.com/flutter/flutter/issues/11402 |
| 7 | "SK_ENABLE_DUMP_GPU", |
| 8 | |
Mike Klein | 05caa69 | 2018-10-04 15:28:07 -0400 | [diff] [blame] | 9 | # Remove software rasterizers to save some code size. |
| 10 | "SK_DISABLE_AAA", |
Mike Klein | 419709d | 2018-10-11 22:05:14 -0400 | [diff] [blame] | 11 | |
Julia Lavrova | ee33a3a | 2020-11-16 15:46:17 -0500 | [diff] [blame] | 12 | # Things we do for Flutter but don't want in general text layout |
| 13 | "SK_PARAGRAPH_LIBTXT_SPACES_RESOLUTION", |
| 14 | |
Mike Reed | a735ad9 | 2020-04-06 21:32:43 -0400 | [diff] [blame] | 15 | # Staging |
Tyler Denniston | 2dc2859 | 2021-07-07 09:33:47 -0400 | [diff] [blame] | 16 | "SK_LEGACY_INNER_JOINS", |
Brian Salomon | e00afb0 | 2021-11-22 12:22:16 -0500 | [diff] [blame] | 17 | "SK_LEGACY_IGNORE_DRAW_VERTICES_BLEND_WITH_NO_SHADER", |
Mike Reed | a735ad9 | 2020-04-06 21:32:43 -0400 | [diff] [blame] | 18 | |
Mike Klein | 419709d | 2018-10-11 22:05:14 -0400 | [diff] [blame] | 19 | # Fast low-precision software rendering isn't a priority for Flutter. |
Mike Klein | 89e2f3c | 2018-10-17 13:51:30 -0400 | [diff] [blame] | 20 | "SK_DISABLE_LEGACY_SHADERCONTEXT", |
Mike Klein | 419709d | 2018-10-11 22:05:14 -0400 | [diff] [blame] | 21 | "SK_DISABLE_LOWP_RASTER_PIPELINE", |
Mike Klein | 3c9fbae | 2018-10-22 09:48:01 -0400 | [diff] [blame] | 22 | "SK_FORCE_RASTER_PIPELINE_BLITTER", |
Robert Phillips | 193de5d | 2017-11-10 08:22:28 -0500 | [diff] [blame] | 23 | ] |
flar | a8e985e | 2019-11-13 15:12:07 -0800 | [diff] [blame] | 24 | |
| 25 | if (!is_fuchsia) { |
Forrest Reiling | 51e4024 | 2020-09-15 01:17:47 +0000 | [diff] [blame] | 26 | flutter_defines += [ |
| 27 | "SK_GL", |
| 28 | "SK_DISABLE_EFFECT_DESERIALIZATION", |
| 29 | ] |
flar | a8e985e | 2019-11-13 15:12:07 -0800 | [diff] [blame] | 30 | } |