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

Webrender no nativewindow #10842

Merged
merged 1 commit into from Apr 26, 2016
Merged

Conversation

@fabricedesre
Copy link
Contributor

fabricedesre commented Apr 25, 2016

@glennw this fixed the panic when using webrender and no native display is available.


This change is Reviewable

@highfive
Copy link

highfive commented Apr 25, 2016

Heads up! This PR modifies the following files:

@highfive
Copy link

highfive commented Apr 25, 2016

warning Warning warning

  • These commits modify script code, but no tests are modified. Please consider adding a test!
@@ -572,7 +577,9 @@ impl<Window: WindowMethods> IOCompositor<Window> {

(Msg::ReturnUnusedNativeSurfaces(native_surfaces),
ShutdownState::NotShuttingDown) => {
self.surface_map.insert_surfaces(&self.native_display, native_surfaces);
if self.native_display.is_some() {

This comment has been minimized.

Copy link
@frewsxcv

frewsxcv Apr 25, 2016

Member
if let Some(ref native_display) = self.native_display {
    self.surface_map.insert_surfaces(native_display, native_surfaces);
}
@@ -2309,7 +2317,9 @@ impl<Window: WindowMethods> IOCompositor<Window> {
where B: IntoIterator<Item=Box<LayerBuffer>>
{
let surfaces = buffers.into_iter().map(|buffer| buffer.native_surface);
self.surface_map.insert_surfaces(&self.native_display, surfaces);
if self.native_display.is_some() {

This comment has been minimized.

Copy link
@frewsxcv

frewsxcv Apr 25, 2016

Member

ditto if let

@fabricedesre fabricedesre force-pushed the fabricedesre:webrender-no-nativewindow branch from 3970b67 to cc3c80a Apr 25, 2016
@Manishearth
Copy link
Member

Manishearth commented Apr 25, 2016

@bors-servo
Copy link
Contributor

bors-servo commented Apr 25, 2016

📌 Commit cc3c80a has been approved by Manishearth

@bors-servo
Copy link
Contributor

bors-servo commented Apr 25, 2016

Testing commit cc3c80a with merge 67540e9...

bors-servo added a commit that referenced this pull request Apr 25, 2016
…shearth

Webrender no nativewindow

@glennw this fixed the panic when using webrender and no native display is available.

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

bors-servo commented Apr 26, 2016

💔 Test failed - linux-dev

@@ -2220,7 +2227,8 @@ impl<Window: WindowMethods> IOCompositor<Window> {
fn initialize_compositing(&mut self) {
if self.webrender.is_none() {
let show_debug_borders = opts::get().show_debug_borders;
self.context = Some(rendergl::RenderContext::new(self.native_display.clone(),
// We can unwrap() native_display because it's only None when using webrender.
self.context = Some(rendergl::RenderContext::new(self.native_display.unwrap().clone(),

This comment has been minimized.

Copy link
@Manishearth

Manishearth Apr 26, 2016

Member

Please use .expect("native_display should be Some when not using Webrender") instead of .unwrap()

@Manishearth
Copy link
Member

Manishearth commented Apr 26, 2016

@bors-servo delegate+

feel free to r=me after you fix the unwrap

@bors-servo
Copy link
Contributor

bors-servo commented Apr 26, 2016

✌️ @fabricedesre can now approve this pull request

@Manishearth
Copy link
Member

Manishearth commented Apr 26, 2016

@bors r+

@Manishearth
Copy link
Member

Manishearth commented Apr 26, 2016

@bors-servo
Copy link
Contributor

bors-servo commented Apr 26, 2016

📌 Commit 92526a4 has been approved by Manishearth

@bors-servo
Copy link
Contributor

bors-servo commented Apr 26, 2016

Testing commit 92526a4 with merge 2c7d1d1...

bors-servo added a commit that referenced this pull request Apr 26, 2016
…shearth

Webrender no nativewindow

@glennw this fixed the panic when using webrender and no native display is available.

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

bors-servo commented Apr 26, 2016

💔 Test failed - linux-dev

@@ -2220,7 +2227,9 @@ impl<Window: WindowMethods> IOCompositor<Window> {
fn initialize_compositing(&mut self) {
if self.webrender.is_none() {
let show_debug_borders = opts::get().show_debug_borders;
self.context = Some(rendergl::RenderContext::new(self.native_display.clone(),
// We can unwrap() native_display because it's only None when using webrender.

This comment has been minimized.

Copy link
@Manishearth

Manishearth Apr 26, 2016

Member

heh, CI doesn't like this comment, just make it unwrap instead of unwrap()

Run etc/ci/check_no_unwrap.sh to verify it works, and squash the commits. Feel free to @bors-servo r=Manishearth after that.

@fabricedesre fabricedesre force-pushed the fabricedesre:webrender-no-nativewindow branch from 92526a4 to aac7101 Apr 26, 2016
@fabricedesre
Copy link
Contributor Author

fabricedesre commented Apr 26, 2016

@bors-servo r=Manishearth

@bors-servo
Copy link
Contributor

bors-servo commented Apr 26, 2016

📌 Commit aac7101 has been approved by Manishearth

@bors-servo
Copy link
Contributor

bors-servo commented Apr 26, 2016

Testing commit aac7101 with merge 5ef355c...

bors-servo added a commit that referenced this pull request Apr 26, 2016
…shearth

Webrender no nativewindow

@glennw this fixed the panic when using webrender and no native display is available.

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

bors-servo commented Apr 26, 2016

@bors-servo bors-servo merged commit aac7101 into servo:master Apr 26, 2016
2 of 3 checks passed
2 of 3 checks passed
continuous-integration/appveyor/pr Waiting for AppVeyor build to complete
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
homu Test successful
Details
@fabricedesre fabricedesre deleted the fabricedesre:webrender-no-nativewindow branch Apr 26, 2016
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

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