mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
clippy: Fix large size difference between variants of ScriptToCompositorMsg
(#33690)
* clippy: Fix large size difference between variants in components/shared/webrender/lib.rs Signed-off-by: chickenleaf <vyaan2000@gmail.com> * clippy: Fix large size difference between variants of ScriptToCompositorMsg Signed-off-by: chickenleaf <vyaan2000@gmail.com> * Remove trailing white space Signed-off-by: Martin Robinson <mrobinson@igalia.com> --------- Signed-off-by: chickenleaf <vyaan2000@gmail.com> Signed-off-by: Martin Robinson <mrobinson@igalia.com> Co-authored-by: Martin Robinson <mrobinson@igalia.com>
This commit is contained in:
parent
76cdb0173e
commit
77f7b43548
1 changed files with 2 additions and 3 deletions
|
@ -228,7 +228,7 @@ pub enum ScriptToCompositorMsg {
|
|||
/// Inform WebRender of a new display list for the given pipeline.
|
||||
SendDisplayList {
|
||||
/// The [CompositorDisplayListInfo] that describes the display list being sent.
|
||||
display_list_info: CompositorDisplayListInfo,
|
||||
display_list_info: Box<CompositorDisplayListInfo>,
|
||||
/// A descriptor of this display list used to construct this display list from raw data.
|
||||
display_list_descriptor: BuiltDisplayListDescriptor,
|
||||
/// An [ipc::IpcBytesReceiver] used to send the raw data of the display list.
|
||||
|
@ -337,13 +337,12 @@ impl WebRenderScriptApi {
|
|||
let (display_list_data, display_list_descriptor) = list.into_data();
|
||||
let (display_list_sender, display_list_receiver) = ipc::bytes_channel().unwrap();
|
||||
if let Err(e) = self.0.send(ScriptToCompositorMsg::SendDisplayList {
|
||||
display_list_info,
|
||||
display_list_info: Box::new(display_list_info),
|
||||
display_list_descriptor,
|
||||
display_list_receiver,
|
||||
}) {
|
||||
warn!("Error sending display list: {}", e);
|
||||
}
|
||||
|
||||
if let Err(error) = display_list_sender.send(&display_list_data.items_data) {
|
||||
warn!("Error sending display list items: {}", error);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue