[EFL][WebGL] Add compile time support for GLES2.

https://bugs.webkit.org/show_bug.cgi?id=105816

Patch by Kondapally Kalyan <kalyan.kondapally@intel.com> on 2012-12-31
Reviewed by Kenneth Rohde Christiansen.

.:

This patch adds build support for GLES2.
GLES2 support can be enabled during compile time by passing -DENABLE_GLES2=ON as
cmake config parameter. GLES2 options is not enabled by default. This patch doesn't
address all the build issues related to GLES2 but only adds the needed support in
OptionsEfl.cmake.

* Source/cmake/OptionsEfl.cmake:

Source/WebCore:

This patch adds build support for GLES2.
GLES2 support can be enabled during compile time by passing -DENABLE_GLES2=ON as
cmake config parameter. GLES2 options is not enabled by default. This patch doesn't
address all the build issues related to GLES2 but only adds the needed support in
PlatformEfl.cmake.

* PlatformEfl.cmake:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@138598 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 6ef404f4
2012-12-31 Kondapally Kalyan <kalyan.kondapally@intel.com>
[EFL][WebGL] Add compile time support for GLES2.
https://bugs.webkit.org/show_bug.cgi?id=105816
Reviewed by Kenneth Rohde Christiansen.
This patch adds build support for GLES2.
GLES2 support can be enabled during compile time by passing -DENABLE_GLES2=ON as
cmake config parameter. GLES2 options is not enabled by default. This patch doesn't
address all the build issues related to GLES2 but only adds the needed support in
OptionsEfl.cmake.
* Source/cmake/OptionsEfl.cmake:
2012-12-31 Carlos Garcia Campos <cgarcia@igalia.com>
[GTK] Move ImageDiff to the Tools directory root
......
2012-12-31 Kondapally Kalyan <kalyan.kondapally@intel.com>
[EFL][WebGL] Add compile time support for GLES2.
https://bugs.webkit.org/show_bug.cgi?id=105816
Reviewed by Kenneth Rohde Christiansen.
This patch adds build support for GLES2.
GLES2 support can be enabled during compile time by passing -DENABLE_GLES2=ON as
cmake config parameter. GLES2 options is not enabled by default. This patch doesn't
address all the build issues related to GLES2 but only adds the needed support in
PlatformEfl.cmake.
* PlatformEfl.cmake:
2012-12-31 Andy Chen <andchen@rim.com>
[BlackBerry] The HTML5 video fullscreen time indicator on the right cuts clipped when the video is longer than 1 hour
......@@ -274,15 +274,12 @@ if (WTF_USE_3D_GRAPHICS)
endif ()
list(APPEND WebCore_SOURCES
platform/graphics/OpenGLShims.cpp
platform/graphics/cairo/DrawingBufferCairo.cpp
platform/graphics/efl/GraphicsContext3DEfl.cpp
platform/graphics/efl/GraphicsContext3DPrivate.cpp
platform/graphics/opengl/Extensions3DOpenGL.cpp
platform/graphics/opengl/Extensions3DOpenGLCommon.cpp
platform/graphics/opengl/GLPlatformContext.cpp
platform/graphics/opengl/GLPlatformSurface.cpp
platform/graphics/opengl/GraphicsContext3DOpenGL.cpp
platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp
platform/graphics/surfaces/GraphicsSurface.cpp
platform/graphics/surfaces/glx/GraphicsSurfaceGLX.cpp
......@@ -306,6 +303,19 @@ if (WTF_USE_3D_GRAPHICS)
)
endif ()
if (WTF_USE_OPENGL_ES_2)
list(APPEND WebCore_SOURCES
platform/graphics/opengl/Extensions3DOpenGLES.cpp
platform/graphics/opengl/GraphicsContext3DOpenGLES.cpp
)
else ()
list(APPEND WebCore_SOURCES
platform/graphics/opengl/Extensions3DOpenGL.cpp
platform/graphics/opengl/GraphicsContext3DOpenGL.cpp
platform/graphics/OpenGLShims.cpp
)
endif ()
list(APPEND WebCore_LIBRARIES
${X11_X11_LIB}
${X11_Xcomposite_LIB}
......
......@@ -187,6 +187,16 @@ if (ENABLE_WEBGL OR WTF_USE_TILED_BACKING_STORE)
if (EGL_FOUND)
set(WTF_USE_EGL 1)
add_definitions(-DWTF_USE_EGL=1)
option(ENABLE_GLES2 ON)
if (ENABLE_GLES2)
find_package(GLES REQUIRED)
endif ()
if (OPENGLES2_FOUND)
set(WTF_USE_OPENGL_ES_2 1)
add_definitions(-DWTF_USE_OPENGL_ES_2=1)
endif ()
elseif (OPENGLX_FOUND)
set(WTF_USE_GLX 1)
add_definitions(-DWTF_USE_GLX=1)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment