7bd544a79c9051aaf7bb37bd47ed56084e1fb9ac
Fixes https://github.com/flutter/flutter/issues/105071. Lets use switches instead of maps. First, they don't encounter runtime constructors. Second, they will yell at static analysis if there is a missing case (as long as we don't have `default`s). Also fixed a Metal validation issue. Since we weren't sampling from the source in case of a foreground, we weren't binding a texture and sampler at that location. I just bound the dest to that spot and everyone is happy. We won't actually sample from that binding.
Description
Languages
Dart
75.4%
C++
16.4%
Objective-C++
2.7%
Java
2.7%
Objective-C
0.6%
Other
1.8%