-
Notifications
You must be signed in to change notification settings - Fork 6k
Allow creating slimpeller engine variants. #51824
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,6 +28,13 @@ declare_args() { | |
#TODO(cyanglaz): Remove above comment about test flag when the entire iOS embedder supports app extension | ||
#https://github.com/flutter/flutter/issues/124289 | ||
darwin_extension_safe = false | ||
|
||
# Whether binary size optimizations with the assumption that Impeller is the | ||
# only supported rendering engine are enabled. | ||
# | ||
# See [go/slimpeller-dashboard](https://github.com/orgs/flutter/projects/21) | ||
# for details. | ||
slimpeller = false | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nit, let's use a less cute name, like remove_skia_gpu_backend please. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Guessing that this is going to be used for ifdef guards around the Skia GPU code. In that case, we might want to avoid double negatives ( There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah seems reasonable, just something that isn't a codename or a double negative! There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The dashboard tracks more than just removing Skia GPU with this effort (like removing the built-in codecs as well as the Skia software backend).
Why? Did I miss a memo? To borrow your phrase, I am not taking suggestions for an alternate name at this time. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If you are making a joke and I don't get the reference (the link you provided is an internal link that probably should not be linked here in general) feel free to ignore.... but if not - this is team project, and I would not possibly be able to know that "slimpeller = true" means, for example, the built-in codecs change, and I suspect that goes the same for our gardeners and rollers. If tl;dr: Not trying to be persnickety, I'm trying to make future debugging easier. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The link I provided is obfuscated behind a UUID. So you can't read it if you aren't on the channel (you are). But, yeah, the context is that that we added Back to the point though, I need one simple engine variant I can wire up on CI where the various action items listed on the dashboard can be implemented and their size binary size impact tracked. All items related to this effort are tracked on a dashboard and labelled. What the flag does is documented in GN file as well as the help string for I am not trying to do this to be cute. Need one variant I can put on CI that tracks an evolving effort (that does more than Skia GPU removal). There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. aside: I am perfectly fine with renaming I strongly don't think we should be using code names like this. An engine variant does not have to be tied to a single flag (you can setup the variant and flip the flags however you want), that is, you can create a What I am asking for is to pick flags that accurately explain what something is doing, in so far that a gardener, sheriff, google3 roller, or even a client name downstream will be able to understand why something might have impacted or broke them. This is a very reasonable request, but I'm also happy to bring up at the weekly and get other opinions if comes to that. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Impeller is a codename, so is flow, so is Skia. I obviously feel less strongly about codenames. No Flutter user/developer cares about these. But these are already part of the lexicon of the sheriffs and gardeners (who are neither real sheriffs nor gardners). There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ok, request withdrawn. |
||
} | ||
|
||
# feature_defines_list --------------------------------------------------------- | ||
|
@@ -62,6 +69,10 @@ if (flutter_runtime_mode == "debug") { | |
feature_defines_list += [ "FLUTTER_RUNTIME_MODE=0" ] | ||
} | ||
|
||
if (slimpeller) { | ||
feature_defines_list += [ "SLIMPELLER=1" ] | ||
} | ||
|
||
if (is_ios || is_mac) { | ||
flutter_cflags_objc = [ | ||
"-Werror=overriding-method-mismatch", | ||
|
Uh oh!
There was an error while loading. Please reload this page.