mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Simplify devtools frame marker notification. Record each frame tick based on a single message sent from the script task that ticked.
This commit is contained in:
parent
47b9e89c66
commit
e59de75608
8 changed files with 33 additions and 72 deletions
|
@ -59,9 +59,6 @@ pub enum DevtoolsControlMsg {
|
|||
pub enum ChromeToDevtoolsControlMsg {
|
||||
/// A new client has connected to the server.
|
||||
AddClient(TcpStream),
|
||||
/// An animation frame with the given timestamp was processed in a script task.
|
||||
/// The actor with the provided name should be notified.
|
||||
FramerateTick(String, f64),
|
||||
/// The browser is shutting down.
|
||||
ServerExitMsg,
|
||||
/// A network event occurred (request, reply, etc.). The actor with the
|
||||
|
@ -79,6 +76,9 @@ pub enum ScriptToDevtoolsControlMsg {
|
|||
DevtoolsPageInfo),
|
||||
/// A particular page has invoked the console API.
|
||||
ConsoleAPI(PipelineId, ConsoleMessage, Option<WorkerId>),
|
||||
/// An animation frame with the given timestamp was processed in a script task.
|
||||
/// The actor with the provided name should be notified.
|
||||
FramerateTick(String, f64),
|
||||
}
|
||||
|
||||
/// Serialized JS return values
|
||||
|
@ -158,7 +158,7 @@ pub enum DevtoolScriptControlMsg {
|
|||
WantsLiveNotifications(PipelineId, bool),
|
||||
SetTimelineMarkers(PipelineId, Vec<TimelineMarkerType>, IpcSender<TimelineMarker>),
|
||||
DropTimelineMarkers(PipelineId, Vec<TimelineMarkerType>),
|
||||
RequestAnimationFrame(PipelineId, IpcSender<f64>),
|
||||
RequestAnimationFrame(PipelineId, String),
|
||||
}
|
||||
|
||||
#[derive(RustcEncodable, Deserialize, Serialize)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue