Skip to content

[Optimize][Clay] Reconcile early exposure targets - #8841

Merged
jianliang00 merged 1 commit into
developfrom
shadow/p/ci_lynx/clay_early_exposure_develop_20260824
Aug 24, 2026
Merged

[Optimize][Clay] Reconcile early exposure targets#8841
jianliang00 merged 1 commit into
developfrom
shadow/p/ci_lynx/clay_early_exposure_develop_20260824

Conversation

@Neilcc

@Neilcc Neilcc commented Aug 24, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c1e89de098

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

page_view_->page_view()->SendGlobalExposureEvent();
return true;
}
if (!observer->TryNotifyAppearWithoutGeometry()) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Do not mark offscreen direct children as exposed

When a direct PageView child registers uiappear before insertion but has zero-sized or offscreen bounds, the normal OnAttach geometry check correctly leaves it unexposed, but this call unconditionally invokes NotifyExposureEvent(true) without checking intersection. Because the feature is enabled by default, such a child emits a false uiappear and any configured global exposure event, enters kExposed, and may then emit an immediate uidisappear on the next geometry check despite never having been visible.

Useful? React with 👍 / 👎.

@jianliang00
jianliang00 force-pushed the shadow/p/ci_lynx/clay_early_exposure_develop_20260824 branch from c1e89de to de43058 Compare August 24, 2026 09:36
- Notify eligible direct PageView children on first attachment and reconcile deferred candidates when the host becomes visible.
- Reconcile large observed descendants after their layout chain becomes ready while preserving existing geometry and frame-scan fallbacks.
- Keep the behavior self-contained without temporary trace instrumentation, test-only changes, or new runtime service dependencies.

TEST: clang-format and git diff --check; repository pre-push checks.

AutoLand: release/4.2
@jianliang00
jianliang00 force-pushed the shadow/p/ci_lynx/clay_early_exposure_develop_20260824 branch from de43058 to 7e64bec Compare August 24, 2026 12:43
@jianliang00
jianliang00 merged commit 00a0cd9 into develop Aug 24, 2026
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants