blob: 43c2d588e846ad0cc331e47d957c8314a655487a [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",
Brian Salomone00afb02021-11-22 12:22:16 -050017 "SK_LEGACY_IGNORE_DRAW_VERTICES_BLEND_WITH_NO_SHADER",
Mike Reeda735ad92020-04-06 21:32:43 -040018
Mike Klein419709d2018-10-11 22:05:14 -040019 # Fast low-precision software rendering isn't a priority for Flutter.
Mike Klein89e2f3c2018-10-17 13:51:30 -040020 "SK_DISABLE_LEGACY_SHADERCONTEXT",
Mike Klein419709d2018-10-11 22:05:14 -040021 "SK_DISABLE_LOWP_RASTER_PIPELINE",
Mike Klein3c9fbae2018-10-22 09:48:01 -040022 "SK_FORCE_RASTER_PIPELINE_BLITTER",
Robert Phillips193de5d2017-11-10 08:22:28 -050023]
flara8e985e2019-11-13 15:12:07 -080024
25if (!is_fuchsia) {
Forrest Reiling51e40242020-09-15 01:17:47 +000026 flutter_defines += [
27 "SK_GL",
28 "SK_DISABLE_EFFECT_DESERIALIZATION",
29 ]
flara8e985e2019-11-13 15:12:07 -080030}