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

Update WR (render notifier API changes). #18986

Merged
merged 2 commits into from Oct 24, 2017

Conversation

glennw
Copy link
Member

@glennw glennw commented Oct 23, 2017

These changes fix #13480.

This change is Reviewable

@highfive
Copy link

Heads up! This PR modifies the following files:

  • @paulrouget: components/compositing/compositor_thread.rs, components/servo/lib.rs, components/compositing/compositor.rs, components/compositing/lib.rs

@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label Oct 23, 2017
@glennw
Copy link
Member Author

glennw commented Oct 23, 2017

r? @jdm

This includes your commit in #18976, and a follow up commit that (a) updates Cargo.lock (b) updates your commit with the final WR changes.

Your original commit looks good to me.

RenderNotifier {
compositor_proxy: compositor_proxy,
}
}
}

impl webrender_api::RenderNotifier for RenderNotifier {
fn new_frame_ready(&mut self) {
fn clone(&self) -> Box<webrender_api::RenderNotifier> {
Box::new(RenderNotifier::new(self.compositor_proxy.clone()))
Copy link
Member

Choose a reason for hiding this comment

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

Can this be just Box::new(self.clone())

Copy link
Member

Choose a reason for hiding this comment

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

I feel like it becomes awkward calling self.clone() inside of a method named clone. I would rather leave it.

@jdm
Copy link
Member

jdm commented Oct 23, 2017

@bors-servo: r+

@bors-servo
Copy link
Contributor

📌 Commit be9d521 has been approved by jdm

@highfive highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-awaiting-review There is new code that needs to be reviewed. labels Oct 23, 2017
@bors-servo
Copy link
Contributor

⌛ Testing commit be9d521 with merge 51ba23d...

bors-servo pushed a commit that referenced this pull request Oct 23, 2017
Update WR (render notifier API changes).

These changes fix #13480.

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

💔 Test failed - linux-rel-css

@highfive highfive added S-tests-failed The changes caused existing tests to fail. and removed S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. labels Oct 23, 2017
@jdm
Copy link
Member

jdm commented Oct 23, 2017

It looks like something changed related to borders since the last WR update:

  ▶ FAIL [expected PASS] /css21_dev/html4/border-left-color-applies-to-003.htm
  └   → /css21_dev/html4/border-left-color-applies-to-003.htm 013a961068b0ccf85b71b6a479cc98e9fc77e102
/css21_dev/html4/reference/border-left-applies-to-001-ref.htm cef4f31905a1f467d5997afb9f0898584bf7d55f
Testing 013a961068b0ccf85b71b6a479cc98e9fc77e102 == cef4f31905a1f467d5997afb9f0898584bf7d55f

  ▶ FAIL [expected PASS] /css21_dev/html4/border-left-applies-to-002.htm
  └   → /css21_dev/html4/border-left-applies-to-002.htm 013a961068b0ccf85b71b6a479cc98e9fc77e102
/css21_dev/html4/reference/border-left-applies-to-001-ref.htm cef4f31905a1f467d5997afb9f0898584bf7d55f
Testing 013a961068b0ccf85b71b6a479cc98e9fc77e102 == cef4f31905a1f467d5997afb9f0898584bf7d55f

  ▶ FAIL [expected PASS] /css21_dev/html4/border-left-width-applies-to-003.htm
  └   → /css21_dev/html4/border-left-width-applies-to-003.htm 293911574a59c7f3947436264557174a97acc7a5
/css21_dev/html4/reference/ref-filled-black-96px-square.htm f73d1fa4091b541ed29c5bc4f99358740860d9e8
Testing 293911574a59c7f3947436264557174a97acc7a5 == f73d1fa4091b541ed29c5bc4f99358740860d9e8

  ▶ FAIL [expected PASS] /css21_dev/html4/border-left-color-applies-to-001.htm
  └   → /css21_dev/html4/border-left-color-applies-to-001.htm 013a961068b0ccf85b71b6a479cc98e9fc77e102
/css21_dev/html4/reference/border-left-applies-to-001-ref.htm cef4f31905a1f467d5997afb9f0898584bf7d55f
Testing 013a961068b0ccf85b71b6a479cc98e9fc77e102 == cef4f31905a1f467d5997afb9f0898584bf7d55f

  ▶ FAIL [expected PASS] /css21_dev/html4/border-left-color-applies-to-002.htm
  └   → /css21_dev/html4/border-left-color-applies-to-002.htm 013a961068b0ccf85b71b6a479cc98e9fc77e102
/css21_dev/html4/reference/border-left-applies-to-001-ref.htm cef4f31905a1f467d5997afb9f0898584bf7d55f
Testing 013a961068b0ccf85b71b6a479cc98e9fc77e102 == cef4f31905a1f467d5997afb9f0898584bf7d55f

  ▶ FAIL [expected PASS] /css21_dev/html4/border-left-width-applies-to-002.htm
  └   → /css21_dev/html4/border-left-width-applies-to-002.htm 293911574a59c7f3947436264557174a97acc7a5
/css21_dev/html4/reference/ref-filled-black-96px-square.htm f73d1fa4091b541ed29c5bc4f99358740860d9e8
Testing 293911574a59c7f3947436264557174a97acc7a5 == f73d1fa4091b541ed29c5bc4f99358740860d9e8

  ▶ FAIL [expected PASS] /css21_dev/html4/border-left-width-applies-to-001.htm
  └   → /css21_dev/html4/border-left-width-applies-to-001.htm 293911574a59c7f3947436264557174a97acc7a5
/css21_dev/html4/reference/ref-filled-black-96px-square.htm f73d1fa4091b541ed29c5bc4f99358740860d9e8
Testing 293911574a59c7f3947436264557174a97acc7a5 == f73d1fa4091b541ed29c5bc4f99358740860d9e8

  ▶ FAIL [expected PASS] /css21_dev/html4/border-top-color-applies-to-001.htm
  └   → /css21_dev/html4/border-top-color-applies-to-001.htm f89297eefbde67ac8aecc56f3c1babac2ff57c50
/css21_dev/html4/reference/border-bottom-applies-to-001-ref.htm a8aa4b5a520585465f75aab08fdbe30bed6eb1f4
Testing f89297eefbde67ac8aecc56f3c1babac2ff57c50 == a8aa4b5a520585465f75aab08fdbe30bed6eb1f4

  ▶ FAIL [expected PASS] /css21_dev/html4/border-top-width-applies-to-003.htm
  └   → /css21_dev/html4/border-top-width-applies-to-003.htm 293911574a59c7f3947436264557174a97acc7a5
/css21_dev/html4/reference/ref-filled-black-96px-square.htm f73d1fa4091b541ed29c5bc4f99358740860d9e8
Testing 293911574a59c7f3947436264557174a97acc7a5 == f73d1fa4091b541ed29c5bc4f99358740860d9e8

  ▶ FAIL [expected PASS] /css21_dev/html4/border-top-width-applies-to-002.htm
  └   → /css21_dev/html4/border-top-width-applies-to-002.htm 293911574a59c7f3947436264557174a97acc7a5
/css21_dev/html4/reference/ref-filled-black-96px-square.htm f73d1fa4091b541ed29c5bc4f99358740860d9e8
Testing 293911574a59c7f3947436264557174a97acc7a5 == f73d1fa4091b541ed29c5bc4f99358740860d9e8

  ▶ FAIL [expected PASS] /css21_dev/html4/border-top-color-applies-to-003.htm
  └   → /css21_dev/html4/border-top-color-applies-to-003.htm f89297eefbde67ac8aecc56f3c1babac2ff57c50
/css21_dev/html4/reference/border-bottom-applies-to-001-ref.htm a8aa4b5a520585465f75aab08fdbe30bed6eb1f4
Testing f89297eefbde67ac8aecc56f3c1babac2ff57c50 == a8aa4b5a520585465f75aab08fdbe30bed6eb1f4

  ▶ FAIL [expected PASS] /css21_dev/html4/border-top-applies-to-002.htm
  └   → /css21_dev/html4/border-top-applies-to-002.htm f89297eefbde67ac8aecc56f3c1babac2ff57c50
/css21_dev/html4/reference/border-bottom-applies-to-001-ref.htm a8aa4b5a520585465f75aab08fdbe30bed6eb1f4
Testing f89297eefbde67ac8aecc56f3c1babac2ff57c50 == a8aa4b5a520585465f75aab08fdbe30bed6eb1f4

  ▶ FAIL [expected PASS] /css21_dev/html4/border-left-applies-to-001.htm
  └   → /css21_dev/html4/border-left-applies-to-001.htm 013a961068b0ccf85b71b6a479cc98e9fc77e102
/css21_dev/html4/reference/border-left-applies-to-001-ref.htm cef4f31905a1f467d5997afb9f0898584bf7d55f
Testing 013a961068b0ccf85b71b6a479cc98e9fc77e102 == cef4f31905a1f467d5997afb9f0898584bf7d55f

  ▶ FAIL [expected PASS] /css21_dev/html4/border-left-applies-to-003.htm
  └   → /css21_dev/html4/border-left-applies-to-003.htm 013a961068b0ccf85b71b6a479cc98e9fc77e102
/css21_dev/html4/reference/border-left-applies-to-001-ref.htm cef4f31905a1f467d5997afb9f0898584bf7d55f
Testing 013a961068b0ccf85b71b6a479cc98e9fc77e102 == cef4f31905a1f467d5997afb9f0898584bf7d55f

  ▶ FAIL [expected PASS] /css21_dev/html4/border-top-color-applies-to-002.htm
  └   → /css21_dev/html4/border-top-color-applies-to-002.htm f89297eefbde67ac8aecc56f3c1babac2ff57c50
/css21_dev/html4/reference/border-bottom-applies-to-001-ref.htm a8aa4b5a520585465f75aab08fdbe30bed6eb1f4
Testing f89297eefbde67ac8aecc56f3c1babac2ff57c50 == a8aa4b5a520585465f75aab08fdbe30bed6eb1f4

  ▶ FAIL [expected PASS] /css21_dev/html4/border-top-width-applies-to-001.htm
  └   → /css21_dev/html4/border-top-width-applies-to-001.htm 293911574a59c7f3947436264557174a97acc7a5
/css21_dev/html4/reference/ref-filled-black-96px-square.htm f73d1fa4091b541ed29c5bc4f99358740860d9e8
Testing 293911574a59c7f3947436264557174a97acc7a5 == f73d1fa4091b541ed29c5bc4f99358740860d9e8

  ▶ FAIL [expected PASS] /css21_dev/html4/border-top-applies-to-001.htm
  └   → /css21_dev/html4/border-top-applies-to-001.htm f89297eefbde67ac8aecc56f3c1babac2ff57c50
/css21_dev/html4/reference/border-bottom-applies-to-001-ref.htm a8aa4b5a520585465f75aab08fdbe30bed6eb1f4
Testing f89297eefbde67ac8aecc56f3c1babac2ff57c50 == a8aa4b5a520585465f75aab08fdbe30bed6eb1f4

  ▶ FAIL [expected PASS] /css21_dev/html4/border-top-applies-to-003.htm
  └   → /css21_dev/html4/border-top-applies-to-003.htm f89297eefbde67ac8aecc56f3c1babac2ff57c50
/css21_dev/html4/reference/border-bottom-applies-to-001-ref.htm a8aa4b5a520585465f75aab08fdbe30bed6eb1f4
Testing f89297eefbde67ac8aecc56f3c1babac2ff57c50 == a8aa4b5a520585465f75aab08fdbe30bed6eb1f4

@glennw
Copy link
Member Author

glennw commented Oct 23, 2017

Interesting ... Gecko seems to have updated without any test failures. I'll investigate today.

@jdm
Copy link
Member

jdm commented Oct 23, 2017

My money is on servo/webrender@635d144 since all of the failing tests have no borders drawn according to the reftest analyzer.

@jdm
Copy link
Member

jdm commented Oct 23, 2017

It may just be that we were drawing the desired borders in those tests for incorrect reasons before, and the new test results are a more accurate reflection of our table border inadequacies.

@highfive highfive added S-awaiting-review There is new code that needs to be reviewed. and removed S-tests-failed The changes caused existing tests to fail. labels Oct 23, 2017
@glennw
Copy link
Member Author

glennw commented Oct 23, 2017

@bors-servo try

@bors-servo
Copy link
Contributor

⌛ Trying commit 1da9dc9 with merge 5f886a2...

bors-servo pushed a commit that referenced this pull request Oct 23, 2017
Update WR (render notifier API changes).

These changes fix #13480.

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

@glennw
Copy link
Member Author

glennw commented Oct 24, 2017

Disabled those tests due to #18999.

r? @jdm

@jdm
Copy link
Member

jdm commented Oct 24, 2017

@bors-servo: r+

@bors-servo
Copy link
Contributor

📌 Commit 1da9dc9 has been approved by jdm

@highfive highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-awaiting-review There is new code that needs to be reviewed. labels Oct 24, 2017
@bors-servo
Copy link
Contributor

⌛ Testing commit 1da9dc9 with merge 2bcb3b4...

bors-servo pushed a commit that referenced this pull request Oct 24, 2017
Update WR (render notifier API changes).

These changes fix #13480.

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

☀️ Test successful - android, arm32, arm64, linux-dev, linux-rel-css, linux-rel-wpt, mac-dev-unit, mac-rel-css1, mac-rel-css2, mac-rel-wpt1, mac-rel-wpt2, mac-rel-wpt3, mac-rel-wpt4, windows-msvc-dev
Approved by: jdm
Pushing 2bcb3b4 to master...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment