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

Remove azure canvas backend #25841

Merged
merged 1 commit into from Feb 26, 2020
Merged

Remove azure canvas backend #25841

merged 1 commit into from Feb 26, 2020

Conversation

@dralley
Copy link
Contributor

dralley commented Feb 25, 2020

closes #25833

Issue description: Now that the raqote backend has reached feature parity and been enabled by default, we should remove the unused azure backend entirely.

  • ./mach build -d does not report any errors
  • ./mach test-tidy does not report any errors
  • These changes fix #25833
  • There are tests for these changes OR
  • These changes do not require tests because PR only removes code, doesn't add new code
closes #25833
@highfive
Copy link

highfive commented Feb 25, 2020

Thanks for the pull request, and welcome! The Servo team is excited to review your changes, and you should hear from @SimonSapin (or someone else) soon.

@highfive
Copy link

highfive commented Feb 25, 2020

Heads up! This PR modifies the following files:

  • @wafflespeanut: python/tidy/servo_tidy_tests/rust_tidy.rs, python/servo/command_base.py, python/tidy/servo_tidy/licenseck.py
@highfive
Copy link

highfive commented Feb 25, 2020

warning Warning warning

  • These commits modify gfx code, but no tests are modified. Please consider adding a test!
@dralley
Copy link
Contributor Author

dralley commented Feb 25, 2020

Unfortunately, as I'm on Fedora 31, I don't think I can currently actually build servo. I'll have to figure something out, maybe run Fedora 29/30 in a VM...

@@ -23,6 +23,7 @@ use webrender_api::units::RectExt as RectExt_;
/// further operations to it in device space. When it's time to
/// draw the path, we convert it back to userspace and draw it
/// with the correct transform applied.
/// TODO: De-abstract now that Azure is removed?

This comment has been minimized.

@dralley

dralley Feb 25, 2020

Author Contributor

I can remove these comments or change the format, I don't know what the plan is here.

This comment has been minimized.

@dralley

dralley Feb 25, 2020

Author Contributor

Is de-abstracting these things also considered part of the issue?

This comment has been minimized.

@SimonSapin

SimonSapin Feb 25, 2020

Member

Merging the code removing is a good step even if a now-unnecessary abstraction is still there. Leaving a TODO or FIXME comment is fine.

This comment has been minimized.

@SimonSapin

SimonSapin Feb 25, 2020

Member

@pcwalton Do you think we should keep this abstraction around in case we want to add a Pathfinder backend at some point?

use azure::azure_hl::{ AntialiasMode, Color, ColorPattern, CompositionOp };
use azure::azure_hl::{AntialiasMode, Color,
use raqote::{GradientStop, Source, SolidSource};
use raqote::{Source, SolidSource},

This comment has been minimized.

@dralley

dralley Feb 25, 2020

Author Contributor

I just picked random structs, not sure if I'm still matching the intention of the tests.

This comment has been minimized.

@dralley

dralley Feb 25, 2020

Author Contributor

@SimonSapin I just noticed -- I didn't preserve the extraneous whitespace on the first line here.

This comment has been minimized.

@SimonSapin

SimonSapin Feb 25, 2020

Member

Does ./mach test-tidy --self-test succeed for you? If not adjust files until it does, make or amend commits, and push or force-push to this PR again.

@SimonSapin
Copy link
Member

SimonSapin commented Feb 25, 2020

Looks good, thanks!

@bors-servo r+

@bors-servo
Copy link
Contributor

bors-servo commented Feb 25, 2020

📌 Commit 430a65b has been approved by SimonSapin

@bors-servo
Copy link
Contributor

bors-servo commented Feb 25, 2020

Testing commit 430a65b with merge 4576de9...

@bors-servo
Copy link
Contributor

bors-servo commented Feb 26, 2020

☀️ Test successful - status-taskcluster
Approved by: SimonSapin
Pushing 4576de9 to master...

@bors-servo bors-servo merged commit 4576de9 into servo:master Feb 26, 2020
2 checks passed
2 checks passed
Community-TC (pull_request) TaskGroup: success
Details
homu Test successful
Details
@dralley dralley deleted the dralley:remove-azure branch Feb 26, 2020
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.

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