[EFL][WebGL] Add proper checks to enable GraphicsSurface usage on EGL without XCompos...
[WebKit-https.git] / Source / WebCore / ChangeLog
index 3f0bf6f..2586ee9 100644 (file)
@@ -1,3 +1,26 @@
+2013-03-03  Kondapally Kalyan  <kalyan.kondapally@intel.com>
+
+        [EFL][WebGL] Add proper checks to enable GraphicsSurface usage on EGL without XCompositeWindow.
+        https://bugs.webkit.org/show_bug.cgi?id=108034
+
+        Reviewed by Laszlo Gombos.
+
+        Covered by existing WebGL tests.
+
+        Currently, we set GRAPHICS_SURFACE to true if support for XCompositeWindow
+        is identified during compile time. This is ok, when using GLX. We might not
+        have support for XCompositeWindow when using EGL and GLES2.0. This patch
+        makes changes so that GRAPHICS_SURFACE is always enabled with EGL and adds
+        GLX guard to the parts of code dependent on XCompositeWindow support.
+
+        * platform/graphics/opengl/GLPlatformSurface.cpp:
+        * platform/graphics/surfaces/glx/GLXConfigSelector.h:
+        (WebCore::GLXConfigSelector::findMatchingConfig):
+        * platform/graphics/surfaces/glx/X11Helper.cpp:
+        (WebCore::X11Helper::createOffScreenWindow):
+        (WebCore::X11Helper::isXRenderExtensionSupported):
+        * platform/graphics/surfaces/glx/X11Helper.h:
+
 2013-03-03  Alexander Pavlov  <apavlov@chromium.org>
 
         Web Inspector: [PageAgent] can't find frame by security origin.