kFixedResolution top-level constant

bool const kFixedResolution

Whether this build renders at a fixed internal resolution.

False here: Impeller allocates its frame targets at whatever size the widget was laid out at, so the picture is native resolution on any window.

A caller reads this rather than asking which backend it got, which is the difference between branching on a property and branching on a name. It is also, deliberately, a compile-time constant — kShadowCascades-style declarations in a game's own backend.dart depend on being able to fold it at compile time. The software fallback openDevice can reach for is a runtime decision and cannot update this: a fallback frame is drawn at a fixed size too, and that is a known limit of kFixedResolution being a constant, not something this file resolves.

Implementation

const bool kFixedResolution = false;