From: Hermet Park Date: Thu, 25 Apr 2019 08:08:37 +0000 (+0900) Subject: ecore_evas: generalize option defines. X-Git-Tag: accepted/tizen/unified/20190429.103734~10 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cd1b8965aa79851782a4bb3b843235605a4cec9b;p=platform%2Fupstream%2Fefl.git ecore_evas: generalize option defines. There some engine option defines could be generalized from the window system since those options could be used through wayland, x11 both, and probably so on. Change-Id: I1dfef761f7024b573a35038e1acb10d619dc61ad --- diff --git a/src/lib/ecore_evas/Ecore_Evas.h b/src/lib/ecore_evas/Ecore_Evas.h index be77bf5..1a6a643 100755 --- a/src/lib/ecore_evas/Ecore_Evas.h +++ b/src/lib/ecore_evas/Ecore_Evas.h @@ -141,6 +141,22 @@ typedef enum _Ecore_Evas_Engine_Type /* TIZEN_ONLY(20160330): TBM Backend */ } Ecore_Evas_Engine_Type; +#define ECORE_EVAS_OPT_NONE 0 +#define ECORE_EVAS_OPT_INDIRECT 1 +#define ECORE_EVAS_OPT_VSYNC 2 +#define ECORE_EVAS_OPT_SWAP_MODE 3 +#define ECORE_EVAS_OPT_GL_DEPTH 4 +#define ECORE_EVAS_OPT_GL_STENCIL 5 +#define ECORE_EVAS_OPT_GL_MSAA 6 +#define ECORE_EVAS_OPT_LAST 7 + +#define ECORE_EVAS_SWAP_MODE_AUTO 0 +#define ECORE_EVAS_SWAP_MODE_FULL 1 +#define ECORE_EVAS_SWAP_MODE_COPY 2 +#define ECORE_EVAS_SWAP_MODE_DOUBLE 3 +#define ECORE_EVAS_SWAP_MODE_TRIPLE 4 + + /** * @enum _Ecore_Evas_Avoid_Damage_Type * This option causes updates of the Ecore_Evas to be done on a pixmap, and @@ -162,22 +178,6 @@ typedef enum _Ecore_Evas_Object_Associate_Flags ECORE_EVAS_OBJECT_ASSOCIATE_DEL = 1 << 2 } Ecore_Evas_Object_Associate_Flags; -#define ECORE_EVAS_OPT_NONE 0 -#define ECORE_EVAS_OPT_INDIRECT 1 -#define ECORE_EVAS_OPT_VSYNC 2 -#define ECORE_EVAS_OPT_SWAP_MODE 3 -#define ECORE_EVAS_OPT_GL_DEPTH 4 -#define ECORE_EVAS_OPT_GL_STENCIL 5 -#define ECORE_EVAS_OPT_GL_MSAA 6 -#define ECORE_EVAS_OPT_LAST 7 - -#define ECORE_EVAS_SWAP_MODE_AUTO 0 -#define ECORE_EVAS_SWAP_MODE_FULL 1 -#define ECORE_EVAS_SWAP_MODE_COPY 2 -#define ECORE_EVAS_SWAP_MODE_DOUBLE 3 -#define ECORE_EVAS_SWAP_MODE_TRIPLE 4 -#define ECORE_EVAS_SWAP_MODE_QUADRUPLE 5 - /* module setup/shutdown calls */ EAPI int ecore_evas_engine_type_supported_get(Ecore_Evas_Engine_Type engine);