ecore_evas: generalize option defines. 40/204740/3
authorHermet Park <hermetpark@gmail.com>
Thu, 25 Apr 2019 08:08:37 +0000 (17:08 +0900)
committerHermet Park <chuneon.park@samsung.com>
Fri, 26 Apr 2019 08:02:12 +0000 (08:02 +0000)
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

src/lib/ecore_evas/Ecore_Evas.h

index be77bf5..1a6a643 100755 (executable)
@@ -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);