| Summary: | [WinCairo] WebKitTestRunner should support pixel dump for accelerated compositing mode | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Fujii Hironori <Hironori.Fujii> | ||||||||||||||
| Component: | Tools / Tests | Assignee: | Fujii Hironori <Hironori.Fujii> | ||||||||||||||
| Status: | RESOLVED FIXED | ||||||||||||||||
| Severity: | Normal | CC: | annulen, don.olmstead, ews-watchlist, gyuyoung.kim, ryuan.choi, sergio, webkit-bug-importer | ||||||||||||||
| Priority: | P2 | Keywords: | InRadar | ||||||||||||||
| Version: | WebKit Nightly Build | ||||||||||||||||
| Hardware: | Unspecified | ||||||||||||||||
| OS: | Unspecified | ||||||||||||||||
| See Also: | https://bugs.webkit.org/show_bug.cgi?id=247479 | ||||||||||||||||
| Attachments: |
|
||||||||||||||||
|
Description
Fujii Hironori
2020-07-31 16:10:00 PDT
Created attachment 405755 [details]
WIP patch
BitBlt can capture the window content.
But, the problem is the windows shoudd be visible and needs diabling WindowStaion.
Created attachment 441991 [details]
Playwright script
I checked Playwright screen capture feature on Windows.
Chrome and Firefox can capture the browser window both in headless and non-headless modes.
WebKit (WinCairo based) can capture only in non-headless modes.
I should check how Chrome and Firefox capture in the headless mode.
winget openjs.nodejs
npm install playwright
node video.mjs
Created attachment 449309 [details]
WIP patch
Created attachment 449364 [details]
WIP patch
Created attachment 449966 [details]
WIP patch
Created attachment 449997 [details]
Patch
Comment on attachment 449997 [details]
Patch
Is this all that's needed to get pixel tests working? TestController:::takeViewPortSnapshot is unimplemented on Windows.
(In reply to Don Olmstead from comment #7) > Comment on attachment 449997 [details] > Patch > > Is this all that's needed to get pixel tests working? > TestController:::takeViewPortSnapshot is unimplemented on Windows. Yes, this patch makes AC mode pixel tests pass. However, DRT doesn't support it. takeViewPortSnapshot is used only by fast/mediastream tests (Bug 231059). Committed r288784 (246561@main): <https://commits.webkit.org/246561@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 449997 [details]. |