mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Auto merge of #6065 - mmatyas:canvas_antialias, r=jdm
This patch turns on antialiasing for the canvas, and updates the painting code to use the updated Azure DrawOptions defined in servo/rust-azure#158. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6065) <!-- Reviewable:end -->
This commit is contained in:
commit
c97c0a9f94
11 changed files with 50 additions and 28 deletions
|
@ -250,9 +250,9 @@ fn capture(reftest: &Reftest, side: usize) -> (u32, u32, Vec<u8>) {
|
|||
.stdout(Stdio::null())
|
||||
.stderr(Stdio::null())
|
||||
.args(&reftest.servo_args[..])
|
||||
// Allows pixel perfect rendering of Ahem font for reftests.
|
||||
// Allows pixel perfect rendering of Ahem font and the HTML canvas for reftests.
|
||||
.arg("-Z")
|
||||
.arg("disable-text-aa")
|
||||
.arg("disable-text-aa,disable-canvas-aa")
|
||||
.args(&["-f", "-o"])
|
||||
.arg(&png_filename)
|
||||
.arg(&{
|
||||
|
|
|
@ -186,7 +186,7 @@ class ServoRefTestExecutor(ProcessTestExecutor):
|
|||
|
||||
with TempFilename(self.tempdir) as output_path:
|
||||
self.command = [self.binary, "--cpu", "--hard-fail", "--exit",
|
||||
"-Z", "disable-text-aa", "--output=%s" % output_path,
|
||||
"-Z", "disable-text-aa,disable-canvas-aa", "--output=%s" % output_path,
|
||||
full_url]
|
||||
|
||||
env = os.environ.copy()
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
[2d.path.arcTo.shape.curve1.html]
|
||||
type: testharness
|
||||
[arcTo() curves in the right kind of shape]
|
||||
expected:
|
||||
FAIL
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
[2d.path.arcTo.shape.curve2.html]
|
||||
type: testharness
|
||||
[arcTo() curves in the right kind of shape]
|
||||
expected:
|
||||
FAIL
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue