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

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

Merged
merged 2 commits into from Dec 7, 2018

Conversation

@emilio
Copy link
Member

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 Dec 7, 2018
@kvark
kvark approved these changes Dec 7, 2018
@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

bors-servo commented Dec 7, 2018

📌 Commit 1c62063 has been approved by kvark

@bors-servo
Copy link
Contributor

bors-servo commented Dec 7, 2018

Testing commit 1c62063 with merge 03f5a61...

bors-servo added 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

bors-servo commented Dec 7, 2018

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

@bors-servo bors-servo merged commit 1c62063 into master Dec 7, 2018
3 checks passed
3 checks passed
continuous-integration/travis-ci/pr The Travis CI build passed
Details
continuous-integration/travis-ci/push The Travis CI build passed
Details
homu Test successful
Details
@emilio emilio deleted the flatten-transform branch Dec 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants
You can’t perform that action at this time.