Fix attribute in query surface. 80/5580/2
authorKondapally Kalyan <kalyan.kondapally@intel.com>
Tue, 9 Jul 2013 20:00:02 +0000 (23:00 +0300)
committerKondapally Kalyan <kalyan.kondapally@intel.com>
Tue, 9 Jul 2013 20:00:02 +0000 (23:00 +0300)
The color buffer of a locked surface can be mapped by calling
eglQuerySurface with attribute EGL_BITMAP_POINTER_KHR. This patch
fixes sharedPlatformSurface to use correct attribute in querysurface.
Change-Id: Ic89a32466d24b3f257e7b125f7140a9f613d65a0

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

index dbff45b..9a7ff9c 100755 (executable)
 #if ENABLE(TIZEN_WEBKIT2_TILED_AC)
 #include "EGLHelper.h"
 #include "GLPlatformContext.h"
-#include "NotImplemented.h"
 
 #include <wtf/HashMap.h>
-#include <wtf/OwnPtr.h>
-#include <wtf/RefCounted.h>
-#include <wtf/StdLibExtras.h>
-#include <wtf/text/WTFString.h>
-
-#include <stdio.h>
 
 namespace WebCore {
 
@@ -184,7 +177,7 @@ bool SharedPlatformSurfaceTizen::unlockSurface()
 bool SharedPlatformSurfaceTizen::querySurface(int** value)
 {
     int* value_local;
-    bool ret = EGLHelper::querySurface(m_offScreenSurface->drawable(), EGL_BITMAP_PITCH_KHR, (EGLint*)&value_local);
+    bool ret = EGLHelper::querySurface(m_offScreenSurface->drawable(), EGL_BITMAP_POINTER_KHR, (EGLint*)&value_local);
     *value = value_local;
 
     return ret;