Bug 237893

Summary: Add WebGL testing hooks to make it possible to test GraphicsContextGL calls that time out during WebGL operation
Product: WebKit Reporter: Kimmo Kinnunen <kkinnunen>
Component: WebGLAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: dino, kbr, kkinnunen, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Other   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=237891

Description Kimmo Kinnunen 2022-03-15 07:10:52 PDT
Add WebGL testing hooks to make it possible to test GraphicsContextGL calls that time out during WebGL operation

void WebGLRenderingContextBase::paintRenderingResultsToCanvas()
{
    if (isContextLostOrPending())
        return;
    ...
        prepareForDisplay();
    ...
                    m_context->paintCompositedResultsToCanvas(*buffer);

}

We'd like to test what happens when timeout happens in prepareForDisplay(), so that paintCompositedResultsToCanvas() is executed on a failing context.
Comment 1 Radar WebKit Bug Importer 2022-03-22 07:11:34 PDT
<rdar://problem/90633280>