зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1654901 - Make WR primitives invisible when failing to prepare for rendering r=gw
the problem was that paths that determined visibility were not switching it off on the primitive instance. Now it's moved one level higher. Differential Revision: https://phabricator.services.mozilla.com/D84762
This commit is contained in:
Родитель
9d9bde39d2
Коммит
4569cc4aa1
|
@ -110,6 +110,8 @@ pub fn prepare_primitives(
|
||||||
tile_caches,
|
tile_caches,
|
||||||
) {
|
) {
|
||||||
frame_state.profile_counters.visible_primitives.inc();
|
frame_state.profile_counters.visible_primitives.inc();
|
||||||
|
} else {
|
||||||
|
prim_instance.visibility_info = PrimitiveVisibilityIndex::INVALID;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -163,8 +165,6 @@ fn prepare_prim_for_render(
|
||||||
println!("\tculled for carrying an invisible composite filter");
|
println!("\tculled for carrying an invisible composite filter");
|
||||||
}
|
}
|
||||||
|
|
||||||
prim_instance.visibility_info = PrimitiveVisibilityIndex::INVALID;
|
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче