mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-20 00:35:44 +00:00
Bug 1562989 - Fix WR frameID checks to not trigger on replay r=gw
Differential Revision: https://phabricator.services.mozilla.com/D36650 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
f4ce999b5d
commit
8f5b101ef6
@ -388,7 +388,7 @@ impl RenderTaskGraph {
|
||||
}
|
||||
|
||||
pub fn get_task_address(&self, id: RenderTaskId) -> RenderTaskAddress {
|
||||
#[cfg(debug_assertions)]
|
||||
#[cfg(all(debug_assertions, not(feature = "replay")))]
|
||||
debug_assert_eq!(self.frame_id, id.frame_id);
|
||||
RenderTaskAddress(id.index as u16)
|
||||
}
|
||||
@ -414,7 +414,7 @@ impl RenderTaskGraph {
|
||||
impl ops::Index<RenderTaskId> for RenderTaskGraph {
|
||||
type Output = RenderTask;
|
||||
fn index(&self, id: RenderTaskId) -> &RenderTask {
|
||||
#[cfg(debug_assertions)]
|
||||
#[cfg(all(debug_assertions, not(feature = "replay")))]
|
||||
debug_assert_eq!(self.frame_id, id.frame_id);
|
||||
&self.tasks[id.index as usize]
|
||||
}
|
||||
@ -422,7 +422,7 @@ impl ops::Index<RenderTaskId> for RenderTaskGraph {
|
||||
|
||||
impl ops::IndexMut<RenderTaskId> for RenderTaskGraph {
|
||||
fn index_mut(&mut self, id: RenderTaskId) -> &mut RenderTask {
|
||||
#[cfg(debug_assertions)]
|
||||
#[cfg(all(debug_assertions, not(feature = "replay")))]
|
||||
debug_assert_eq!(self.frame_id, id.frame_id);
|
||||
&mut self.tasks[id.index as usize]
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user