Follows mesa change on wayland/wl_buffer support #TIVI-2275 21/13621/2 accepted/tizen/generic/20140106.141636 accepted/tizen/ivi/20131231.214701 accepted/tizen/ivi/release/20140108.215242 submit/tizen/20131231.205223 submit/tizen_ivi_release/20140108.215107
authorZhao Halley <halley.zhao@intel.com>
Wed, 11 Dec 2013 02:02:01 +0000 (10:02 +0800)
committerGerrit Code Review <gerrit@review.vlan103.tizen.org>
Wed, 18 Dec 2013 23:20:03 +0000 (15:20 -0800)
use wl_resource for eglQueryWaylandBufferWL instead of wl_buffer
on par with commit:
e69370c5f3427deb1ba54223b3ce971328fc391b
0fd6ee7be2976c8f0bf36d2274a92ce76ad9d773

Change-Id: If997ab28ab74a438c9f5ab5fec58b093630a8834
Signed-off-by: Zhao, Halley <halley.zhao@intel.com>
Source/WebCore/platform/graphics/surfaces/egl/EGLHelper.cpp
Source/WebCore/platform/graphics/surfaces/egl/EGLHelper.h
Source/WebCore/platform/graphics/surfaces/wayland/WaylandSurface.cpp

index 63dea11..e1da1f3 100644 (file)
@@ -150,7 +150,7 @@ PlatformDisplay EGLHelper::compositorEGLDisplay(NativeSharedDisplay* display)
     return displayConnection.display();
 }
 
-GLint EGLHelper::queryWaylandBufferWLFormat(void *buffer, EGLDisplay eglDisplay)
+GLint EGLHelper::queryWaylandBufferWLFormat(struct wl_resource *buffer, EGLDisplay eglDisplay)
 {
     EGLDisplay display = eglDisplay;
     if (display == EGL_NO_DISPLAY)
@@ -161,7 +161,7 @@ GLint EGLHelper::queryWaylandBufferWLFormat(void *buffer, EGLDisplay eglDisplay)
 
     EGLint format = -1;
     if (eglQueryWaylandBufferWL) {
-        eglQueryWaylandBufferWL(display, (struct wl_resource*)buffer, EGL_TEXTURE_FORMAT, &format);
+        eglQueryWaylandBufferWL(display, buffer, EGL_TEXTURE_FORMAT, &format);
     }
 
     return format;
index 96e9527..fb8f951 100644 (file)
@@ -62,7 +62,7 @@ public:
     static bool unlockSurface(EGLSurface, EGLDisplay = EGL_NO_DISPLAY);
     static bool querySurface(EGLSurface, EGLint, EGLint*, EGLDisplay = EGL_NO_DISPLAY);
 #if PLATFORM(WAYLAND)
-    static GLint queryWaylandBufferWLFormat(void *buffer, EGLDisplay eglDisplay);
+    static GLint queryWaylandBufferWLFormat(struct wl_resource *buffer, EGLDisplay eglDisplay);
 #endif
 };
 
index 8b7b89a..e34af41 100644 (file)
@@ -360,7 +360,7 @@ void WaylandBuffer::queryBufferInformation()
         return;
     }
 
-    m_format = EGLHelper::queryWaylandBufferWLFormat(wl_resource_get_user_data(m_commitedResource), display);
+    m_format = EGLHelper::queryWaylandBufferWLFormat(m_commitedResource, display);
     switch (m_format) {
     case EGL_TEXTURE_Y_UV_WL:
         numPlanes = 2;