+2013-03-04 Kondapally Kalyan <kalyan.kondapally@intel.com>
+
+ [EFL] Build fix when compiling with GLES2 support enabled.
+ https://bugs.webkit.org/show_bug.cgi?id=111291
+
+ Reviewed by Kenneth Rohde Christiansen.
+
+ This patch fixes build issues when compiling with GLES2
+ support. As part of the fix the patch removes Evas specific
+ workaround of using GLX with EGL in PlatformContext as GLES2
+ is the main target with EGL.
+
+ * platform/graphics/OpenGLESShims.h:
+ * platform/graphics/opengl/GLPlatformContext.cpp:
+ (WebCore::GLCurrentContextWrapper::GLCurrentContextWrapper):
+ * platform/graphics/texmap/TextureMapper.h:
+
2013-03-04 Ilya Tikhonovsky <loislo@chromium.org>
Web Inspector: implement Flame Chart for CPU profiler.
#ifndef OpenGLESShims_h
#define OpenGLESShims_h
-#if PLATFORM(BLACKBERRY) || PLATFORM(QT) || PLATFORM(GTK)
+#if PLATFORM(BLACKBERRY) || PLATFORM(QT) || PLATFORM(GTK) || PLATFORM(EFL)
#define glBindFramebufferEXT glBindFramebuffer
#define glFramebufferTexture2DEXT glFramebufferTexture2D
#define glBindRenderbufferEXT glBindRenderbuffer
#include "NotImplemented.h"
-#if HAVE(GLX)
-#include <GL/glx.h>
-#endif
-
namespace WebCore {
#if USE(OPENGL_ES_2)
GLCurrentContextWrapper()
: GLPlatformContext()
{
- // FIXME:: This is a workaround until support to build evas with EGL has been added.
-#if USE(GLX) || PLATFORM(EFL)
+#if USE(GLX)
m_contextHandle = glXGetCurrentContext();
#elif USE(EGL)
m_contextHandle = eglGetCurrentContext();