diff options
Diffstat (limited to 'components/shared/script/lib.rs')
-rw-r--r-- | components/shared/script/lib.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/components/shared/script/lib.rs b/components/shared/script/lib.rs index d008f572048..0262cb8f785 100644 --- a/components/shared/script/lib.rs +++ b/components/shared/script/lib.rs @@ -21,6 +21,7 @@ use std::sync::Arc; use std::time::Duration; use background_hang_monitor_api::BackgroundHangMonitorRegister; +use base::cross_process_instant::CrossProcessInstant; use base::id::{ BlobId, BrowsingContextId, HistoryStateId, MessagePortId, PipelineId, PipelineNamespaceId, TopLevelBrowsingContextId, @@ -373,7 +374,7 @@ pub enum ConstellationControlMsg { /// Reload the given page. Reload(PipelineId), /// Notifies the script thread about a new recorded paint metric. - PaintMetric(PipelineId, ProgressiveWebMetricType, u64), + PaintMetric(PipelineId, ProgressiveWebMetricType, CrossProcessInstant), /// Notifies the media session about a user requested media session action. MediaSessionAction(PipelineId, MediaSessionActionType), /// Notifies script thread that WebGPU server has started @@ -382,7 +383,7 @@ pub enum ConstellationControlMsg { /// pipeline via the Constellation. SetScrollStates(PipelineId, Vec<ScrollState>), /// Send the paint time for a specific epoch. - SetEpochPaintTime(PipelineId, Epoch, u64), + SetEpochPaintTime(PipelineId, Epoch, CrossProcessInstant), } impl fmt::Debug for ConstellationControlMsg { |