Pooled moves: the move's helpers private to the texture module

AliasCount and Device::pooled_move_image were pub(super) while the Image they name is private to
the texture module, which rustc warned of (private_interfaces); both are used only by the texture
module and its storage_form child, so they are private now.

Verified: the M3 build of the runtime and validation tests (job m3-max-8152) gave that warning
alone.

(cherry picked from commit 9f01a92463846b3f7e5f36d06db44a4a141ab179)
This commit is contained in:
Anees Iqbal committed 2026-11-08 05:22:32 -08:00
1 parent 016c09572a
commit 642873f4e8
1 file changed
+3 -3
+3 -3
View File
@@ -858,7 +858,7 @@ type Aliased = Result<(Arc<Image>, AliasCount), (String, Option<ShadowCause>)>;
/// the texture is made (`Device::storage_over_buffer`), or as a shadow made before its pooled
/// class's verdicts moves to it (`texture/storage_form.rs`).
#[derive(Clone, Copy)]
pub(super) struct AliasCount {
struct AliasCount {
/// A `DRM_FORMAT_MOD_LINEAR` image at Metal's pitch (`WorkCounts::pooled_pitched_images`).
pitched: bool,
/// Its rows (or slices) lie apart over bytes its buffer declares unobserved
@@ -870,7 +870,7 @@ pub(super) struct AliasCount {
impl AliasCount {
/// Count the image in `counts`.
pub(super) fn count(self, counts: &crate::work_counts::Counters) {
fn count(self, counts: &crate::work_counts::Counters) {
if self.pitched {
counts.pooled_pitched_image();
}
@@ -3108,7 +3108,7 @@ impl Device {
/// with, over `texels`: the image the texture would have been made with had the verdict been
/// known then ([`alias_over_device`](Self::alias_over_device), of its declared plan), with what
/// it counts as it moves in; `None` where the device makes none.
pub(super) fn pooled_move_image(
fn pooled_move_image(
&self,
pending: &in_place::PendingMove,
texels: &Texels,