gecko-dev/servo/components
OJ Kwon 7ba09e30ed servo: Merge #20315 - feat(window): bind hotkey to trigger capture event (from kwonoj:feat-webrender-capture); r=jdm
<!-- Please describe your changes on the following line: -->
Relates to #20295.

This PR intends to expose additional hotkey to window to allow capture webrender. Internally it adds one new `WindowEvent::CaptureWebRender` for those purpose. I took some liberty to make some decisions around which need to be reviewed & updated in PR.

- `Ctrl-shift-3` is binded to hotkey to follow described in Gecko's behavior. Is it good to go?
- Maybe do not need to create new event `CaptureWebRender` but reuse `ToggleWebRenderDebug`, having additional `WebRenderDebugOption` values?
: This sounds more right path for me, but `capture` isn't really `toggle` behavior to include capture into it.
- Capturing will create `capture_webrender` in cwd, creates new folder inside each time new capture stored
: Maybe it'd better to expose new cmdline args allow overrides, or some better way else. I took the simple approach to generate path without asking for it.

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #20295 (github issue number if applicable).

<!-- Either: -->
- [ ] There are tests for these changes OR
- [ ] These changes do not require tests because _____
- This change has manually verified on local machines (mac, windows, linux).

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

Source-Repo: https://github.com/servo/servo
Source-Revision: 1ae5715309ab5acb9ac401fd99f34a0667b2ee53

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 7325d6d0b12a105da15a7e4fdd803535152bd68a
2018-03-16 13:49:17 -04:00
..
allocator servo: Merge #19061 - FreeType: don’t use usable_size() as deallocation size (from servo:ft-alloc); r=mbrubeck 2017-10-30 12:40:34 -05:00
atoms servo: Merge #20181 - Fire the pageshow event at the end of the page load (from fabricedesre:end-load-pageshow); r=jdm 2018-03-06 10:49:51 -05:00
bluetooth servo: Merge #20182 - Prompt URL on Cmd/Ctrl-L (from paulrouget:ctrl_l); r=jdm 2018-03-04 12:48:30 -05:00
bluetooth_traits servo: Merge #18890 - Update WR (details below): (from glennw:update-wr-clip-text-aa); r=jdm 2017-10-16 12:54:02 -05:00
canvas servo: Merge #20262 - constellation: Make setting up the WebGL state fallible (from emilio:webgl-fallible); r=jdm 2018-03-09 18:24:56 -05:00
canvas_traits servo: Merge #20144 - Add WebGL function glGetTexParameter (from mkollaro:gettexparameter); r=jdm 2018-03-06 09:48:56 -05:00
compositing servo: Merge #20315 - feat(window): bind hotkey to trigger capture event (from kwonoj:feat-webrender-capture); r=jdm 2018-03-16 13:49:17 -04:00
config servo: Merge #20310 - Update the MULTIPROCESS static when changing default options (from fabricedesre:opt-multiprocess); r=jdm 2018-03-15 23:23:54 -04:00
constellation servo: Merge #20262 - constellation: Make setting up the WebGL state fallible (from emilio:webgl-fallible); r=jdm 2018-03-09 18:24:56 -05:00
debugger
deny_public_fields servo: Merge #20022 - Update syn, quote and synstructure (from Eijebong:syn); r=nox 2018-02-13 11:15:54 -05:00
devtools servo: Merge #19364 - Update cookie to 0.10 (from nox:cookie); r=KiChjang 2017-11-24 03:50:37 -06:00
devtools_traits servo: Merge #19364 - Update cookie to 0.10 (from nox:cookie); r=KiChjang 2017-11-24 03:50:37 -06:00
dom_struct servo: Merge #19476 - Use workspace.default-members to specify default crates for cargo build (from servo:default-members); r=nox 2017-12-07 06:53:07 -06:00
domobject_derive servo: Merge #20022 - Update syn, quote and synstructure (from Eijebong:syn); r=nox 2018-02-13 11:15:54 -05:00
fallible servo: Merge #19494 - Update smallvec to 0.6 (from Eijebong:smallvec); r=emilio 2017-12-05 13:44:19 -06:00
geometry servo: Merge #20140 - Bump euclid to 0.17 (from Eijebong:euclid); r=SimonSapin 2018-02-28 04:14:32 -05:00
gfx servo: Merge #20311 - Update WR (local clip API change, texture cache optimizations) (from glennw:update-wr-pic); r=mbrubeck 2018-03-15 22:19:31 -04:00
gfx_traits servo: Merge #19933 - Update WebRender (from mrobinson:update-wr); r=emilio 2018-02-06 09:12:58 -05:00
hashglobe servo: Merge #20027 - style: Back out ordermap (from emilio:bye-ordermap); r=nox 2018-02-12 07:36:04 -05:00
jstraceable_derive servo: Merge #20022 - Update syn, quote and synstructure (from Eijebong:syn); r=nox 2018-02-13 11:15:54 -05:00
layout servo: Merge #20311 - Update WR (local clip API change, texture cache optimizations) (from glennw:update-wr-pic); r=mbrubeck 2018-03-15 22:19:31 -04:00
layout_thread servo: Merge #20243 - style: add infrastructure to match the :host selector (from emilio:host-selector-on-the-way); r=SimonSapin 2018-03-14 10:38:45 -04:00
layout_traits servo: Merge #18890 - Update WR (details below): (from glennw:update-wr-clip-text-aa); r=jdm 2017-10-16 12:54:02 -05:00
malloc_size_of servo: Merge #20311 - Update WR (local clip API change, texture cache optimizations) (from glennw:update-wr-pic); r=mbrubeck 2018-03-15 22:19:31 -04:00
malloc_size_of_derive servo: Merge #20022 - Update syn, quote and synstructure (from Eijebong:syn); r=nox 2018-02-13 11:15:54 -05:00
metrics servo: Merge #19755 - Decouple metrics and gfx (from streichgeorg:decoupling_metrics_gfx); r=jdm 2018-01-17 07:28:01 -06:00
msg servo: Merge #19975 - Kill browserhtml (from paulrouget:killbhtml); r=mbrubeck,emilio 2018-02-13 04:54:47 -05:00
net servo: Merge #20182 - Prompt URL on Cmd/Ctrl-L (from paulrouget:ctrl_l); r=jdm 2018-03-04 12:48:30 -05:00
net_traits servo: Merge #20143 - Bump itertools, image, flate2 and caseless (from Eijebong:bump); r=nox 2018-02-28 13:10:59 -05:00
nonzero servo: Merge #18875 - Remove the need for rust-mozjs to use unstable Rust features (from servo:stable-js); r=nox,jdm 2017-10-16 17:07:50 -05:00
profile servo: Merge #20251 - Chart memory reports over time (from jdm:memchart); r=ajeffrey 2018-03-08 22:47:49 -05:00
profile_traits servo: Merge #18670 - added time to interactive metrics (from avadacatavra:interactive-metrics); r=jdm 2017-10-25 15:53:57 -05:00
rand servo: Merge #19487 - Update lazy_static to 1.0 (from Eijebong:bump); r=jdm 2017-12-05 10:31:16 -06:00
range servo: Merge #18938 - Replace all uses of the heapsize crate with malloc_size_of (from nnethercote:bug-1409255); r=SimonSapin 2017-10-18 13:56:05 -05:00
remutex servo: Merge #19819 - Merge some test crates in their corresponding components (from servo:rm-test-crates); r=<try> 2018-01-20 08:51:27 -06:00
script servo: Merge #20305 - Don't access the reflector when dropping a Promise (fixes #18651) (from servo:OMAE-WA-MOU-SHINDEIRU); r=jdm 2018-03-15 10:17:43 -04:00
script_layout_interface servo: Merge #20140 - Bump euclid to 0.17 (from Eijebong:euclid); r=SimonSapin 2018-02-28 04:14:32 -05:00
script_plugins servo: Merge #19098 - Make the unrooted_must_root conditional on a default Cargo feature (from servo:minimal-plugin); r=jdm 2017-11-02 09:28:13 -05:00
script_traits servo: Merge #20262 - constellation: Make setting up the WebGL state fallible (from emilio:webgl-fallible); r=jdm 2018-03-09 18:24:56 -05:00
selectors servo: Merge #20243 - style: add infrastructure to match the :host selector (from emilio:host-selector-on-the-way); r=SimonSapin 2018-03-14 10:38:45 -04:00
servo servo: Merge #20315 - feat(window): bind hotkey to trigger capture event (from kwonoj:feat-webrender-capture); r=jdm 2018-03-16 13:49:17 -04:00
servo_arc servo: Merge #20088 - Fix license metadata for servo_arc crate (from mbrubeck:license); r=SimonSapin 2018-02-21 19:35:55 -05:00
size_of_test
style servo: Merge #20302 - Include some traversal statistics in style tracing marker (from upsuper:traversal-stats); r=bholley 2018-03-14 21:01:08 -04:00
style_derive servo: Merge #20275 - Finish cleaning up trait bounds generation in style_derive (from servo:derive-all-the-things); r=emilio 2018-03-12 04:52:02 -04:00
style_traits servo: Merge #20236 - Introduce #[css(skip_if)] (from emilio:to-css-skip-if); r=nox 2018-03-08 09:16:55 -05:00
url servo: Merge #18938 - Replace all uses of the heapsize crate with malloc_size_of (from nnethercote:bug-1409255); r=SimonSapin 2017-10-18 13:56:05 -05:00
webdriver_server servo: Merge #20143 - Bump itertools, image, flate2 and caseless (from Eijebong:bump); r=nox 2018-02-28 13:10:59 -05:00
webvr servo: Merge #20140 - Bump euclid to 0.17 (from Eijebong:euclid); r=SimonSapin 2018-02-28 04:14:32 -05:00
webvr_traits servo: Merge #18890 - Update WR (details below): (from glennw:update-wr-clip-text-aa); r=jdm 2017-10-16 12:54:02 -05:00