Chinmay Garde 7bd544a79c [Impeller] Fix failing CanDrawWithBlendColorFilter test. (flutter/engine#33731)
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.
2022-05-31 17:34:55 -07:00
..