From 199b7ebd8ab6ac92030cb53b29bef37ea60182e8 Mon Sep 17 00:00:00 2001 From: cedric Date: Mon, 9 Nov 2009 13:04:41 +0000 Subject: [PATCH] * evas: Add support for async callback in Quartz backend. 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 | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/modules/engines/quartz/evas_engine.c b/src/modules/engines/quartz/evas_engine.c index 22f0e69..1f46338 100644 --- a/src/modules/engines/quartz/evas_engine.c +++ b/src/modules/engines/quartz/evas_engine.c @@ -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); -- 2.7.4