-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Check for invalid elevations #30215
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
Merged
Merged
Check for invalid elevations #30215
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
d2aa134
Check for invalid elevation usage in the layer tree
dnfield 504c9ab
Add service extension, debug guard
dnfield 4e41d1e
Merge remote-tracking branch 'upstream/master' into elevation_checker
dnfield 195cdd6
tests
dnfield 98021ba
Merge remote-tracking branch 'upstream/master' into elevation_checker
dnfield 46ea686
tests
dnfield 6a973ad
add test
dnfield b8e7424
Merge remote-tracking branch 'upstream/master' into elevation_checker
dnfield fd7412a
clean up
dnfield 5b41e04
avoid modification while iterating
dnfield ce9fcf4
review
dnfield 6a46542
doc, tests
dnfield 490fd8d
doc and parameters
dnfield 5d818e6
remove setter
dnfield 209bdb7
wrap diagram in backtics
dnfield 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -50,6 +50,44 @@ bool debugRepaintRainbowEnabled = false; | |
| /// Overlay a rotating set of colors when repainting text in checked mode. | ||
| bool debugRepaintTextRainbowEnabled = false; | ||
|
|
||
| /// Causes [PhysicalModelLayer]s to paint a red rectangle around themselves if | ||
| /// they are overlapping and painted out of order with regard to their elevation. | ||
| /// | ||
| /// Android and iOS will show the last painted layer on top, whereas Fuchsia | ||
| /// will show the layer with the highest elevation on top. | ||
| /// | ||
| /// For example, a rectangular elevation at 3.0 that is painted before an | ||
| /// overlapping rectangular elevation at 2.0 would render this way on Android | ||
| /// and iOS (with fake shadows): | ||
| /// ``` | ||
| /// ┌───────────────────┐ | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: should these be enclosed in ``` to ensure they render with a fixed-width font in dartdocs? |
||
| /// │ │ | ||
| /// │ 3.0 │ | ||
| /// │ ┌───────────────────┐ | ||
| /// │ │ │ | ||
| /// └────────────│ │ | ||
| /// │ 2.0 │ | ||
| /// │ │ | ||
| /// └───────────────────┘ | ||
| /// ``` | ||
| /// | ||
| /// But this way on Fuchsia (with real shadows): | ||
| /// ``` | ||
| /// ┌───────────────────┐ | ||
| /// │ │ | ||
| /// │ 3.0 │ | ||
| /// │ │────────────┐ | ||
| /// │ │ │ | ||
| /// └───────────────────┘ │ | ||
| /// │ 2.0 │ | ||
| /// │ │ | ||
| /// └───────────────────┘ | ||
| /// ``` | ||
| /// | ||
| /// This check helps developers that want a consistent look and feel detect | ||
| /// where this inconsistency would occur. | ||
| bool debugCheckElevationsEnabled = false; | ||
|
|
||
| /// The current color to overlay when repainting a layer. | ||
| /// | ||
| /// This is used by painting debug code that implements | ||
|
|
||
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.
Uh oh!
There was an error while loading. Please reload this page.