Bug 223572

Summary: Move shader info log functionality from ExtensionsGL to GraphicsContextGL
Product: WebKit Reporter: Kimmo Kinnunen <kkinnunen>
Component: WebGLAssignee: Kimmo Kinnunen <kkinnunen>
Status: RESOLVED CONFIGURATION CHANGED    
Severity: Normal CC: dino, kbr, kkinnunen, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Local Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 221664    
Attachments:
Description Flags
Patch kbr: review+

Description Kimmo Kinnunen 2021-03-22 05:05:34 PDT
Move shader info log functionality from ExtensionsGL to GraphicsContextGL

ExtensionsGL never fulfilled its purpose. Currently it is equivalent to corresponding GraphicsContextGL instance. This just complicates the implementation.
Comment 1 Kimmo Kinnunen 2021-03-22 05:17:13 PDT
Created attachment 423872 [details]
Patch
Comment 2 Kenneth Russell 2021-03-22 16:07:26 PDT
Comment on attachment 423872 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=423872&action=review

One comment about the renaming of this entry point, but r+ once it builds and passes tests.

> Source/WebCore/ChangeLog:13
> +        WebGL logic, not ANGLE-specific extensions.

Not sure I agree with this especially as it will relate to moving more extensions into GraphicsContextGL. glGetTranslatedShaderSourceANGLE is defined in the GL_ANGLE_translated_shader_source extension and it's useful to track where these extension entry points are defined. Also, this is used by the WEBGL_debug_shaders extension (and maybe WebKit's DevTools?) so strictly speaking isn't part of the core WebGL implementation.

However, I defer to your judgment on the organization.
Comment 3 Radar WebKit Bug Importer 2021-03-29 09:13:55 PDT
<rdar://problem/75956803>
Comment 4 Kimmo Kinnunen 2022-08-11 00:03:01 PDT
ExtensionsGL was removed in other commit, closing.