Skip to content

Add image request priority debug overlay#56970

Open
sammy-SC wants to merge 2 commits into
facebook:mainfrom
sammy-SC:export-D106363533
Open

Add image request priority debug overlay#56970
sammy-SC wants to merge 2 commits into
facebook:mainfrom
sammy-SC:export-D106363533

Conversation

@sammy-SC
Copy link
Copy Markdown
Contributor

Summary: Add an opt-in RCT_IMAGE_REQUEST_PRIORITY_DEBUG_OVERLAY label for Fabric image component views so local debugging can show whether an image request is using immediate priority or the offscreen prefetch path.

Differential Revision: D106363533

sammy-SC added 2 commits May 26, 2026 04:17
Summary: Use Fabric layout data to classify image shadow nodes as visible or offscreen on Apple platforms. Offscreen image requests now use `ImageRequestPriority::Prefetch`, which is bridged to the existing `RCTImageLoaderPriorityPrefetch` API, while visible images stay at `Immediate`; the new React Native feature flag defaults to `false` until app-specific gating wires it up.

Differential Revision: D106074485
Summary: Add an opt-in `RCT_IMAGE_REQUEST_PRIORITY_DEBUG_OVERLAY` label for Fabric image component views so local debugging can show whether an image request is using immediate priority or the offscreen prefetch path.

Differential Revision: D106363533
@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label May 26, 2026
@meta-codesync
Copy link
Copy Markdown

meta-codesync Bot commented May 26, 2026

@sammy-SC has exported this pull request. If you are a Meta employee, you can view the originating Diff in D106363533.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant