mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
devtools: improve ID Naming for better readability and context (#35942)
Signed-off-by: atbrakhi <atbrakhi@igalia.com>
This commit is contained in:
parent
7594dc6991
commit
eb2ca42824
7 changed files with 60 additions and 60 deletions
|
@ -16,7 +16,7 @@ use crate::actors::timeline::HighResolutionStamp;
|
|||
|
||||
pub struct FramerateActor {
|
||||
name: String,
|
||||
pipeline: PipelineId,
|
||||
pipeline_id: PipelineId,
|
||||
script_sender: IpcSender<DevtoolScriptControlMsg>,
|
||||
is_recording: bool,
|
||||
ticks: Vec<HighResolutionStamp>,
|
||||
|
@ -49,7 +49,7 @@ impl FramerateActor {
|
|||
let actor_name = registry.new_name("framerate");
|
||||
let mut actor = FramerateActor {
|
||||
name: actor_name.clone(),
|
||||
pipeline: pipeline_id,
|
||||
pipeline_id,
|
||||
script_sender,
|
||||
is_recording: false,
|
||||
ticks: Vec::new(),
|
||||
|
@ -64,7 +64,7 @@ impl FramerateActor {
|
|||
self.ticks.push(HighResolutionStamp::wrap(tick));
|
||||
|
||||
if self.is_recording {
|
||||
let msg = DevtoolScriptControlMsg::RequestAnimationFrame(self.pipeline, self.name());
|
||||
let msg = DevtoolScriptControlMsg::RequestAnimationFrame(self.pipeline_id, self.name());
|
||||
self.script_sender.send(msg).unwrap();
|
||||
}
|
||||
}
|
||||
|
@ -80,7 +80,7 @@ impl FramerateActor {
|
|||
|
||||
self.is_recording = true;
|
||||
|
||||
let msg = DevtoolScriptControlMsg::RequestAnimationFrame(self.pipeline, self.name());
|
||||
let msg = DevtoolScriptControlMsg::RequestAnimationFrame(self.pipeline_id, self.name());
|
||||
self.script_sender.send(msg).unwrap();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue