Create Lock Surface only if supported. 27/4027/2
authorKondapally Kalyan <kalyan.kondapally@intel.com>
Sun, 16 Jun 2013 14:54:41 +0000 (17:54 +0300)
committerGerrit Code Review <gerrit@review.vlan103.tizen.org>
Tue, 18 Jun 2013 06:44:52 +0000 (23:44 -0700)
PlatformSurfacePoolTizen creates a temporary EGLSurface supporting
Locking to work around a cairo issue. This patch adds a check in
SharedPlatformSurfaceTizen to create the surface only if Lock Surface
is supported.

Source/WebCore/platform/graphics/efl/tizen/SharedPlatformSurfaceTizen.cpp

index a9f6f05..890fe68 100755 (executable)
@@ -167,6 +167,9 @@ bool SharedPlatformSurfaceTizen::initialize()
     if (m_size.isEmpty())
         return false;
 
+    if ((m_sharedSurfaceAttributes & GLPlatformSurface::Lockable) && !supportsLockSurfaceExtension())
+        return false;
+
     m_offScreenSurface = GLPlatformSurface::createOffScreenSurface(m_sharedSurfaceAttributes, m_size);
 
     if (!m_offScreenSurface)