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

Changeset 276528 in webkit


Ignore:
Timestamp:
Apr 23, 2021, 4:21:20 PM (5 years ago)
Author:
don.olmstead@sony.com
Message:

Add additional guards around USE_ANGLE
https://bugs.webkit.org/show_bug.cgi?id=225001

Reviewed by Fujii Hironori.

When USE(ANGLE) initializeOpenGLShims isn't used or available.

When USE(ANGLE) the ANGLE shader compiler isn't needed.

  • platform/graphics/GLContext.cpp:

(WebCore::initializeOpenGLShimsIfNeeded):

  • platform/graphics/texmap/GraphicsContextGLTextureMapper.cpp:
Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r276521 r276528  
     12021-04-23  Don Olmstead  <don.olmstead@sony.com>
     2
     3        Add additional guards around USE_ANGLE
     4        https://bugs.webkit.org/show_bug.cgi?id=225001
     5
     6        Reviewed by Fujii Hironori.
     7
     8        When USE(ANGLE) initializeOpenGLShims isn't used or available.
     9
     10        When USE(ANGLE) the ANGLE shader compiler isn't needed.
     11
     12        * platform/graphics/GLContext.cpp:
     13        (WebCore::initializeOpenGLShimsIfNeeded):
     14        * platform/graphics/texmap/GraphicsContextGLTextureMapper.cpp:
     15
    1162021-04-23  Cathie Chen  <cathiechen@igalia.com>
    217
  • trunk/Source/WebCore/platform/graphics/GLContext.cpp

    r270477 r276528  
    5858static bool initializeOpenGLShimsIfNeeded()
    5959{
    60 #if USE(OPENGL_ES) || USE(LIBEPOXY)
     60#if USE(OPENGL_ES) || USE(LIBEPOXY) || USE(ANGLE)
    6161    return true;
    6262#else
  • trunk/Source/WebCore/platform/graphics/texmap/GraphicsContextGLTextureMapper.cpp

    r275463 r276528  
    3535#include "GraphicsContextGLOpenGLManager.h"
    3636#include "TextureMapperGCGLPlatformLayer.h"
    37 #include <ANGLE/ShaderLang.h>
    3837#include <wtf/Deque.h>
    3938#include <wtf/NeverDestroyed.h>
     
    4948#if USE(ANGLE)
    5049#include "ExtensionsGLANGLE.h"
    51 #elif USE(OPENGL_ES)
     50#else
     51#include <ANGLE/ShaderLang.h>
     52#if USE(OPENGL_ES)
    5253#include "ExtensionsGLOpenGLES.h"
    5354#else
    5455#include "ExtensionsGLOpenGL.h"
     56#endif
    5557#endif
    5658
Note: See TracChangeset for help on using the changeset viewer.