* evas: Add support for async callback in Quartz backend.
authorcedric <cedric@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 9 Nov 2009 13:04:41 +0000 (13:04 +0000)
committercedric <cedric@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 9 Nov 2009 13:04:41 +0000 (13:04 +0000)
TODO: Add map support.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@43582 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/modules/engines/quartz/evas_engine.c

index 22f0e69..1f46338 100644 (file)
@@ -797,6 +797,24 @@ eng_image_free(void *data, void *image)
    free(im);
 }
 
+static void
+eng_image_data_preload_request(void *data __UNUSED__, void *image, const void *target)
+{
+   Evas_Quartz_Image *im = (Evas_Quartz_Image *)image;
+
+   if (!im && !im->im) return ;
+   evas_cache_image_preload_data(&im->im->cache_entry, target);
+}
+
+static void
+eng_image_data_preload_cancel(void *data __UNUSED__, void *image, const void *target)
+{
+   Evas_Quartz_Image *im = (Evas_Quartz_Image *)image;
+
+   if (!im && !im->im) return ;
+   evas_cache_image_preload_cancel(&im->im->cache_entry, target);
+}
+
 static void *
 eng_image_size_set(void *data, void *image, int w, int h)
 {
@@ -1482,6 +1500,8 @@ module_open(Evas_Module *em)
    ORD(image_comment_get);
    ORD(image_data_get);
    ORD(image_data_put);
+   ORD(image_data_preload_request);
+   ORD(image_data_preload_cancel);
    ORD(image_dirty_region);
    ORD(image_draw);
    ORD(image_format_get);