evas image: fix screen flickering issue at partial + image preloading
authorHermet Park <hermetpark@gmail.com>
Wed, 8 Aug 2018 07:01:11 +0000 (16:01 +0900)
committerShinwoo Kim <cinoo.kim@samsung.com>
Thu, 16 Aug 2018 08:19:04 +0000 (17:19 +0900)
commit050711afbf9e684fe34c9fc5aad0058006978276
tree8d62a193d4beeb8080c3c864ce2c069e134b865d
parentdcaa61e8ad7c62395bb89a966acfb13ab525f76e
evas image: fix screen flickering issue at partial + image preloading

Summary:
Prerequisite: Partial rendering ON + Image Prealoding + Triple surface buffer of GL.

Previously, evas trys to draw of an image which didn't prepare of image data yet (in case of preloading)
This time, it will draw a solid color onto the dest sufrace 1,
But luckily, preloading is finished just after, it draws proper image data onto next surface 2 and 3.

Now, triple buffer is filled with the image data but only first frame is still empty. That's a problem.

This patch skips to draw image if it doesn't prepare data yet, but once the preloading is finished,
it starts to draw images.

@fix

Reviewers: #committers

Subscribers: kimcinoo, cedric, #committers, zmike

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D6739

Change-Id: I64f4b5a6ca68feba086f05b3d8da5e5110416345
src/lib/evas/canvas/evas_image_private.h
src/lib/evas/canvas/evas_object_image.c