Rename GradientStops to Gradient and the legacy Gradient/Fill structs to LegacyGradient/LegacyFill

This commit is contained in:
Keavon Chambers
2026-07-20 15:27:21 -07:00
committed by Dennis Kobert
parent e10d56c261
commit d13f926da3
45 changed files with 296 additions and 300 deletions

View File

@@ -590,7 +590,7 @@ mod tests {
async fn rasterize<T: Send + Clone>(
_: impl Ctx,
_: (),
#[implementations(List<Vector>, List<Raster<CPU>>, List<Graphic>, List<Color>, List<GradientStops>)] data: List<T>,
#[implementations(List<Vector>, List<Raster<CPU>>, List<Graphic>, List<Color>, List<Gradient>)] data: List<T>,
footprint: Footprint,
canvas: CanvasHandle,
) -> (Raster<CPU>, Attr<Transform>, OwnedAttr<EditorMergedLayers>) {
@@ -599,7 +599,7 @@ mod tests {
),
);
assert!(entries.contains("fn rasterize_entries"), "a registrable record-io source must emit its entries fn");
for element in ["Vector", "Raster < CPU >", "Graphic", "Color", "GradientStops"] {
for element in ["Vector", "Raster < CPU >", "Graphic", "Color", "Gradient"] {
let row = format!("record_source_type :: < List < {element} > > ()");
assert!(entries.contains(&row), "the implementations row {element} is missing: {entries}");
}

View File

@@ -2186,10 +2186,10 @@ mod tests {
#[implementations(
() -> List<Raster<CPU>>,
() -> List<Color>,
() -> List<GradientStops>,
() -> List<Gradient>,
Footprint -> List<Raster<CPU>>,
Footprint -> List<Color>,
Footprint -> List<GradientStops>,
Footprint -> List<Gradient>,
)]
image: impl Node<F, Output = T>,
) -> T {