mirror of
https://github.com/servo/servo.git
synced 2025-07-24 07:40:27 +01:00
Don't expect a native_window when using webrender
This commit is contained in:
parent
81f6e70a62
commit
aac7101593
2 changed files with 19 additions and 8 deletions
|
@ -128,7 +128,7 @@ impl PaintListener for Box<CompositorProxy + 'static + Send> {
|
|||
// just return None in this case, since the paint thread
|
||||
// will exit shortly and never actually be requested
|
||||
// to paint buffers by the compositor.
|
||||
port.recv().ok()
|
||||
port.recv().unwrap_or(None)
|
||||
}
|
||||
|
||||
fn assign_painted_buffers(&mut self,
|
||||
|
@ -179,7 +179,7 @@ pub enum Msg {
|
|||
/// Requests the compositor's graphics metadata. Graphics metadata is what the painter needs
|
||||
/// to create surfaces that the compositor can see. On Linux this is the X display; on Mac this
|
||||
/// is the pixel format.
|
||||
GetNativeDisplay(Sender<NativeDisplay>),
|
||||
GetNativeDisplay(Sender<Option<NativeDisplay>>),
|
||||
|
||||
/// Tells the compositor to create or update the layers for a pipeline if necessary
|
||||
/// (i.e. if no layer with that ID exists).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue