Bug 223572 - Move shader info log functionality from ExtensionsGL to GraphicsContextGL
Summary: Move shader info log functionality from ExtensionsGL to GraphicsContextGL
Status: RESOLVED CONFIGURATION CHANGED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebGL (show other bugs)
Version: WebKit Local Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Kimmo Kinnunen
URL:
Keywords: InRadar
Depends on:
Blocks: gcgranglecleanup
  Show dependency treegraph
 
Reported: 2021-03-22 05:05 PDT by Kimmo Kinnunen
Modified: 2022-08-11 00:03 PDT (History)
4 users (show)

See Also:


Attachments
Patch (16.27 KB, patch)
2021-03-22 05:17 PDT, Kimmo Kinnunen
kbr: review+
Details | Formatted Diff | Diff

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