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
Implement union and intersection for DlRegion #42620
Merged
Merged
Changes from 37 commits
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
c06ba33
Implement DlRegion::addRegion and DlRegion::intersects
knopp 28cfa12
Use new AddRects implementation
knopp 2a38c20
Small cleanups
knopp adc9a4a
Address feedback
knopp c92fc2f
Rename
knopp a9f8f4c
Move the DCHECK
knopp a7f45a8
Add more tests
knopp ff16ef0
Split AddRect/GetRects benchmarks
knopp 3d1f592
Add DlRegion::MakeIntersection
knopp 730a23a
Rename AddRects in benchmarks to FromRects
knopp d6c81db
Add more tests
knopp 48a740b
Fix comments
knopp c47663d
Remove unnecessary lines_ copy
knopp 4061527
Add setChunkSize, use getChunkSize also internally
knopp 518bf1d
Add DCHECK
knopp d4d001e
Remove redundant check
knopp e5a42d0
Simplify unionLineSpans
knopp 3dfb25c
Use SkRegion::setRects
knopp c40bb7c
Fix typo.
knopp d63212e
Union and intersction optimisations
knopp bc2ab15
Fix comment typos
knopp 5d53c35
Expose region in DlRTree
knopp 95105b5
Use DlRegion from R-Tree in raster cache
knopp f6e2a42
Add empty constructor and assignment operators
knopp 9132921
Fix clang-tidy warning
knopp abca8ef
Use SkRegion::setRects in benchmarks
knopp 0a5ca5f
Nits
knopp 47a257d
Use OrderedSpanAccumulator
knopp a274cec
Replace upper_bound with lower_bound
knopp 3ccbf2d
Fix comment.
knopp 9326b4f
i => top
knopp ca48f44
Use assymetric sizes when unit testing
knopp e7e4fa4
Benchmark speed on assymetric regions (one significantly larger than …
knopp 134bc4a
Use binary search for intersection
knopp 7bd2ae4
Switch units back to microsecond
knopp 1df34ac
Add isEmpty() checks
knopp 618c831
Correct spelling
knopp 88b5012
Extract binary search into separate method
knopp 9568dd2
Add threshold check for single rect intersect
knopp 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
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.