diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2019-10-26 14:58:54 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-26 14:58:54 -0400 |
commit | 2ad6e940913972620eab6c45a3fe2ace3c2c88f0 (patch) | |
tree | 4af801bc029d30cd995961c650cd17a4f700044e /components/script/dom/bindings/codegen/parser | |
parent | c7c0bfdd8d99f3f4fb7d1577610562d69ed0109b (diff) | |
parent | 0ee300479ec22e18ea00d9d1c7c60bdd35808983 (diff) | |
download | servo-2ad6e940913972620eab6c45a3fe2ace3c2c88f0.tar.gz servo-2ad6e940913972620eab6c45a3fe2ace3c2c88f0.zip |
Auto merge of #24525 - glowe:issue-23009/separate_angle_and_disable_vsync, r=jdm
Issue 23009/separate angle and disable vsync
The `--angle` and `--disable-vsync` options were declared as global options, but only used in the Glutin embedding for desktop builds. Moving them to the Glutin embedding code makes them easier to update in the future.
I modified `opts::from_cmdline_args` to accept a `getopts::Options` (as prescribed in the issue) and augmented `opts::ArgumentParsingResult` to include an `opts::Matches` and `content-process` String when appropriate. I could use some feedback on this last bit. I could have changed the function to return `opts::Matches` and have the embedding code look for the presence of `content-process`, but I felt that the approach I went with was closer to the original design.
The other aspect I'm not sure about is moving `disable-vsync` from a global debug option to a plain embedder option. This changes the command line interface for glutin, which is maybe bad. However I wasn't sure whether it was worth preserving the original behavior given the complexity of injecting debug options into `opts::from_cmdline_args`.
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes partially fix #23009 – there are 2 more options to deal with, but I'm not sure if we should handle them yet.
- [x] These changes do not require tests because this is a refactoring and I'm hoping that the existing tests cover these changes.
r? @jdm
Diffstat (limited to 'components/script/dom/bindings/codegen/parser')
0 files changed, 0 insertions, 0 deletions