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

Changeset 271220 in webkit


Ignore:
Timestamp:
Jan 6, 2021, 4:49:55 PM (6 years ago)
Author:
Fujii Hironori
Message:

[GTK][CMake] Add a build switch USE_OPENGL_OR_ES to be able to disable OpenGL and ES
https://bugs.webkit.org/show_bug.cgi?id=220183

Reviewed by Kenneth Russell.

.:

r270477 removed ENABLE_GRAPHICS_CONTEXT_GL macro and build switch,
but GTK port still needs the build switch. Revert r270477
partially to restore the build switch and rename it to
USE_OPENGL_OR_ES.

  • Source/cmake/OptionsGTK.cmake:

Source/WebCore:

  • platform/graphics/x11/PlatformDisplayX11.cpp: Include <X11/Xutil.h> for XGetVisualInfo.
Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/ChangeLog

    r271170 r271220  
     12021-01-06  Fujii Hironori  <Hironori.Fujii@sony.com>
     2
     3        [GTK][CMake] Add a build switch USE_OPENGL_OR_ES to be able to disable OpenGL and ES
     4        https://bugs.webkit.org/show_bug.cgi?id=220183
     5
     6        Reviewed by Kenneth Russell.
     7
     8        r270477 removed ENABLE_GRAPHICS_CONTEXT_GL macro and build switch,
     9        but GTK port still needs the build switch. Revert r270477
     10        partially to restore the build switch and rename it to
     11        USE_OPENGL_OR_ES.
     12
     13        * Source/cmake/OptionsGTK.cmake:
     14
    1152021-01-05  Fujii Hironori  <Hironori.Fujii@sony.com>
    216
  • trunk/Source/WebCore/ChangeLog

    r271219 r271220  
     12021-01-06  Fujii Hironori  <Hironori.Fujii@sony.com>
     2
     3        [GTK][CMake] Add a build switch USE_OPENGL_OR_ES to be able to disable OpenGL and ES
     4        https://bugs.webkit.org/show_bug.cgi?id=220183
     5
     6        Reviewed by Kenneth Russell.
     7
     8        * platform/graphics/x11/PlatformDisplayX11.cpp: Include <X11/Xutil.h> for XGetVisualInfo.
     9
    1102021-01-06  Jer Noble  <jer.noble@apple.com>
    211
  • trunk/Source/WebCore/platform/graphics/x11/PlatformDisplayX11.cpp

    r260946 r271220  
    3333#include <X11/extensions/Xcomposite.h>
    3434#if PLATFORM(GTK)
     35#include <X11/Xutil.h>
    3536#include <X11/extensions/Xdamage.h>
    3637#endif
  • trunk/Source/cmake/OptionsGTK.cmake

    r270477 r271220  
    7373endif ()
    7474
    75 # Set the default value for ENABLE_GLES2 automatically.
    76 # We are not enabling or disabling automatically a feature here, because
    77 # the feature is by default always on.
    78 # What we select here automatically is if we use OPENGL (ENABLE_GLES2=OFF)
    79 # or OPENGLES2 (ENABLE_GLES2=ON) for building the feature.
     75# Set the default value for ENABLE_GLES2 and USE_OPENGL_OR_ES.
    8076set(ENABLE_GLES2_DEFAULT OFF)
     77set(USE_OPENGL_OR_ES_DEFAULT OFF)
    8178
    8279if (OPENGLES2_FOUND AND (NOT OPENGL_FOUND OR WTF_CPU_ARM OR WTF_CPU_ARM64))
    8380    set(ENABLE_GLES2_DEFAULT ON)
     81endif ()
     82
     83if (OPENGL_FOUND OR OPENGLES2_FOUND)
     84    set(USE_OPENGL_OR_ES_DEFAULT ON)
    8485endif ()
    8586
     
    9697WEBKIT_OPTION_DEFINE(USE_LIBHYPHEN "Whether to enable the default automatic hyphenation implementation." PUBLIC ON)
    9798WEBKIT_OPTION_DEFINE(USE_LIBSECRET "Whether to enable the persistent credential storage using libsecret." PUBLIC ON)
     99WEBKIT_OPTION_DEFINE(USE_OPENGL_OR_ES "Whether to use OpenGL or ES." PUBLIC ${USE_OPENGL_OR_ES_DEFAULT})
    98100WEBKIT_OPTION_DEFINE(USE_OPENJPEG "Whether to enable support for JPEG2000 images." PUBLIC ON)
    99101WEBKIT_OPTION_DEFINE(USE_WOFF2 "Whether to enable support for WOFF2 Web Fonts." PUBLIC ON)
     
    105107WEBKIT_OPTION_DEFINE(USE_ANGLE_WEBGL "Whether to use ANGLE as WebGL backend." PRIVATE OFF)
    106108
     109WEBKIT_OPTION_DEPEND(ENABLE_3D_TRANSFORMS USE_OPENGL_OR_ES)
     110WEBKIT_OPTION_DEPEND(ENABLE_ASYNC_SCROLLING USE_OPENGL_OR_ES)
     111WEBKIT_OPTION_DEPEND(ENABLE_GLES2 USE_OPENGL_OR_ES)
     112WEBKIT_OPTION_DEPEND(ENABLE_WEBGL USE_OPENGL_OR_ES)
    107113WEBKIT_OPTION_DEPEND(USE_ANGLE_WEBGL ENABLE_WEBGL)
     114WEBKIT_OPTION_DEPEND(USE_GSTREAMER_GL USE_OPENGL_OR_ES)
     115WEBKIT_OPTION_DEPEND(USE_WPE_RENDERER USE_OPENGL_OR_ES)
    108116WEBKIT_OPTION_DEPEND(USE_WPE_RENDERER ENABLE_WAYLAND_TARGET)
    109117
     
    267275SET_AND_EXPOSE_TO_BUILD(USE_TEXTURE_MAPPER TRUE)
    268276
    269 if (OPENGL_FOUND OR ENABLE_GLES2)
     277if (USE_OPENGL_OR_ES)
    270278    # USE_OPENGL is the opposite of ENABLE_GLES2.
    271279    if (ENABLE_GLES2)
Note: See TracChangeset for help on using the changeset viewer.