[Webkit-unassigned] [Bug 161026] New: [macOS] CGL virtual screen changes do not cause us to lose the WebGL context

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Aug 19 20:12:26 PDT 2016


            Bug ID: 161026
           Summary: [macOS] CGL virtual screen changes do not cause us to
                    lose the WebGL context
    Classification: Unclassified
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebGL
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: mmaxfield at apple.com
                CC: dino at apple.com

According to [1],

"A change in the virtual screen indicates a renderer change, a change in renderer capability, or both."

"When the renderer changes, the limits and extensions available to OpenGL may also change. Your application should retest the capabilities of the renderer and use these to choose its rendering algorithms appropriately."

This can be achieved by listening for NSWindowDidChangeScreenNotification. We currently do this and plumb it through to the web process, eventually ending up in WebPage::windowScreenDidChange() and Document::windowScreenDidChange(). We should make this function cause WebGL contexts to be lost. This will cause web content to re-investigate the current renderer capabilities.

[1] https://developer.apple.com/library/prerelease/content/documentation/GraphicsImaging/Conceptual/OpenGL-MacProgGuide/opengl_contexts/opengl_contexts.html#//apple_ref/doc/uid/TP40001987-CH216-SW12

You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20160820/15704951/attachment.html>

More information about the webkit-unassigned mailing list