diff options
author | atbrakhi <atbrakhi@igalia.com> | 2025-03-13 08:36:54 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-13 07:36:54 +0000 |
commit | eb2ca42824716faeab4cf31e275bb4136cc38e7d (patch) | |
tree | a9ece528c91730fe55bbcd9ab02756cb23fe6b8f /components/devtools/actors/framerate.rs | |
parent | 7594dc69916f3c4d8ce771e1ef990b6d223eb158 (diff) | |
download | servo-eb2ca42824716faeab4cf31e275bb4136cc38e7d.tar.gz servo-eb2ca42824716faeab4cf31e275bb4136cc38e7d.zip |
devtools: improve ID Naming for better readability and context (#35942)
Signed-off-by: atbrakhi <atbrakhi@igalia.com>
Diffstat (limited to 'components/devtools/actors/framerate.rs')
-rw-r--r-- | components/devtools/actors/framerate.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/components/devtools/actors/framerate.rs b/components/devtools/actors/framerate.rs index 6a3a59b791f..1ea5f007170 100644 --- a/components/devtools/actors/framerate.rs +++ b/components/devtools/actors/framerate.rs @@ -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(); } |