ector: move dependency around. Evas now depend on Ector. 72/43172/1
authorCedric BAIL <cedric@osg.samsung.com>
Sun, 4 Jan 2015 15:06:37 +0000 (16:06 +0100)
committerSubhransu Mohanty <sub.mohanty@samsung.com>
Wed, 8 Jul 2015 01:59:38 +0000 (10:59 +0900)
Change-Id: I9c073f8ebdfb563091144beed96df776b3ed2db5

configure.ac
src/Makefile_Evas.am
src/lib/ector/Ector.h
src/lib/ector/cairo/Ector_Cairo.h
src/lib/ector/cairo/ector_cairo_surface.eo
src/modules/evas/engines/software_generic/ector_cairo_software_surface.eo [new file with mode: 0644]
src/modules/evas/engines/software_generic/evas_engine.c

index ca95060c3b0769f843ae3695ace8b81ba80c85b2..1e1289aacdcdb5115c280d52b380592099050c11 100644 (file)
@@ -1664,6 +1664,7 @@ EFL_INTERNAL_DEPEND_PKG([EVAS], [eo])
 EFL_INTERNAL_DEPEND_PKG([EVAS], [eet])
 EFL_INTERNAL_DEPEND_PKG([EVAS], [eina])
 EFL_INTERNAL_DEPEND_PKG([EVAS], [efl])
+EFL_INTERNAL_DEPEND_PKG([EVAS], [ector])
 
 EFL_ADD_LIBS([EVAS], [-lm])
 
@@ -2175,7 +2176,7 @@ EFL_PLATFORM_DEPEND([ECTOR], [evil])
 
 EFL_INTERNAL_DEPEND_PKG([ECTOR], [eina])
 EFL_INTERNAL_DEPEND_PKG([ECTOR], [eo])
-EFL_INTERNAL_DEPEND_PKG([ECTOR], [evas])
+EFL_INTERNAL_DEPEND_PKG([ECTOR], [efl])
 
 EFL_EVAL_PKGS([ECTOR])
 
index 150ec30423479100d363d3f9f478bc2a1fd45e0b..a857b282d93ddd1758583b0349a768862d75ed1e 100644 (file)
@@ -517,6 +517,7 @@ lib/evas/filters/blur/blur_box_rgba_neon.c
 ### Engines
 
 if EVAS_STATIC_BUILD_SOFTWARE_GENERIC
+evas_eolian_files += modules/evas/engines/software_generic/ector_cairo_software_surface.eo
 lib_evas_libevas_la_SOURCES += modules/evas/engines/software_generic/evas_engine.c modules/evas/engines/software_generic/Evas_Engine_Software_Generic.h
 lib_evas_libevas_la_LIBADD +=
 else
index a47d2f109f83cd8697d52a9e797ed3c5df578fe8..fe8d13c62e6203dbe03be3ce312baf11589faae2 100644 (file)
@@ -3,7 +3,7 @@
 
 #include <Eina.h>
 #include <Eo.h>
-#include <Evas.h>
+#include <Efl.h>
 
 #ifdef EAPI
 # undef EAPI
@@ -108,7 +108,8 @@ typedef Eo Ector_Renderer;
  * @typedef Ector_Colorspace
  * The definiton of colorspace.
  */
-typedef Evas_Colorspace Ector_Colorspace;
+  // FIXME: Enable that when we have merged Emile
+/* typedef Evas_Colorspace Ector_Colorspace; */
 
 /**
  * Raster operations at pixel level
index 13de627e2114f67b1694cd190c9e81a283453a70..a11a53f64662dbfe782235eda0b20d1a07551d61 100644 (file)
@@ -4,6 +4,7 @@
 #include <Ector.h>
 
 typedef Eo Ector_Cairo_Surface;
+typedef struct _cairo_t cairo_t;
 
 #include "cairo/ector_cairo_surface.eo.h"
 
index 9c4e97971486595dfa8a1cd0c93a8b552ae22717..8a3676770b106b9839e1f766f109cb509b2b6dac 100644 (file)
@@ -9,8 +9,15 @@ class Ector.Cairo.Surface (Ector.Generic.Surface)
             @in char* name;
          }
       }
+      context_set {
+         return: Eina_Bool;
+         params {
+           @in cairo_t *ctx;
+        }
+      }
    }
    implements {
       Ector.Generic.Surface.renderer_factory_new;
+      Eo.Base.finalize;
    }
 }
diff --git a/src/modules/evas/engines/software_generic/ector_cairo_software_surface.eo b/src/modules/evas/engines/software_generic/ector_cairo_software_surface.eo
new file mode 100644 (file)
index 0000000..9387f31
--- /dev/null
@@ -0,0 +1,21 @@
+class Ector.Cairo_Software.Surface (Ector.Cairo.Surface)
+{
+   eo_prefix: ector_cairo_software_surface;
+   legacy_prefix: null;
+   properties {
+      surface {
+         set {
+        }
+        get {
+        }
+        values {
+           void *pixels;
+           uint width;
+           uint height;
+        }
+      }
+   }
+   implements {
+      Eo.Base.finalize;
+   }
+}
index 5370dd47a16bd8c2668ec54c51874803dde23ba4..1ef7acfad941497d23631d121e52ccb4d766e483 100644 (file)
 
 #include "Evas_Engine_Software_Generic.h"
 
+#include "cairo/Ector_Cairo.h"
+
+#include "ector_cairo_software_surface.eo.h"
+
 #ifdef EVAS_GL
 //----------------------------------//
 // OSMesa...
@@ -4341,3 +4345,25 @@ EVAS_MODULE_DEFINE(EVAS_MODULE_TYPE_ENGINE, engine, software_generic);
 #ifndef EVAS_STATIC_BUILD_SOFTWARE_GENERIC
 EVAS_EINA_MODULE_DEFINE(engine, software_generic);
 #endif
+
+typedef struct _Ector_Cairo_Software_Surface_Data Ector_Cairo_Software_Surface_Data;
+struct _Ector_Cairo_Software_Surface_Data
+{
+};
+
+void
+_ector_cairo_software_surface_surface_set(Eo *obj, Ector_Cairo_Software_Surface_Data *pd, void *pixels, unsigned int width, unsigned int height)
+{
+}
+
+void
+_ector_cairo_software_surface_surface_get(Eo *obj, Ector_Cairo_Software_Surface_Data *pd, void **pixels, unsigned int *width, unsigned int *height)
+{
+}
+
+Eo *
+_ector_cairo_software_surface_eo_base_finalize(Eo *obj, Ector_Cairo_Software_Surface_Data *pd)
+{
+}
+
+#include "ector_cairo_software_surface.eo.c"