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

Changeset 287984 in webkit


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

Remove the code inside USE(OPENGL) && ENABLE(WEBGL2)
​https://bugs.webkit.org/show_bug.cgi?id=235178

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

No port is supporting WebGL2 without ANGLE nowadays, that code is
historical and we can remove it.

  • html/canvas/WebGLRenderingContextBase.cpp:

(WebCore::getRestartIndex): Deleted.

  • platform/graphics/opengl/GraphicsContextGLOpenGL.cpp:

(WebCore::GraphicsContextGLOpenGL::primitiveRestartIndex): Deleted.

  • platform/graphics/opengl/GraphicsContextGLOpenGL.h:
Location:
trunk/Source/WebCore
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r287983 r287984  
     12022-01-13  Alejandro G. Castro  <alex@igalia.com>
     2
     3        Remove the code inside USE(OPENGL) && ENABLE(WEBGL2)
     4        https://bugs.webkit.org/show_bug.cgi?id=235178
     5
     6        Reviewed by Dean Jackson.
     7
     8        No port is supporting WebGL2 without ANGLE nowadays, that code is
     9        historical and we can remove it.
     10
     11        * html/canvas/WebGLRenderingContextBase.cpp:
     12        (WebCore::getRestartIndex): Deleted.
     13        * platform/graphics/opengl/GraphicsContextGLOpenGL.cpp:
     14        (WebCore::GraphicsContextGLOpenGL::primitiveRestartIndex): Deleted.
     15        * platform/graphics/opengl/GraphicsContextGLOpenGL.h:
     16
    1172022-01-13  Alejandro G. Castro  <alex@igalia.com>
    218
  • trunk/Source/WebCore/html/canvas/WebGLRenderingContextBase.cpp

    r287983 r287984  
    27662766    markContextChangedAndNotifyCanvasObserver();
    27672767}
    2768 
    2769 #if USE(OPENGL) && ENABLE(WEBGL2)
    2770 static GCGLuint getRestartIndex(GCGLenum type)
    2771 {
    2772     switch (type) {
    2773     case GraphicsContextGL::UNSIGNED_BYTE:
    2774         return std::numeric_limits<GCGLubyte>::max();
    2775     case GraphicsContextGL::UNSIGNED_SHORT:
    2776         return std::numeric_limits<GCGLushort>::max();
    2777     case GraphicsContextGL::UNSIGNED_INT:
    2778         return std::numeric_limits<GCGLuint>::max();
    2779     }
    2780 
    2781     return 0;
    2782 }
    2783 #endif
    27842768
    27852769void WebGLRenderingContextBase::drawElements(GCGLenum mode, GCGLsizei count, GCGLenum type, long long offset)
  • trunk/Source/WebCore/platform/graphics/opengl/GraphicsContextGLOpenGL.cpp

    r286293 r287984  
    23842384}
    23852385
    2386 #if HAVE(OPENGL_4) && ENABLE(WEBGL2)
    2387 void GraphicsContextGLOpenGL::primitiveRestartIndex(GCGLuint index)
    2388 {
    2389     if (!makeContextCurrent())
    2390         return;
    2391 
    2392     ::glPrimitiveRestartIndex(index);
    2393 }
    2394 #endif
    2395 
    23962386void GraphicsContextGLOpenGL::bufferData(GCGLenum target, const void* data, GCGLenum usage, GCGLuint srcOffset, GCGLuint length)
    23972387{
  • trunk/Source/WebCore/platform/graphics/opengl/GraphicsContextGLOpenGL.h

    r286943 r287984  
    384384    std::optional<PixelBuffer> readCompositedResultsForPainting();
    385385
    386 #if USE(OPENGL) && ENABLE(WEBGL2)
    387     void primitiveRestartIndex(GCGLuint);
    388 #endif
    389 
    390 
    391386    void setContextVisibility(bool) final;
    392387
Note: See TracChangeset for help on using the changeset viewer.