| Summary: | Using a video as a source for a WebGL texture is slow and hangs on iOS 15 | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Paris Morgan <paris> | ||||||||||
| Component: | WebGL | Assignee: | Kimmo Kinnunen <kkinnunen> | ||||||||||
| Status: | RESOLVED FIXED | ||||||||||||
| Severity: | Major | CC: | dino, dustin.kerstein, eric.carlson, ews-watchlist, glenn, jer.noble, kbr, kkinnunen, philipj, sergio, tony, webkit-bug-importer | ||||||||||
| Priority: | P2 | Keywords: | InRadar | ||||||||||
| Version: | Other | ||||||||||||
| Hardware: | iPhone / iPad | ||||||||||||
| OS: | Other | ||||||||||||
| See Also: | https://bugs.webkit.org/show_bug.cgi?id=223740 | ||||||||||||
| Bug Depends on: | |||||||||||||
| Bug Blocks: | 223434 | ||||||||||||
| Attachments: |
|
||||||||||||
|
Description
Paris Morgan
2021-06-16 10:34:59 PDT
Created attachment 431563 [details]
Video of the repro app running on an Phone 12 Pro with iOS 14.6
Kimmo, would you be able to triage this since it's happening on hardware? May be related to Bug 226830, though that one seems specific to video elements created from getUserMedia. Note that this is a key code path that was carefully ensured to retain performance in the ANGLE/GLES code path. Not sure whether the GPU process has been deployed in Safari on iOS 15, or whether this might be a regression in ANGLE/Metal. Actually, this may be a duplicate of Bug 223740. Created attachment 432031 [details]
Patch
Comment on attachment 432031 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=432031&action=review This looks great to me, thanks! > Source/WebKit/Scripts/webkit/tests/TestWithCVPixelBufferMessageReceiver.cpp:2 > + * Copyright (C) 2010-2021 Apple Inc. All rights reserved. Probably only need `2021` for a new file. > Source/WebKit/Scripts/webkit/tests/TestWithCVPixelBufferMessages.h:2 > + * Copyright (C) 2010-2021 Apple Inc. All rights reserved. Ditto > Source/WebKit/Scripts/webkit/tests/TestWithCVPixelBufferMessagesReplies.h:2 > + * Copyright (C) 2010-2021 Apple Inc. All rights reserved. Ditto Amazing diagnosis and fix Kimmo! Created attachment 432153 [details]
Patch for landing
Committed r279221 (239107@main): <https://commits.webkit.org/239107@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 432153 [details]. Thanks for the report and the test case! |