summaryrefslogtreecommitdiff
path: root/legacy/evas/src/modules/engines/gl_sdl/evas_engine.c
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2010-04-12 08:23:53 +0000
committerCarsten Haitzler <raster@rasterman.com>2010-04-12 08:23:53 +0000
commitafe65d7c0a6efa96541df4babecfa24451ff0fde (patch)
tree40ce219e27b97e472fc47330c56d4467c1015ca3 /legacy/evas/src/modules/engines/gl_sdl/evas_engine.c
parent02c4cbac7decc7987f39e6666b2276799575fe0f (diff)
add ability to dump engine coontents (if engine supports it). this means
unload images it has loaded from disk, unload fonts, and more. dump dump dump! SVN revision: 47947
Diffstat (limited to '')
-rw-r--r--legacy/evas/src/modules/engines/gl_sdl/evas_engine.c18
1 files changed, 15 insertions, 3 deletions
diff --git a/legacy/evas/src/modules/engines/gl_sdl/evas_engine.c b/legacy/evas/src/modules/engines/gl_sdl/evas_engine.c
index c9e80887cc..bfbb12086e 100644
--- a/legacy/evas/src/modules/engines/gl_sdl/evas_engine.c
+++ b/legacy/evas/src/modules/engines/gl_sdl/evas_engine.c
@@ -254,9 +254,20 @@ eng_output_flush(void *data)
254static void 254static void
255eng_output_idle_flush(void *data) 255eng_output_idle_flush(void *data)
256{ 256{
257// Render_Engine *re; 257 Render_Engine *re;
258// 258
259// re = (Render_Engine *)data; 259 re = (Render_Engine *)data;
260}
261
262static void
263eng_output_dump(void *data)
264{
265 Render_Engine *re;
266
267 re = (Render_Engine *)data;
268 evas_common_image_image_all_unload();
269 evas_common_font_font_all_unload();
270 evas_gl_common_image_all_unload(re->gl_context);
260} 271}
261 272
262static void 273static void
@@ -1230,6 +1241,7 @@ module_open(Evas_Module *em)
1230 ORD(context_cutout_clear); 1241 ORD(context_cutout_clear);
1231 ORD(output_flush); 1242 ORD(output_flush);
1232 ORD(output_idle_flush); 1243 ORD(output_idle_flush);
1244 ORD(output_dump);
1233 ORD(rectangle_draw); 1245 ORD(rectangle_draw);
1234 ORD(line_draw); 1246 ORD(line_draw);
1235 ORD(polygon_point_add); 1247 ORD(polygon_point_add);