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

Add ANGLE rendering in Wrench #2529

Merged
merged 1 commit into from
Mar 16, 2018
Merged

Add ANGLE rendering in Wrench #2529

merged 1 commit into from
Mar 16, 2018

Conversation

SimonSapin
Copy link
Member

@SimonSapin SimonSapin commented Mar 15, 2018

The --angle command-line parameter enables it on Windows, when --headless is not also used. It panics on non-Windows.


This change is Reviewable

use glutin::os::windows::WindowExt;

// FIXME: &context_builder.pf_reqs https://github.com/tomaka/glutin/pull/1002
let pf_reqs = &glutin::PixelFormatRequirements::default();
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At the moment Wrench does not call any ContextBuilder method that touches the pixel format requirements, so using default() doesn’t make a difference.

@glennw
Copy link
Member

glennw commented Mar 16, 2018

This should cover #741.

}

// analyzing each config
macro_rules! attrib {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: could you make this a simple function instead of a macro?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is code copy/pasted from Glutin. I’d rather limit changes made to it to removing stuff, in order to make things easier in case we want to backport future changes from glutin.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fair enough.

@nical
Copy link
Contributor

nical commented Mar 16, 2018

@bors-servo r+

@bors-servo
Copy link
Contributor

📌 Commit 1b36aed has been approved by nical

@bors-servo
Copy link
Contributor

⌛ Testing commit 1b36aed with merge 01c0644...

bors-servo pushed a commit that referenced this pull request Mar 16, 2018
Add ANGLE rendering in Wrench

The `--angle` command-line parameter enables it on Windows, when `--headless` is not also used. It panics on non-Windows.

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

💔 Test failed - status-taskcluster

The `--angle` command-line parameter enables it on Windows,
when `--headless` is not also used. It panics on non-Windows.
@SimonSapin
Copy link
Member Author

@bors-servo r=nical

Tidy

@bors-servo
Copy link
Contributor

📌 Commit 06c43ed has been approved by nical

@bors-servo
Copy link
Contributor

⌛ Testing commit 06c43ed with merge f7fc88c...

bors-servo pushed a commit that referenced this pull request Mar 16, 2018
Add ANGLE rendering in Wrench

The `--angle` command-line parameter enables it on Windows, when `--headless` is not also used. It panics on non-Windows.

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

☀️ Test successful - status-appveyor, status-taskcluster, status-travis
Approved by: nical
Pushing f7fc88c to master...

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.

4 participants