Skip to content

transform3d: Introduce Transform3D::project_to_2d to flatten a transform #310

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

Merged
merged 2 commits into from
Dec 7, 2018

Conversation

emilio
Copy link
Member

@emilio emilio commented Dec 7, 2018

Need to use this for servo/webrender#3394.

The normalization of perspective is not necessary but Gecko does it as a
performance optimization, and ScaleOffset in WR wouldn't handle this.

See: https://bugzilla.mozilla.org/show_bug.cgi?id=1241161

But in any case I'm happy to teach ScaleOffset about that case instead if you
think it's better.


This change is Reviewable

@emilio
Copy link
Member Author

emilio commented Dec 7, 2018

r? @kvark or @nical

…orm.

Need to use this for servo/webrender#3394.

The normalization of perspective is not necessary but Gecko does it as a
performance optimization, and ScaleOffset in WR wouldn't handle this.

See: https://bugzilla.mozilla.org/show_bug.cgi?id=1241161

But in any case I'm happy to teach ScaleOffset about that case instead if you
think it's better.
@emilio emilio force-pushed the flatten-transform branch from ac42b16 to aa0ed0c Compare December 7, 2018 17:45
@kvark
Copy link
Member

kvark commented Dec 7, 2018

Might need a patch version bump as well 👍

@emilio
Copy link
Member Author

emilio commented Dec 7, 2018

Good point.

@bors-servo r=kvark

@bors-servo
Copy link
Contributor

📌 Commit 1c62063 has been approved by kvark

@bors-servo
Copy link
Contributor

⌛ Testing commit 1c62063 with merge 03f5a61...

bors-servo pushed a commit that referenced this pull request Dec 7, 2018
transform3d: Introduce Transform3D::project_to_2d to flatten a transform

Need to use this for servo/webrender#3394.

The normalization of perspective is not necessary but Gecko does it as a
performance optimization, and ScaleOffset in WR wouldn't handle this.

See: https://bugzilla.mozilla.org/show_bug.cgi?id=1241161

But in any case I'm happy to teach ScaleOffset about that case instead if you
think it's better.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/euclid/310)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

☀️ Test successful - status-travis
Approved by: kvark
Pushing 03f5a61 to master...

@bors-servo bors-servo merged commit 1c62063 into master Dec 7, 2018
@emilio emilio deleted the flatten-transform branch December 7, 2018 19:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants