Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Properly support tiling clip mask images. #3220

Merged
merged 11 commits into from Oct 23, 2018

image: simplify for_each_tile_in_range.

And remove the indirect call (&mut FnMut).
  • Loading branch information
emilio committed Oct 23, 2018
commit 3de910f2c2b32456ead6a527d2816bcbcd554563
@@ -367,7 +367,7 @@ pub fn compute_tile_range(

pub fn for_each_tile_in_range(
range: &TileRange,
callback: &mut FnMut(TileOffset),
mut callback: impl FnMut(TileOffset),
) {
for y in 0..range.size.height {
for x in 0..range.size.width {
@@ -1082,7 +1082,7 @@ impl ResourceCache {
}
}

for_each_tile_in_range(&tiles, &mut|tile| {
for_each_tile_in_range(&tiles, |tile| {
let descriptor = BlobImageDescriptor {
offset: DevicePoint::new(
tile.x as f32 * tile_size as f32,
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.