ecore_evas_convert: Implement hacky solution for Ctrl+C
authorJean-Philippe Andre <jp.andre@samsung.com>
Tue, 7 Apr 2015 07:48:49 +0000 (16:48 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Tue, 7 Apr 2015 08:59:45 +0000 (17:59 +0900)
commite9cd81683996802f2ed95fce5a1a8dedb6f2f5e5
tree62b07d08c2828b9135726dd00b4d6b024aaebcbf
parent18d5e04bb50182c5ce613fee98a0b746f8694327
ecore_evas_convert: Implement hacky solution for Ctrl+C

Problem: evas_object_image_save() can't be interrupted.
But, with ETC1/ETC2 encoding, it might be terribly long and
the user has no way to cancel encoding (except SIGKILL).

The proper solution would be to tell evas that the save
operation has been cancelled. And run that in a thread,
in a non-blocking way. I guess Efl.File.async could be
used for that, which means maybe also introduce
Efl.File.async_cancel? This will have to wait for
EFL 1.15 I'm afraid.

Note: edje_cc still can't be cancelled during ETC encoding.
src/bin/ecore_evas/ecore_evas_convert.c