You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Expose nodes needing layout or paint from PipelineOwner #166147
I'm working on a "session replay" package, where we periodically scan the render tree, redact images and text, and serialize the approximate appearance so that a user session can be later viewed by a product team (as part of user research or similar).
One optimization I'd like to make is to skip subtrees where nothing has changed since our last scan, and reuse the previous serialization. To do this, I would need to know which render objects have been invalidated (roughly, marked for painting or layout) since my last scan.
My team previously proposed https://flutter.dev/go/ondirtycallbacks to solve this. Discussion on that doc led to a decision that a better solution would be to expose PipelineOwner._nodesNeedingLayout and PipelineOwner._nodesNeedingPaint to subclasses, as this solves the same problem in a more performant manner.
Proposal
Add public @protected getters for the existing PipelineOwner._nodesNeedingLayout and PipelineOwner._nodesNeedingPaint so that subclasses may access these fields and use them as part of feature sets which augment the rendering pipeline.
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.
Activity
Public nodes needing paint or layout (#166148)
chunhtai commentedon Apr 1, 2025
closed via #166148
github-actions commentedon Apr 15, 2025
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.