skia2/gn/flutter_defines.gni

30 lines
783 B
Plaintext
Raw Normal View History

# Copyright 2017 Google Inc.
#
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
flutter_defines = [
"SK_DISABLE_REDUCE_OPLIST_SPLITTING",
# Flutter always wants this https://github.com/flutter/flutter/issues/11402
"SK_ENABLE_DUMP_GPU",
# Remove software rasterizers to save some code size.
"SK_DISABLE_AAA",
# Flutter doesn't deserialize effects.
Reland "simplify disabling effect deserialization" This reverts commit 34d7a163a4a749d6e91cf768d0f1767e8da6ceb2. Reason for revert: ok now? Original change's description: > Revert "simplify disabling effect deserialization" > > This reverts commit 5bbf790b5beeb2ed74f04551502259b54ac5556f. > > Reason for revert: flutter GN needs some love > > Original change's description: > > simplify disabling effect deserialization > > > > Switch to a simple #define instead of conditional build targets. > > > > No one changes skia_enable_effects or skia_enable_effects_imagefilters, > > so we can merge all that together back into :skia. > > > > Change-Id: I2985f95ee89149ddc687dc31f4c6bf35cb3a93c7 > > Reviewed-on: https://skia-review.googlesource.com/c/169220 > > Reviewed-by: Kevin Lubick <kjlubick@google.com> > > Commit-Queue: Mike Klein <mtklein@google.com> > > TBR=mtklein@google.com,kjlubick@google.com > > Change-Id: I3b818418d303dbc6d2a926a19df64a68499f0ec3 > No-Presubmit: true > No-Tree-Checks: true > No-Try: true > Reviewed-on: https://skia-review.googlesource.com/c/169222 > Reviewed-by: Mike Klein <mtklein@google.com> > Commit-Queue: Mike Klein <mtklein@google.com> TBR=mtklein@google.com,kjlubick@google.com Cq-Include-Trybots: skia.primary:Build-Debian9-Clang-arm-Release-Flutter_Android Change-Id: I534346c3ef3561a871f1af6df976bfee0b48014a No-Presubmit: true No-Tree-Checks: true No-Try: true Reviewed-on: https://skia-review.googlesource.com/c/169640 Commit-Queue: Mike Klein <mtklein@google.com> Reviewed-by: Mike Klein <mtklein@google.com>
2018-11-08 12:08:05 +00:00
"SK_DISABLE_EFFECT_DESERIALIZATION",
# Staging
"SK_SUPPORT_LEGACY_MATRIX_FACTORIES",
Reland "Enable novel GrClipStack on bots, disable elsewhere" This reverts commit f6e0f58b2ea5748da14a29c3da59a984c1c4c180. Reason for revert: benches and tests updated here: https://skia-review.googlesource.com/c/skia/+/317380 Original change's description: > Revert "Enable novel GrClipStack on bots, disable elsewhere" > > This reverts commit e1ade2ac4a8d11065395f4e2ea85891495d82bcb. > > Reason for revert: Need to remove benchmarks that use deprecated SkClipOps first. > > Original change's description: > > Enable novel GrClipStack on bots, disable elsewhere > > > > As a result of this change, the new GrClipStack will run on all of our > > default bots. However, the SK_DISABLE_NEW_GR_CLICK_STACK define is used > > to explicitly disable the clip stack when we build for the Android > > Framework, Google3, Flutter, and Fuchsia. These projects can have staging > > controlled from within the skia repo. This CL in chromium also disables > > the new clip stack: https://chromium-review.googlesource.com/c/chromium/src/+/2412768 > > and must land before this CL does in Skia. > > > > When GrClipStack originally landed, I had it disabled by checking the > > value of the define SK_USE_NEW_GR_CLICK_STACK for 0 or 1. To be a little > > simpler, and work with the flutter and fuchsia gn defines, this CL > > switches GrClipStack control over to SK_DISABLE_NEW_GR_CLICK_STACK and > > it just checks for whether or not it's defined. > > > > Bug: skia:10205 > > Change-Id: I6b8bd18290844c02839fe99fdf629b48ffd86f27 > > Reviewed-on: https://skia-review.googlesource.com/c/skia/+/317209 > > Reviewed-by: Robert Phillips <robertphillips@google.com> > > Reviewed-by: Brian Salomon <bsalomon@google.com> > > Commit-Queue: Michael Ludwig <michaelludwig@google.com> > > TBR=bsalomon@google.com,robertphillips@google.com,michaelludwig@google.com > > Change-Id: I14fddccfdea8e91ebad92e55193b0034f8bb28af > No-Presubmit: true > No-Tree-Checks: true > No-Try: true > Bug: skia:10205 > Reviewed-on: https://skia-review.googlesource.com/c/skia/+/317377 > Reviewed-by: Michael Ludwig <michaelludwig@google.com> > Commit-Queue: Michael Ludwig <michaelludwig@google.com> TBR=bsalomon@google.com,robertphillips@google.com,michaelludwig@google.com # Not skipping CQ checks because this is a reland. Bug: skia:10205 Change-Id: I1f26496437ed04a79e9c1058428cdc867ae3be39 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/317385 Reviewed-by: Michael Ludwig <michaelludwig@google.com> Commit-Queue: Michael Ludwig <michaelludwig@google.com>
2020-09-16 18:41:38 +00:00
"SK_DISABLE_NEW_GR_CLIP_STACK",
# Fast low-precision software rendering isn't a priority for Flutter.
"SK_DISABLE_LEGACY_SHADERCONTEXT",
"SK_DISABLE_LOWP_RASTER_PIPELINE",
"SK_FORCE_RASTER_PIPELINE_BLITTER",
]
if (!is_fuchsia) {
flutter_defines += [ "SK_GL" ]
}