Changeset 181321 in webkit
- Timestamp:
- Mar 10, 2015 6:19:35 AM (9 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ChangeLog
r181318 r181321 1 2015-03-10 Carlos Garcia Campos <cgarcia@igalia.com> and José Dapena Paz <jdapena@igalia.com> 2 3 [GTK] Add a configure option to build with OpenGL ES 2 4 https://bugs.webkit.org/show_bug.cgi?id=142498 5 6 Reviewed by Martin Robinson. 7 8 Add ENABLE_GLES2 option. It's disabled by default, but if passed 9 GLES2 is required and OpenGL is not even searched. Otherwise we 10 search for OpenGL as usual, using it only if present. 11 12 * Source/cmake/OptionsGTK.cmake: 13 1 14 2015-03-10 Csaba Osztrogonác <ossy@webkit.org> 2 15 -
trunk/Source/WebCore/ChangeLog
r181320 r181321 1 2015-03-10 Carlos Garcia Campos <cgarcia@igalia.com> and José Dapena Paz <jdapena@igalia.com> 2 3 [GTK] Add a configure option to build with OpenGL ES 2 4 https://bugs.webkit.org/show_bug.cgi?id=142498 5 6 Reviewed by Martin Robinson. 7 8 Build GLES or GL specific files depending on the build options. 9 10 * PlatformGTK.cmake: 11 1 12 2015-03-10 Zan Dobersek <zdobersek@igalia.com> 2 13 -
trunk/Source/WebCore/PlatformGTK.cmake
r179111 r181321 66 66 platform/graphics/GraphicsContext3DPrivate.cpp 67 67 platform/graphics/ImageSource.cpp 68 platform/graphics/OpenGLShims.cpp69 68 platform/graphics/WOFFFileFormat.cpp 70 69 … … 117 116 platform/graphics/harfbuzz/HarfBuzzShaper.cpp 118 117 119 platform/graphics/opengl/Extensions3DOpenGL.cpp120 118 platform/graphics/opengl/Extensions3DOpenGLCommon.cpp 121 platform/graphics/opengl/Extensions3DOpenGLES.cpp122 platform/graphics/opengl/GraphicsContext3DOpenGL.cpp123 119 platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp 124 120 platform/graphics/opengl/TemporaryOpenGLSetting.cpp … … 403 399 list(APPEND WebCore_LIBRARIES 404 400 ${EGL_LIBRARY} 401 ) 402 endif () 403 404 if (WTF_USE_OPENGL_ES_2) 405 list(APPEND WebCore_SOURCES 406 platform/graphics/opengl/Extensions3DOpenGLES.cpp 407 platform/graphics/opengl/GraphicsContext3DOpenGLES.cpp 408 ) 409 endif () 410 411 if (WTF_USE_OPENGL) 412 list(APPEND WebCore_SOURCES 413 platform/graphics/OpenGLShims.cpp 414 415 platform/graphics/opengl/Extensions3DOpenGL.cpp 416 platform/graphics/opengl/GraphicsContext3DOpenGL.cpp 405 417 ) 406 418 endif () -
trunk/Source/cmake/OptionsGTK.cmake
r180502 r181321 17 17 set(ENABLE_WAYLAND_TARGET OFF CACHE BOOL "Whether to enable support for the Wayland windowing target.") 18 18 set(ENABLE_INTROSPECTION ON CACHE BOOL "Whether to enable GObject introspection.") 19 set(ENABLE_GLES2 OFF CACHE BOOL "Whether to enable OpenGL ES 2.0.") 19 20 20 21 # These are shared variables, but we special case their definition so that we can use the … … 47 48 find_package(ATSPI 2.5.3) 48 49 find_package(GObjectIntrospection) 49 find_package(OpenGL)50 50 find_package(EGL) 51 51 find_package(GeoClue2 2.1.5) … … 55 55 if (NOT GEOCLUE2_FOUND) 56 56 find_package(GeoClue) 57 endif () 58 59 if (ENABLE_GLES2) 60 find_package(OpenGLES2 REQUIRED) 61 if (OPENGLES2_FOUND AND NOT(EGL_FOUND)) 62 message(FATAL_ERROR "EGL is needed for OpenGL ES 2.0.") 63 endif () 64 else () 65 find_package(OpenGL) 57 66 endif () 58 67 … … 62 71 # will fail. 63 72 find_package(X11 REQUIRED) 64 # We don't use find_package for GLX because it is part of -lGL, unlike EGL. 65 check_include_files("GL/glx.h" GLX_FOUND) 73 if (OPENGL_FOUND) 74 # We don't use find_package for GLX because it is part of -lGL, unlike EGL. 75 check_include_files("GL/glx.h" GLX_FOUND) 76 endif () 66 77 endif () 67 78 … … 69 80 WEBKIT_OPTION_DEFINE(ENABLE_PLUGIN_PROCESS_GTK2 "Whether to build WebKitPluginProcess2 to load GTK2 based plugins." ON) 70 81 71 if ( OPENGL_FOUNDAND (GLX_FOUND OR EGL_FOUND))82 if ((OPENGL_FOUND OR OPENGLES2_FOUND) AND (GLX_FOUND OR EGL_FOUND)) 72 83 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_WEBGL ON) 73 84 74 if (GLX_FOUND) 75 list(APPEND CAIRO_GL_COMPONENTS cairo-glx) 76 endif () 77 if (EGL_FOUND) 78 list(APPEND CAIRO_GL_COMPONENTS cairo-egl) 79 endif () 80 find_package(CairoGL 1.10.2 COMPONENTS ${CAIRO_GL_COMPONENTS}) 81 if (CAIRO_GL_FOUND) 82 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_ACCELERATED_2D_CANVAS ON) 85 if (OPENGL_FOUND) 86 if (GLX_FOUND) 87 list(APPEND CAIRO_GL_COMPONENTS cairo-glx) 88 endif () 89 if (EGL_FOUND) 90 list(APPEND CAIRO_GL_COMPONENTS cairo-egl) 91 endif () 92 find_package(CairoGL 1.10.2 COMPONENTS ${CAIRO_GL_COMPONENTS}) 93 if (CAIRO_GL_FOUND) 94 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_ACCELERATED_2D_CANVAS ON) 95 else () 96 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_ACCELERATED_2D_CANVAS OFF) 97 endif () 83 98 else () 99 # FIXME: Should we search for cairo-glesv2 instead of cairo-gl in this case? 84 100 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_ACCELERATED_2D_CANVAS OFF) 85 101 endif () … … 316 332 endif () 317 333 318 if ( OPENGL_FOUNDAND (GLX_FOUND OR EGL_FOUND))334 if ((OPENGL_FOUND OR OPENGLES2_FOUND) AND (GLX_FOUND OR EGL_FOUND)) 319 335 set(ENABLE_TEXTURE_MAPPER 1) 320 336 set(WTF_USE_3D_GRAPHICS 1) 321 337 322 add_definitions(-DWTF_USE_OPENGL=1)323 338 add_definitions(-DWTF_USE_3D_GRAPHICS=1) 324 339 add_definitions(-DWTF_USE_TEXTURE_MAPPER=1) 325 340 add_definitions(-DWTF_USE_TEXTURE_MAPPER_GL=1) 326 341 add_definitions(-DENABLE_3D_RENDERING=1) 342 343 if (OPENGLES2_FOUND) 344 set(WTF_USE_OPENGL_ES_2 1) 345 add_definitions(-DWTF_USE_OPENGL_ES_2=1) 346 else () 347 set(WTF_USE_OPENGL 1) 348 add_definitions(-DWTF_USE_OPENGL=1) 349 endif () 327 350 328 351 if (EGL_FOUND)
Note: See TracChangeset
for help on using the changeset viewer.