-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Closed
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listc: performanceRelates to speed or footprint issues (see "perf:" labels)Relates to speed or footprint issues (see "perf:" labels)frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.
Description
Discovered while working on #106621 , a ScaleTransform to 0 will still push a layer and paint all children even though it is technically invisible.
This code will fail to create an offset and instead push a transform like
[0] 0.0,0.0,0.0,0.0
I/flutter (21672): [1] 0.0,0.0,0.0,0.0
I/flutter (21672): [2] 0.0,0.0,1.0,0.0
I/flutter (21672): [3] 0.0,0.0,0.0,1.0
Instead we should probably short-circuit.
Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listc: performanceRelates to speed or footprint issues (see "perf:" labels)Relates to speed or footprint issues (see "perf:" labels)frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.