evas: Avoid glTexSubImage2D() COW problem
[Problem] If you try to update image while rendering that image, Copy On Write occur. So performace goes bad.
[Cause] Every images use 9-glTexSubImage2D(). glTexSubImage2D() takes more time than glTexImage2D.
[Solution]Change texture uploading policy.
1. If (image > atlas size), Do not call glTexSubImage2D.
glTexImage2D is enough. (Maybe edge 1-pixels are not clear than before.)
2. If (image < atlas_size) && (image > memcpy_size), Do 9-glTexSubImage2D.
3. If (image < atlas_size) && (image < memcpy_size),
Do memcpy from the image data and borders to new memory.
Then do 1-glTexSubImage2D. (This will be reduce probablity of COW.)
[Team] Graphics
Change-Id: I663f2d3ec3c39995d9b7fd17b1dad170ce00a506
Signed-off-by: huiyu.eun <huiyu.eun@samsung.com>