Bug 179953

Summary: [WinCairo] DumpRenderTree displays error message in the beginning
Product: WebKit Reporter: Basuke Suzuki <Basuke.Suzuki>
Component: Tools / TestsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED WONTFIX    
Severity: Normal CC: don.olmstead, Hironori.Fujii, lforschler, tomoki.imai, yoshiaki.jitsukawa
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Description Basuke Suzuki 2017-11-22 11:08:30 PST
> Cannot create EGL surfaceless context: missing EGL_KHR_surfaceless_{context,opengl} extension.

I couldn't find out which commit starts causing this error, but at least I saw this one in the commit 472a67c6c2fc549c499744a225fcd5fb68528765.
Comment 1 Basuke Suzuki 2017-11-22 11:12:22 PST
You can see this error not launching entire layout tests, but by directly launch command simply typing like this: 

> .\WebKitBuild\Release\bin64\DumpRenderTree.exe - "LayoutTests\\accessibility\\input-image-alt.html'--timeout'300"
Comment 2 Fujii Hironori 2017-11-23 18:59:18 PST
(In reply to Basuke Suzuki from comment #0)
> > Cannot create EGL surfaceless context: missing EGL_KHR_surfaceless_{context,opengl} extension.
> 
> I couldn't find out which commit starts causing this error, but at least I
> saw this one in the commit 472a67c6c2fc549c499744a225fcd5fb68528765.

Bug 178937 has added this message.
Comment 3 Basuke Suzuki 2017-11-27 12:19:33 PST
Thanks!
Comment 4 Tomoki Imai 2017-11-28 00:45:27 PST
The error message is harmless.

When webkit creates sharing OpenGL context,
1. it tries to create surfaceless context, 
2. if surfaceless context is not supported then create pixel buffer and its context.

In WinCairo, surfaceless context is not supported by ANGLE, so it outputs error message.
But it creates pixel buffer and the context, then uses it as sharing OpenGL Context.  

You can see the actual code in GLContextEGL::createSharingContext (/Source/WebCore/platform/graphics/egl/GLContextEGL.cpp).