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:
Dzmitry Malyshau 2020-07-23 23:29:54 +00:00
Родитель 9d9bde39d2
Коммит 4569cc4aa1
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -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;
} }
} }