summaryrefslogtreecommitdiff
path: root/src/lib/evas/Evas_Common.h
diff options
context:
space:
mode:
authorDongyeon Kim <dy5.kim@samsung.com>2015-01-19 12:28:32 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2015-02-10 14:48:22 +0900
commit72f3e684d90e115aacaa62f49c66821c4e90782f (patch)
treefa16ee2b81b9cf6eb28dab97a77a3727a317bc3a /src/lib/evas/Evas_Common.h
parent5df768a43aee6a53d1bd44155bdd08f59908aabf (diff)
evas/gl_x11: introduce tbm native surface type
Summary: This native surface type is based on the tbm surface used for the tizen platform. EGL_TIZEN_image_native_surface EGL extension is used to map tbm surface to an egl image @feature Reviewers: raster, cedric, jpeg Subscribers: cedric, wonsik Signed-off-by: Jean-Philippe Andre <jp.andre@samsung.com>
Diffstat (limited to 'src/lib/evas/Evas_Common.h')
-rw-r--r--src/lib/evas/Evas_Common.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/lib/evas/Evas_Common.h b/src/lib/evas/Evas_Common.h
index e53a122386..e1ab7d6c42 100644
--- a/src/lib/evas/Evas_Common.h
+++ b/src/lib/evas/Evas_Common.h
@@ -474,7 +474,8 @@ typedef enum _Evas_Native_Surface_Type
474 EVAS_NATIVE_SURFACE_NONE, /**< No surface type */ 474 EVAS_NATIVE_SURFACE_NONE, /**< No surface type */
475 EVAS_NATIVE_SURFACE_X11, /**< X Window system based type. pixmap id or visual of the pixmap */ 475 EVAS_NATIVE_SURFACE_X11, /**< X Window system based type. pixmap id or visual of the pixmap */
476 EVAS_NATIVE_SURFACE_OPENGL, /**< OpenGL system based type. texture or framebuffer id*/ 476 EVAS_NATIVE_SURFACE_OPENGL, /**< OpenGL system based type. texture or framebuffer id*/
477 EVAS_NATIVE_SURFACE_WL /**< Wayland system based type. buffer of surface */ 477 EVAS_NATIVE_SURFACE_WL, /**< Wayland system based type. buffer of surface */
478 EVAS_NATIVE_SURFACE_TBM, /**< Tizen system based type. tbm surface */
478} Evas_Native_Surface_Type; 479} Evas_Native_Surface_Type;
479 480
480/** 481/**
@@ -487,7 +488,9 @@ typedef enum _Evas_Native_Surface_Type
487 * EVAS_NATIVE_SURFACE_OPENGL, on the other hand, you need to set union data 488 * EVAS_NATIVE_SURFACE_OPENGL, on the other hand, you need to set union data
488 * with opengl.texture_id or opengl.framebuffer_id and so on. 489 * with opengl.texture_id or opengl.framebuffer_id and so on.
489 * If you need to set the native surface as EVAS_NATIVE_SURFACE_WL, 490 * If you need to set the native surface as EVAS_NATIVE_SURFACE_WL,
490 * you need to set union data with wl.legacy_buffer. The version field 491 * you need to set union data with wl.legacy_buffer.
492 * If you need to set the native surface as EVAS_NATIVE_SURFACE_TBM,
493 * you need to set union data with tbm surface. The version field
491 * should be set with EVAS_NATIVE_SURFACE_VERSION in order to check abi 494 * should be set with EVAS_NATIVE_SURFACE_VERSION in order to check abi
492 * break in your application on the different efl library versions. 495 * break in your application on the different efl library versions.
493 * 496 *
@@ -525,6 +528,10 @@ struct _Evas_Native_Surface
525 { 528 {
526 void *legacy_buffer; /**< wayland client buffer to use */ 529 void *legacy_buffer; /**< wayland client buffer to use */
527 } wl; /**< Set this struct fields if surface data is Wayland based. */ 530 } wl; /**< Set this struct fields if surface data is Wayland based. */
531 struct
532 {
533 void *buffer; /**< tbm surface buffer to use */
534 } tbm; /**< Set this struct fields if surface data is Tizen based. */
528 } data; /**< Choose one union data according to your surface. */ 535 } data; /**< Choose one union data according to your surface. */
529}; 536};
530 537