Bug 237893 - Add WebGL testing hooks to make it possible to test GraphicsContextGL calls that time out during WebGL operation
Summary: Add WebGL testing hooks to make it possible to test GraphicsContextGL calls t...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebGL (show other bugs)
Version: Other
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-03-15 07:10 PDT by Kimmo Kinnunen
Modified: 2022-03-22 07:11 PDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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>