Skip to content

Conversation

@abarth
Copy link
Contributor

@abarth abarth commented Dec 5, 2015

Fixes #766

@abarth
Copy link
Contributor Author

abarth commented Dec 5, 2015

@Hixie

@abarth abarth force-pushed the clip_image_repeat branch from 25e28ef to e46f480 Compare December 5, 2015 18:50
@Hixie
Copy link
Contributor

Hixie commented Dec 5, 2015

Lgtm.

It's notable that we spend a lot of effort trying to make the middle image not overflow but then if we have a repeating image we just use clip. I don't see a much better solution though.

@abarth
Copy link
Contributor Author

abarth commented Dec 5, 2015

Yeah, I tried just adjust the destination rect, but that squished the images along the boarder. We'd need to adjust the source rect too. At that point, we're just implementing clipping, which skia can do just as well as us.

abarth added a commit that referenced this pull request Dec 5, 2015
Repeated background images should be clipped to the container
@abarth abarth merged commit 5bb598a into flutter:master Dec 5, 2015
@abarth abarth deleted the clip_image_repeat branch December 5, 2015 19:16
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 17, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Repeated background images should be clipped to the container

2 participants