⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 287983 in webkit


Ignore:
Timestamp:
Jan 13, 2022, 11:03:25 AM (5 years ago)
Author:
commit-queue@webkit.org
Message:

[GTK][WPE][WebGL2] compilation fixes
​https://bugs.webkit.org/show_bug.cgi?id=225563

Patch by Alejandro G. Castro <​alex@igalia.com> on 2022-01-13
Reviewed by Chris Lord.

Fix the compilation and add the ANGLE dependency, the architecture
is still not the final one but it is handy to use WebGL2 demos for
testing already.

.:

  • Source/cmake/OptionsGTK.cmake: Added dependency with ANGLE.
  • Source/cmake/OptionsWPE.cmake: Added dependency with

ANGLE. Remove the default ENABLE_WEBGL2 because it is the same
default value in WebKitFeatures.cmake.

Source/WebCore:

We are still not enabling the tests until we have the final
architecture.

  • html/canvas/WebGLRenderingContextBase.cpp:

(WebCore::WebGLRenderingContextBase::drawElements): Leftover code,
there is no port using OpenGL directly to support WebGL2 anymore.
(WebCore::WebGLRenderingContextBase::drawElementsInstanced):
Ditto.

Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/ChangeLog

    r287923 r287983  
     12022-01-13  Alejandro G. Castro  <alex@igalia.com>
     2
     3        [GTK][WPE][WebGL2] compilation fixes
     4        https://bugs.webkit.org/show_bug.cgi?id=225563
     5
     6        Reviewed by Chris Lord.
     7
     8        Fix the compilation and add the ANGLE dependency, the architecture
     9        is still not the final one but it is handy to use WebGL2 demos for
     10        testing already.
     11
     12        * Source/cmake/OptionsGTK.cmake: Added dependency with ANGLE.
     13        * Source/cmake/OptionsWPE.cmake: Added dependency with
     14        ANGLE. Remove the default ENABLE_WEBGL2 because it is the same
     15        default value in WebKitFeatures.cmake.
     16
    1172022-01-12  Chris Lord  <clord@igalia.com>
    218
  • trunk/Source/WebCore/ChangeLog

    r287982 r287983  
     12022-01-13  Alejandro G. Castro  <alex@igalia.com>
     2
     3        [GTK][WPE][WebGL2] compilation fixes
     4        https://bugs.webkit.org/show_bug.cgi?id=225563
     5
     6        Reviewed by Chris Lord.
     7
     8        Fix the compilation and add the ANGLE dependency, the architecture
     9        is still not the final one but it is handy to use WebGL2 demos for
     10        testing already.
     11
     12        We are still not enabling the tests until we have the final
     13        architecture.
     14
     15        * html/canvas/WebGLRenderingContextBase.cpp:
     16        (WebCore::WebGLRenderingContextBase::drawElements): Leftover code,
     17        there is no port using OpenGL directly to support WebGL2 anymore.
     18        (WebCore::WebGLRenderingContextBase::drawElementsInstanced):
     19        Ditto.
     20
    1212022-01-13  Said Abou-Hallawa  <said@apple.com>
    222
  • trunk/Source/WebCore/html/canvas/WebGLRenderingContextBase.cpp

    r286943 r287983  
    28172817    if (!isGLES2NPOTStrict())
    28182818        usesFallbackTexture = checkTextureCompleteness("drawElements", true);
    2819 #endif
    2820 
    2821 #if USE(OPENGL) && ENABLE(WEBGL2)
    2822     if (isWebGL2())
    2823         m_context->primitiveRestartIndex(getRestartIndex(type));
    28242819#endif
    28252820
    … …  
    80318026#endif
    80328027
    8033 #if USE(OPENGL) && ENABLE(WEBGL2)
    8034     if (isWebGL2())
    8035         static_cast<GraphicsContextGLOpenGL*>(m_context.get())->primitiveRestartIndex(getRestartIndex(type));
    8036 #endif
    8037 
    80388028    m_context->drawElementsInstanced(mode, count, type, static_cast<GCGLintptr>(offset), primcount);
    80398029
  • trunk/Source/cmake/OptionsGTK.cmake

    r286204 r287983  
    8484WEBKIT_OPTION_DEPEND(ENABLE_WEBGL USE_OPENGL_OR_ES)
    8585WEBKIT_OPTION_DEPEND(USE_ANGLE_WEBGL ENABLE_WEBGL)
     86WEBKIT_OPTION_DEPEND(ENABLE_WEBGL2 USE_ANGLE_WEBGL)
    8687WEBKIT_OPTION_DEPEND(USE_GSTREAMER_GL USE_OPENGL_OR_ES)
    8788WEBKIT_OPTION_DEPEND(USE_WPE_RENDERER USE_OPENGL_OR_ES)
  • trunk/Source/cmake/OptionsWPE.cmake

    r287923 r287983  
    6767WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_SHAREABLE_RESOURCE PRIVATE ON)
    6868WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_TOUCH_EVENTS PRIVATE ON)
    69 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_WEBGL2 PRIVATE OFF)
    7069WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_WEB_RTC PRIVATE ${ENABLE_EXPERIMENTAL_FEATURES})
    7170WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_WEBXR PRIVATE ${ENABLE_EXPERIMENTAL_FEATURES})
    … …  
    8988WEBKIT_OPTION_DEFINE(USE_ANGLE_WEBGL "Whether to use ANGLE as WebGL backend." PRIVATE OFF)
    9089WEBKIT_OPTION_DEPEND(USE_ANGLE_WEBGL ENABLE_WEBGL)
     90WEBKIT_OPTION_DEPEND(ENABLE_WEBGL2 USE_ANGLE_WEBGL)
    9191
    9292if (CMAKE_SYSTEM_NAME MATCHES "Linux")
Note: See TracChangeset for help on using the changeset viewer.