summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2015-04-23 16:14:22 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2015-04-24 11:12:30 +0900
commit52c7cbddf57ff5c86bd27e3d3baa02f483d236cb (patch)
treeb7a065690680074d3b9672e2f4d0725f8680ab8a /src/modules
parent1ffe82fb7c275f7938f745ac564b368765584bfd (diff)
Evas GL common: Avoid excessive pipe flushes in image free
This should boost performance a little bit when an image is just unref'ed but not deleted (thus doesn't need a pipe flush).
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/evas/engines/gl_common/evas_gl_image.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/evas/engines/gl_common/evas_gl_image.c b/src/modules/evas/engines/gl_common/evas_gl_image.c
index 331c48e..d9e8c4b 100644
--- a/src/modules/evas/engines/gl_common/evas_gl_image.c
+++ b/src/modules/evas/engines/gl_common/evas_gl_image.c
@@ -688,9 +688,9 @@ evas_gl_common_image_cache_flush(Evas_Engine_GL_Context *gc)
688EAPI void 688EAPI void
689evas_gl_common_image_free(Evas_GL_Image *im) 689evas_gl_common_image_free(Evas_GL_Image *im)
690{ 690{
691 evas_gl_common_context_flush(im->gc);
692 im->references--; 691 im->references--;
693 if (im->references > 0) return; 692 if (im->references > 0) return;
693 evas_gl_common_context_flush(im->gc);
694 694
695 if (im->scaled.origin) 695 if (im->scaled.origin)
696 { 696 {