evas - skip the map rendering if all points are transparent.

This commit is contained in:
ChunEon Park 2013-07-25 16:01:49 +09:00
parent c54b25e8ee
commit f4377b316c
3 changed files with 15 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2013-07-25 ChunEon Park (Hermet)
* Evas: Skip the map rendering if all points are transparent.
2013-07-24 Mike Blumenkrantz
* Ecore-Evas: fix usage of underlying X window after it has received a destroy event

1
NEWS
View File

@ -318,6 +318,7 @@ Fixes:
- Fix issue when parsing formats with quotes.
- Fix infinite loop if app use ecore evas image
- Fix a long-standing off-by-1 in the C "simd" multiplier.
- Skip the map rendering if all points are transparent.
* Ecore:
- Don't leak fd on exec.
- Fix fd handler increase issue when ecore_pipe_add/del is called repeatedly.

View File

@ -1458,6 +1458,16 @@ _draw_thread_map_draw(void *data)
do
{
//Fully Transparency. Skip this.
if (!(m->pts[0 + offset].col & 0xff000000) &&
!(m->pts[1 + offset].col & 0xff000000) &&
!(m->pts[2 + offset].col & 0xff000000) &&
!(m->pts[3 + offset].col & 0xff000000))
{
offset += 2;
continue;
}
if ((m->pts[0 + offset].x == m->pts[3 + offset].x) &&
(m->pts[1 + offset].x == m->pts[2 + offset].x) &&
(m->pts[0 + offset].y == m->pts[1 + offset].y) &&