This repository was archived by the owner on Feb 2, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
[ASDisplayNode] Placeholder Image bug fix #1392
Closed
hannahmbanana
wants to merge
5
commits into
facebookarchive:master
from
hannahmbanana:placeholderImage
Closed
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
e4348c0
Merge remote-tracking branch 'facebook/master'
hannahmbanana 2d1a8ff
Merge remote-tracking branch 'facebook/master'
hannahmbanana 19f0d59
Merge remote-tracking branch 'facebook/master'
hannahmbanana 4756a55
[ASDisplayNode] Placeholder Image bug fix
hannahmbanana 3f50112
Another [ASDisplayNode] bug fix
hannahmbanana File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This code is almost exactly correct, although doing it at this point Will mean that the sun elements which never become fully visible on screen may do work to re-create their placeholders as they are starting to display because of entering the off screen display range.
Because placeholders are synchronous, it is important to minimize the amount of work that it Is done to support them. Perhaps more importantly, in reviewing this I noticed a few other bugs, most notably that the network image node will remove its placeholder for the image has finished downloading because a display pass is allowed to complete on it even though it has no contents to draw.