Bug 219916

Summary: [GTK] Missing header when ENABLE_GRAPHICS_CONTEXT_GL is set to OFF
Product: WebKit Reporter: Charlene Wendling <julianaito>
Component: WebKitGTKAssignee: Nobody <webkit-unassigned>
Status: RESOLVED INVALID    
Severity: Trivial CC: bugs-noreply, Hironori.Fujii
Priority: P2    
Version: WebKit Local Build   
Hardware: Other   
OS: Other   
See Also: https://bugs.webkit.org/show_bug.cgi?id=220183
Attachments:
Description Flags
patch to include the missing header
none
Screenshot of WebkitGTK badly rendering colors none

Description Charlene Wendling 2020-12-15 13:20:54 PST
Created attachment 416284 [details]
patch to include the missing header

Platform: OpenBSD macppc (32-bit, big endian)
Compiler: clang-10
Version: 2.30.3

Hi,

Colors are off when Context GL is enabled on my platform, as a workaround i've disabled it.

In Source/WebCore/platform/graphics/x11/PlatformDisplayX11.cpp, the XVisualInfo struct and XGetVisualInfo(3) are used. They're defined in <X11/Xutil.h>,
but that header is not included, leading to a broken build.

The attached patch allows me to build WebKitGTK on my platform.
Comment 1 Fujii Hironori 2020-12-15 13:30:39 PST
Could you follow the contributing guideline?
https://webkit.org/contributing-code/

ENABLE_GRAPHICS_CONTEXT_GL was removed by Bug 219551. Did you check with the latest trunk?
Comment 2 Charlene Wendling 2020-12-15 14:05:43 PST
I have not tested with the latest trunk, sorry, but i've searched only for open bugs. Thanks for the contribution guideline (i've never reported a bug before here).

I will try against the latest trunk, but it requires dealing with more than 30 OS-specific patches. I'll report back if any issue arise.
Comment 3 Fujii Hironori 2020-12-15 23:34:42 PST
You can disable accelerated compositing by setting a env var.
WEBKIT_DISABLE_COMPOSITING_MODE=1
https://trac.webkit.org/wiki/EnvironmentVariables

(In reply to Charlene Wendling from comment #0)
> Colors are off when Context GL is enabled on my platform, as a workaround

Does you mean your browser shows a blank screen?
Do all OpenGL apps show the blank screen on your platform?
Or, only WebKitGTK has the issue?
Comment 4 Charlene Wendling 2020-12-16 01:26:54 PST
Created attachment 416319 [details]
Screenshot of WebkitGTK badly rendering colors
Comment 5 Charlene Wendling 2020-12-16 01:29:00 PST
Only WebKitGTK has this issue(In reply to Fujii Hironori from comment #3)
> You can disable accelerated compositing by setting a env var.
> WEBKIT_DISABLE_COMPOSITING_MODE=1
> https://trac.webkit.org/wiki/EnvironmentVariables
> 
> (In reply to Charlene Wendling from comment #0)
> > Colors are off when Context GL is enabled on my platform, as a workaround
> 
> Does you mean your browser shows a blank screen?
> Do all OpenGL apps show the blank screen on your platform?
> Or, only WebKitGTK has the issue?

Only WebKitGTK has the issue. I attached a screenshot to give you an overview of what is going on.