mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
deps: Upgrade to webrender@0.66
(#35325)
In addition to some small API changes, this downstream version of
WebRender no longer depends on a very old version of time. This is the
last step toward removing the dependency on `time0.1`.
The review for this commit should also include: 9f552bebab
Signed-off-by: Martin Robinson <mrobinson@igalia.com>
This commit is contained in:
parent
4721f47190
commit
643885e6f1
32 changed files with 72 additions and 76 deletions
|
@ -7,7 +7,7 @@ use std::sync::LazyLock;
|
|||
use num_traits::Zero;
|
||||
use regex::Regex;
|
||||
pub use script_bindings::str::*;
|
||||
use time_03::{Date, Month, OffsetDateTime, Time, Weekday};
|
||||
use time::{Date, Month, OffsetDateTime, Time, Weekday};
|
||||
|
||||
/// <https://html.spec.whatwg.org/multipage/#parse-a-month-component>
|
||||
fn parse_month_component(value: &str) -> Option<(i32, u32)> {
|
||||
|
|
|
@ -8,7 +8,7 @@ use dom_struct::dom_struct;
|
|||
use js::rust::HandleObject;
|
||||
use net_traits::filemanager_thread::SelectedFile;
|
||||
use script_traits::serializable::BlobImpl;
|
||||
use time_03::{Duration, OffsetDateTime};
|
||||
use time::{Duration, OffsetDateTime};
|
||||
|
||||
use crate::dom::bindings::codegen::Bindings::FileBinding;
|
||||
use crate::dom::bindings::codegen::Bindings::FileBinding::FileMethods;
|
||||
|
|
|
@ -30,7 +30,7 @@ use servo_atoms::Atom;
|
|||
use style::attr::AttrValue;
|
||||
use style::str::{split_commas, str_join};
|
||||
use style_dom::ElementState;
|
||||
use time_03::{Month, OffsetDateTime, Time};
|
||||
use time::{Month, OffsetDateTime, Time};
|
||||
use unicode_bidi::{bidi_class, BidiClass};
|
||||
use url::Url;
|
||||
|
||||
|
|
|
@ -256,6 +256,7 @@ impl VideoFrameRenderer for MediaFrameRenderer {
|
|||
id: ExternalImageId(self.player_id.unwrap()),
|
||||
channel_index: 0,
|
||||
image_type: ExternalImageType::TextureHandle(texture_target),
|
||||
normalized_uvs: false,
|
||||
})
|
||||
} else {
|
||||
SerializableImageData::Raw(IpcSharedMemory::from_bytes(&frame.get_data()))
|
||||
|
@ -289,6 +290,7 @@ impl VideoFrameRenderer for MediaFrameRenderer {
|
|||
id: ExternalImageId(self.player_id.unwrap()),
|
||||
channel_index: 0,
|
||||
image_type: ExternalImageType::TextureHandle(texture_target),
|
||||
normalized_uvs: false,
|
||||
})
|
||||
} else {
|
||||
SerializableImageData::Raw(IpcSharedMemory::from_bytes(&frame.get_data()))
|
||||
|
|
|
@ -656,7 +656,7 @@ macro_rules! rooted_vec {
|
|||
macro_rules! impl_performance_entry_struct(
|
||||
($binding:ident, $struct:ident, $type:expr) => (
|
||||
use base::cross_process_instant::CrossProcessInstant;
|
||||
use time_03::Duration;
|
||||
use time::Duration;
|
||||
|
||||
use crate::dom::bindings::reflector::reflect_dom_object;
|
||||
use crate::dom::bindings::root::DomRoot;
|
||||
|
|
|
@ -8,7 +8,7 @@ use std::collections::VecDeque;
|
|||
|
||||
use base::cross_process_instant::CrossProcessInstant;
|
||||
use dom_struct::dom_struct;
|
||||
use time_03::Duration;
|
||||
use time::Duration;
|
||||
|
||||
use super::bindings::refcounted::Trusted;
|
||||
use crate::dom::bindings::cell::DomRefCell;
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
use base::cross_process_instant::CrossProcessInstant;
|
||||
use dom_struct::dom_struct;
|
||||
use time_03::Duration;
|
||||
use time::Duration;
|
||||
|
||||
use super::performance::ToDOMHighResTimeStamp;
|
||||
use crate::dom::bindings::codegen::Bindings::PerformanceBinding::DOMHighResTimeStamp;
|
||||
|
@ -22,7 +22,7 @@ pub(crate) struct PerformanceEntry {
|
|||
entry_type: DOMString,
|
||||
#[no_trace]
|
||||
start_time: Option<CrossProcessInstant>,
|
||||
/// The duration of this [`PerformanceEntry`]. This is a [`time_03::Duration`],
|
||||
/// The duration of this [`PerformanceEntry`]. This is a [`time::Duration`],
|
||||
/// because it can be negative and `std::time::Duration` cannot be.
|
||||
#[no_trace]
|
||||
#[ignore_malloc_size_of = "No MallocSizeOf support for `time` crate"]
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
use base::cross_process_instant::CrossProcessInstant;
|
||||
use dom_struct::dom_struct;
|
||||
use script_traits::ProgressiveWebMetricType;
|
||||
use time_03::Duration;
|
||||
use time::Duration;
|
||||
|
||||
use crate::dom::bindings::reflector::reflect_dom_object;
|
||||
use crate::dom::bindings::root::DomRoot;
|
||||
|
|
|
@ -6,7 +6,7 @@ use base::cross_process_instant::CrossProcessInstant;
|
|||
use dom_struct::dom_struct;
|
||||
use net_traits::ResourceFetchTiming;
|
||||
use servo_url::ServoUrl;
|
||||
use time_03::Duration;
|
||||
use time::Duration;
|
||||
|
||||
use crate::dom::bindings::codegen::Bindings::PerformanceBinding::DOMHighResTimeStamp;
|
||||
use crate::dom::bindings::codegen::Bindings::PerformanceResourceTimingBinding::PerformanceResourceTimingMethods;
|
||||
|
|
|
@ -6,7 +6,7 @@ use std::ops::Deref;
|
|||
|
||||
use base::cross_process_instant::CrossProcessInstant;
|
||||
use dom_struct::dom_struct;
|
||||
use time_03::Duration;
|
||||
use time::Duration;
|
||||
|
||||
use crate::dom::bindings::codegen::Bindings::DocumentBinding::DocumentVisibilityState;
|
||||
use crate::dom::bindings::codegen::Bindings::PerformanceEntryBinding::PerformanceEntryMethods;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue