]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ENGR00325693 [#1318] Add eglSwapInterval support in Wayland client
authorYong Gan <b45748@freescale.com>
Wed, 13 Aug 2014 06:51:34 +0000 (14:51 +0800)
committerNitin Garg <nitin.garg@freescale.com>
Fri, 16 Jan 2015 03:18:28 +0000 (21:18 -0600)
Add new API gcoOS_SetSwapIntervalEx.

Date: Aug 04, 2014
Signed-off-by Yong Gan <yong.gan@freescale.com>

(cherry picked from commit 971632a7fb6d0744ccac563bcdbf6a4decf4e0a1)

drivers/mxc/gpu-viv/hal/kernel/inc/gc_hal_eglplatform.h

index 690c957a8c66a9b4ef0a558f15d8c1d87f6071b5..411e9f88e49af0eba32d85ea5192ad0edd815abf 100644 (file)
@@ -74,7 +74,8 @@ typedef struct _gcsWL_EGL_DISPLAY
    struct wl_display* wl_display;
    struct wl_viv* wl_viv;
    struct wl_registry *registry;
-   struct wl_event_queue    *wl_queue;
+   struct wl_event_queue *wl_queue;
+   gctINT swapInterval;
 } gcsWL_EGL_DISPLAY;
 
 typedef struct _gcsWL_EGL_BUFFER_INFO
@@ -87,6 +88,7 @@ typedef struct _gcsWL_EGL_BUFFER_INFO
    gcePOOL pool;
    gctUINT bytes;
    gcoSURF surface;
+   gcoSURF attached_surface;
    gctINT32 invalidate;
    gctBOOL locked;
 } gcsWL_EGL_BUFFER_INFO;
@@ -293,6 +295,13 @@ gcoOS_SetSwapInterval(
     IN gctINT Interval
 );
 
+gceSTATUS
+gcoOS_SetSwapIntervalEx(
+    IN HALNativeDisplayType Display,
+    IN gctINT Interval,
+    IN gctPOINTER localDisplay
+);
+
 gceSTATUS
 gcoOS_GetSwapInterval(
     IN HALNativeDisplayType Display,