This repository was archived by the owner on Feb 25, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6k
Moves all argument checking of Vertices() and Vertices.raw() to asserts, Adds arg checking to all web renderers -Fixes #123085 #41766
Closed
Closed
Changes from all commits
Commits
Show all changes
41 commits
Select commit
Hold shift + click to select a range
5aa2913
avoid unnecessary operations during indices check
timmaffett 57781a2
fix indices check in raw() to correctly check <positions.length/2
timmaffett e80a3dc
formatting
timmaffett 118a38a
add tests for ckVertices doing proper parameter checks
timmaffett d692f0f
add positions.length is even check to CkVertices.raw()
timmaffett 046a729
made throws in vertices_test.dart throw ArgumentError to make linux a…
timmaffett 930d9ea
fix tests expected error text
timmaffett fe4db2b
changed %2!=0 check to use isOdd
timmaffett 7c42cc2
Merge branch 'main' into vertices.raw
timmaffett a1f133a
Merge branch 'flutter:main' into vertices.raw
timmaffett e15299a
change vertices_test.dart to only check CkVertices for argument check…
timmaffett 702ff22
change web_ui vertices checks to asserts and add to skwasm_impl
timmaffett cfcf849
fix catch for ArgumentError
timmaffett 217de1d
added vertices checks to html render_vertices.dart, formatting
timmaffett 8e3dcec
tweaks to tests to properly identify exception text
timmaffett 0b2f940
fix trailing space
timmaffett 1ad8364
match assertionerror extra slashes
timmaffett 010c78a
correct assertion match
timmaffett 1bc170a
fix vertices.raw test
timmaffett edf7ba0
added debug code to print stacktrace so see what is generating unexpe…
timmaffett cfe76fb
move vertices checks in painting to asserts,fix indices asserts
timmaffett 468c585
moving vertices checsk in paint to asserts
timmaffett 2d9dbd3
remove trailing space
timmaffett eeca5e1
made assert expects dependent on asserts being enabled
timmaffett 9532396
remove non assert checks from vertices code, tests check if asserts a…
timmaffett 4640ed2
Merge branch 'main' into vertices.raw
timmaffett 8b06199
change to using every instead of any
timmaffett d0c7a97
Merge branch 'vertices.raw' of https://github.com/timmaffett/engine i…
timmaffett e2cf427
Merge branch 'flutter:main' into vertices.raw
timmaffett d303c63
fix spacing
timmaffett 3428566
Merge branch 'vertices.raw' of https://github.com/timmaffett/engine i…
timmaffett f82de2b
change any use to every in vertices checks
timmaffett 3f1f1cb
remove negation on every
timmaffett 371b2e6
fix spacing around ==
timmaffett e42938d
add space after if where missing
timmaffett f987b94
update AUTHORS
timmaffett a9e8e0f
add use and disposing of invalid Vertices objects when asserts not en…
timmaffett 0db8427
dispose of invalid vertices objects (that would be created if asserts…
timmaffett d8a42d6
Merge branch 'main' into vertices.raw
timmaffett 8197599
remove trailing space
timmaffett 4050715
Update AUTHORS
kevmoo 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
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
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
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
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
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
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.
We could definitely let the indices check be an assert. I think at most you'll get graphical corruption.
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.
actually, on iOS/Metal we have to unroll triangle fans. If we end up using the indices to look up positions an invalid index could still lead to a crash.
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.
@jonahwilliams Do you think I should go ahead and just close this ? - or would moving the checks to the c++ code closer where they are used make more sense ? (and possibly be faster?)