-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix issue where Core Animation rendering engine couldn't display last frame of animation when paused #2254
Merged
Fix issue where Core Animation rendering engine couldn't display last frame of animation when paused #2254
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
e925a0e
Add test case
calda 47af380
Include last frame in CAAnimations when animation is paused
calda c6647c2
Snapshot individual frames of test case
calda a9cffef
Fix issue where last frame could be blank
calda ac940e7
Update snapshots
calda 207f45a
lint
calda 165b4ad
Fix edge case with time remapping
calda 2150c3d
Clean up
calda 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 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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
This file contains 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
1 change: 1 addition & 0 deletions
1
Tests/__Snapshots__/AutomaticEngineTests/testAutomaticEngineDetection.Issues-issue_2209.txt
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Supports Core Animation engine |
Binary file modified
BIN
+20 Bytes
(100%)
Tests/__Snapshots__/CompatibleAnimationViewTests/testCompatibleAnimationView.1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+12 Bytes
(100%)
..._Snapshots__/SnapshotTests/testCoreAnimationRenderingEngine.Boat_Loader-100.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+14 Bytes
(100%)
...shots__/SnapshotTests/testCoreAnimationRenderingEngine.Issues-issue_1722-75.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+230 Bytes
(120%)
...hots__/SnapshotTests/testCoreAnimationRenderingEngine.Issues-issue_1744-100.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+12 Bytes
(100%)
...hots__/SnapshotTests/testCoreAnimationRenderingEngine.Issues-issue_1762-100.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+2 Bytes
(100%)
...hots__/SnapshotTests/testCoreAnimationRenderingEngine.Issues-issue_1855-100.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+19 Bytes
(100%)
...shots__/SnapshotTests/testCoreAnimationRenderingEngine.Issues-issue_1855-25.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+109 Bytes
(100%)
...shots__/SnapshotTests/testCoreAnimationRenderingEngine.Issues-issue_1855-75.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-1.71 KB
(95%)
...hots__/SnapshotTests/testCoreAnimationRenderingEngine.Issues-issue_1902-100.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-32 Bytes
(100%)
...shots__/SnapshotTests/testCoreAnimationRenderingEngine.Issues-issue_1902-25.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+20 Bytes
(100%)
...shots__/SnapshotTests/testCoreAnimationRenderingEngine.Issues-issue_1902-50.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+48 Bytes
(100%)
...shots__/SnapshotTests/testCoreAnimationRenderingEngine.Issues-issue_1902-75.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+44.7 KB
..._/SnapshotTests/testCoreAnimationRenderingEngine.Issues-issue_2209-Frame-10.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+43.8 KB
...__/SnapshotTests/testCoreAnimationRenderingEngine.Issues-issue_2209-Frame-4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+44.4 KB
...__/SnapshotTests/testCoreAnimationRenderingEngine.Issues-issue_2209-Frame-5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+44.7 KB
...__/SnapshotTests/testCoreAnimationRenderingEngine.Issues-issue_2209-Frame-9.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+34 Bytes
(100%)
...pshots__/SnapshotTests/testCoreAnimationRenderingEngine.Issues-issue_769-50.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+22 Bytes
(100%)
...s__/SnapshotTests/testCoreAnimationRenderingEngine.LottieFiles-fireworks-75.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-30 Bytes
(99%)
.../__Snapshots__/SnapshotTests/testCoreAnimationRenderingEngine.TypeFace-C-50.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1.27 KB
(110%)
...napshots__/SnapshotTests/testCoreAnimationRenderingEngine.TypeFace-Colon-50.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+9 Bytes
(100%)
.../__Snapshots__/SnapshotTests/testCoreAnimationRenderingEngine.TypeFace-H-25.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-6 Bytes
(100%)
.../__Snapshots__/SnapshotTests/testCoreAnimationRenderingEngine.TypeFace-H-50.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+379 Bytes
(130%)
.../__Snapshots__/SnapshotTests/testCoreAnimationRenderingEngine.TypeFace-H-75.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-34 Bytes
(99%)
.../__Snapshots__/SnapshotTests/testCoreAnimationRenderingEngine.TypeFace-O-50.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+338 Bytes
(110%)
.../__Snapshots__/SnapshotTests/testCoreAnimationRenderingEngine.TypeFace-T-50.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+17 Bytes
(100%)
..._Snapshots__/SnapshotTests/testCoreAnimationRenderingEngine.setValueTest-50.png
Oops, something went wrong.
Binary file modified
BIN
+12 Bytes
(100%)
Tests/__Snapshots__/SnapshotTests/testCoreAnimationRenderingEngine.timeremap-0.png
Oops, something went wrong.
Binary file modified
BIN
+12 Bytes
(100%)
.../__Snapshots__/SnapshotTests/testCoreAnimationRenderingEngine.timeremap-100.png
Oops, something went wrong.
Binary file modified
BIN
+12 Bytes
(100%)
...s/__Snapshots__/SnapshotTests/testCoreAnimationRenderingEngine.timeremap-25.png
Oops, something went wrong.
Binary file modified
BIN
+12 Bytes
(100%)
...s/__Snapshots__/SnapshotTests/testCoreAnimationRenderingEngine.timeremap-50.png
Oops, something went wrong.
Binary file modified
BIN
+12 Bytes
(100%)
...s/__Snapshots__/SnapshotTests/testCoreAnimationRenderingEngine.timeremap-75.png
Oops, something went wrong.
Binary file added
BIN
+44.7 KB
...ts__/SnapshotTests/testMainThreadRenderingEngine.Issues-issue_2209-Frame-10.png
Oops, something went wrong.
Binary file added
BIN
+43.8 KB
...ots__/SnapshotTests/testMainThreadRenderingEngine.Issues-issue_2209-Frame-4.png
Oops, something went wrong.
Binary file added
BIN
+44.2 KB
...ots__/SnapshotTests/testMainThreadRenderingEngine.Issues-issue_2209-Frame-5.png
Oops, something went wrong.
Binary file added
BIN
+44.7 KB
...ots__/SnapshotTests/testMainThreadRenderingEngine.Issues-issue_2209-Frame-9.png
Oops, something went wrong.
Oops, something went wrong.
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.
Without this, some animations (like
LottieLogo1.json
) would unexpectedly render a blank frame as the last frame.This matches the behavior of the main thread rendering engine as far as I can tell, but causes bugs. e.g. this change is why the "1" and "9/10" overlap in this screenshot:
For now let's prioritize parity with the main thread rendering engine.