| Differences between
and this patch
- ChangeLog +15 lines
Lines 1-5 ChangeLog_sec1
1
2012-12-27  Kondapally Kalyan  <kalyan.kondapally@intel.com>
1
2012-12-27  Kondapally Kalyan  <kalyan.kondapally@intel.com>
2
2
3
        [EFL][WebGL] Add compile time support for GLES2.
4
        https://bugs.webkit.org/show_bug.cgi?id=105816
5
6
        Reviewed by NOBODY (OOPS!).
7
8
        This patch adds build support for GLES2.
9
        GLES2 support can be enabled during compile time by passing -DENABLE_GLES2=ON as
10
        cmake config parameter. GLES2 options is not enabled by default. This patch doesn't
11
        address all the build issues related to GLES2 but only adds the needed support in
12
        OptionsEfl.cmake.
13
14
        * Source/cmake/OptionsEfl.cmake:
15
16
2012-12-27  Kondapally Kalyan  <kalyan.kondapally@intel.com>
17
3
        [EFL][WebGL] Implement EGL support with GLX.
18
        [EFL][WebGL] Implement EGL support with GLX.
4
        https://bugs.webkit.org/show_bug.cgi?id=105602
19
        https://bugs.webkit.org/show_bug.cgi?id=105602
5
20
- Source/WebCore/ChangeLog +13 lines
Lines 1-5 Source/WebCore/ChangeLog_sec1
1
2012-12-27  Kondapally Kalyan  <kalyan.kondapally@intel.com>
1
2012-12-27  Kondapally Kalyan  <kalyan.kondapally@intel.com>
2
2
3
        [EFL][WebGL] Add compile time support for GLES2.
4
        https://bugs.webkit.org/show_bug.cgi?id=105816
5
6
        This patch adds build support for GLES2.
7
        GLES2 support can be enabled during compile time by passing -DENABLE_GLES2=ON as
8
        cmake config parameter. GLES2 options is not enabled by default. This patch doesn't
9
        address all the build issues related to GLES2 but only adds the needed support in
10
        PlatformEfl.cmake.
11
12
        * PlatformEfl.cmake:
13
14
2012-12-27  Kondapally Kalyan  <kalyan.kondapally@intel.com>
15
3
        [EFL][WebGL] Add OPENGL_ES_2 checks.
16
        [EFL][WebGL] Add OPENGL_ES_2 checks.
4
        https://bugs.webkit.org/show_bug.cgi?id=105805
17
        https://bugs.webkit.org/show_bug.cgi?id=105805
5
18
- Source/WebCore/PlatformEfl.cmake -2 / +14 lines
Lines 274-280 if (WTF_USE_3D_GRAPHICS) Source/WebCore/PlatformEfl.cmake_sec1
274
    endif ()
274
    endif ()
275
275
276
    list(APPEND WebCore_SOURCES
276
    list(APPEND WebCore_SOURCES
277
        platform/graphics/OpenGLShims.cpp
278
        platform/graphics/cairo/DrawingBufferCairo.cpp
277
        platform/graphics/cairo/DrawingBufferCairo.cpp
279
        platform/graphics/efl/GraphicsContext3DEfl.cpp
278
        platform/graphics/efl/GraphicsContext3DEfl.cpp
280
        platform/graphics/efl/GraphicsContext3DPrivate.cpp
279
        platform/graphics/efl/GraphicsContext3DPrivate.cpp
Lines 282-288 if (WTF_USE_3D_GRAPHICS) Source/WebCore/PlatformEfl.cmake_sec2
282
        platform/graphics/opengl/Extensions3DOpenGLCommon.cpp
281
        platform/graphics/opengl/Extensions3DOpenGLCommon.cpp
283
        platform/graphics/opengl/GLPlatformContext.cpp
282
        platform/graphics/opengl/GLPlatformContext.cpp
284
        platform/graphics/opengl/GLPlatformSurface.cpp
283
        platform/graphics/opengl/GLPlatformSurface.cpp
285
        platform/graphics/opengl/GraphicsContext3DOpenGL.cpp
286
        platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp
284
        platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp
287
        platform/graphics/surfaces/GraphicsSurface.cpp
285
        platform/graphics/surfaces/GraphicsSurface.cpp
288
        platform/graphics/surfaces/glx/GraphicsSurfaceGLX.cpp
286
        platform/graphics/surfaces/glx/GraphicsSurfaceGLX.cpp
Lines 293-298 if (WTF_USE_3D_GRAPHICS) Source/WebCore/PlatformEfl.cmake_sec3
293
291
294
    if (WTF_USE_EGL)
292
    if (WTF_USE_EGL)
295
        list(APPEND WebCore_SOURCES
293
        list(APPEND WebCore_SOURCES
294
            platform/graphics/surfaces/egl/EGLConfigHelper.cpp
296
            platform/graphics/surfaces/egl/EGLSurface.cpp
295
            platform/graphics/surfaces/egl/EGLSurface.cpp
297
            platform/graphics/surfaces/egl/EGLContext.cpp
296
            platform/graphics/surfaces/egl/EGLContext.cpp
298
        )
297
        )
Lines 305-310 if (WTF_USE_3D_GRAPHICS) Source/WebCore/PlatformEfl.cmake_sec4
305
        )
304
        )
306
    endif ()
305
    endif ()
307
306
307
    if (WTF_USE_OPENGL_ES_2)
308
        list(APPEND WebCore_SOURCES
309
            platform/graphics/opengl/Extensions3DOpenGLES.cpp
310
            platform/graphics/opengl/GraphicsContext3DOpenGLES.cpp
311
        )
312
    else ()
313
        list(APPEND WebCore_SOURCES
314
            platform/graphics/opengl/Extensions3DOpenGL.cpp
315
            platform/graphics/opengl/GraphicsContext3DOpenGL.cpp
316
            platform/graphics/OpenGLShims.cpp
317
        )
318
    endif ()
319
308
    list(APPEND WebCore_LIBRARIES
320
    list(APPEND WebCore_LIBRARIES
309
        ${X11_X11_LIB}
321
        ${X11_X11_LIB}
310
        ${X11_Xcomposite_LIB}
322
        ${X11_Xcomposite_LIB}
- Source/cmake/OptionsEfl.cmake +10 lines
Lines 186-191 if (ENABLE_WEBGL OR WTF_USE_TILED_BACKING_STORE) Source/cmake/OptionsEfl.cmake_sec1
186
    if (EGL_FOUND)
186
    if (EGL_FOUND)
187
        set(WTF_USE_EGL 1)
187
        set(WTF_USE_EGL 1)
188
        add_definitions(-DWTF_USE_EGL=1)
188
        add_definitions(-DWTF_USE_EGL=1)
189
        option(ENABLE_GLES2 ON)
190
191
        if (ENABLE_GLES2)
192
            find_package(GLES REQUIRED)
193
        endif ()
194
195
        if (OPENGLES2_FOUND)
196
            set(WTF_USE_OPENGL_ES_2 1)
197
            add_definitions(-DWTF_USE_OPENGL_ES_2=1)
198
        endif ()
189
     elseif (OPENGLX_FOUND)
199
     elseif (OPENGLX_FOUND)
190
         set(WTF_USE_GLX 1)
200
         set(WTF_USE_GLX 1)
191
         add_definitions(-DWTF_USE_GLX=1)
201
         add_definitions(-DWTF_USE_GLX=1)

Return to Bug 105816