Skip to content

Commit 4ea47b4

Browse files
b0nes164Thomas Smith
andauthored
Separate make_tiles into AA and MSAA versions. Fully cases out MSAA version (#1319)
Co-authored-by: Thomas Smith <[email protected]>
1 parent 29f618b commit 4ea47b4

File tree

5 files changed

+764
-493
lines changed

5 files changed

+764
-493
lines changed

sparse_strips/vello_bench/src/data.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ impl DataItem {
131131
pub fn unsorted_tiles(&self) -> Tiles {
132132
let mut tiles = Tiles::new(Level::new());
133133
let lines = self.lines();
134-
tiles.make_tiles::</*GEN_INT_MASK=*/false>(&lines, self.width, self.height);
134+
tiles.make_tiles_analytic_aa(&lines, self.width, self.height);
135135

136136
tiles
137137
}

sparse_strips/vello_bench/src/tile.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ pub fn tile(c: &mut Criterion) {
1717
g.bench_function($item.name.clone(), |b| {
1818
b.iter(|| {
1919
let mut tiler = Tiles::new(Level::new());
20-
tiler.make_tiles::</*GEN_INT_MASK=*/false>(&lines, $item.width, $item.height);
20+
tiler.make_tiles_analytic_aa(&lines, $item.width, $item.height);
2121
})
2222
});
2323
};

sparse_strips/vello_common/src/strip_generator.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ impl StripGenerator {
141141
}
142142

143143
self.tiles
144-
.make_tiles::</*GEN_INT_MASK=*/false>(&self.line_buf, self.width, self.height);
144+
.make_tiles_analytic_aa(&self.line_buf, self.width, self.height);
145145
self.tiles.sort_tiles();
146146

147147
if let Some(clip_path) = clip_path {

0 commit comments

Comments
 (0)