Disabling gl stencil bits and tweaking use 8888 rendering 29/2429/1
authorRusty Lynch <rusty.lynch@intel.com>
Tue, 27 Nov 2012 19:31:38 +0000 (11:31 -0800)
committerRusty Lynch <rusty.lynch@intel.com>
Tue, 27 Nov 2012 19:31:38 +0000 (11:31 -0800)
Enabling rendering on wayland by disabling gl stencil bits and
using EVAS_GL_DEPTH_8 and EVAS_GL_RGBA_8888

Source/WebCore/platform/graphics/efl/GraphicsContext3DOffscreen.cpp
Source/WebCore/platform/graphics/efl/GraphicsContext3DOnscreen.cpp
Source/WebKit2/UIProcess/API/efl/PageClientImpl.cpp

index 1fe1e9c..7fddaa0 100755 (executable)
@@ -274,7 +274,7 @@ bool GraphicsContext3DOffscreen::createContext(Evas_Object* view)
 bool GraphicsContext3DOffscreen::createSurface(Evas_Object* view)
 {
     Evas_GL_Config config = {
-        EVAS_GL_RGBA_8,
+        EVAS_GL_RGBA_8888,
         EVAS_GL_DEPTH_BIT_8,
         EVAS_GL_STENCIL_NONE
     };
index 94840db..1df636b 100755 (executable)
@@ -139,7 +139,7 @@ bool GraphicsContext3DOnscreen::setSurface()
     LOG(AcceleratedCompositing, "---> ewk_view's geometry - x: %d y: %d w: %d h: %d\n", x, y, w, h);
 
     Evas_GL_Config config = {
-        EVAS_GL_RGBA_8,
+        EVAS_GL_RGBA_8888,
         EVAS_GL_DEPTH_BIT_8,
     #if USE(TIZEN_TEXTURE_MAPPER)
         EVAS_GL_STENCIL_BIT_8
index d389860..dec48e3 100755 (executable)
@@ -602,8 +602,8 @@ void PageClientImpl::initializeAcceleratedCompositingMode()
     m_config->options_bits = EVAS_GL_OPTIONS_DIRECT;
 #endif
     m_config->color_format = EVAS_GL_RGBA_8888;
-    m_config->depth_bits = EVAS_GL_DEPTH_BIT_24;
-    m_config->stencil_bits = EVAS_GL_STENCIL_BIT_8;
+    m_config->depth_bits = EVAS_GL_DEPTH_BIT_8;
+    m_config->stencil_bits = EVAS_GL_STENCIL_NONE;
 
     m_evasGL = evas_gl_new(evas);
     if (!m_evasGL) {