(Automated Tests) Use github link instead of w3 for SVG image Change-Id: I801f86b265f0101c5c906ccfcb221c477aee9484
Emit ResourceReady if we call Reload even if it was ready visual. If the visual was already ready state, and if we call Reload, the visual state still ResourceReady. So ResourceReady signal was not be emitted. Since someone might need to know the timing of resource loaded after Reload(), Make we reset status as PREPARE, and wait callback again. Change-Id: Id0ddb6523c4d9fcd58aab63a2fb07d27fdd9c5b5 Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
Fix wrong order of linear enumeration Since Fitting mode have FIT_HEIGHT = 4 and FIT_WIDTH = 5, we need to follow up the order of enum Change-Id: I63be4fdb114be28c20716fd3eaad01f061049f92 Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
Make we use valid geometry if broken image was n-patch and reloaded It is possible that we use broken image not matched with given visual, and then Reload API call it, and successed. For this case, we need to change to use valid geometry again. Change-Id: I2df7fb8b6123361b515b8f9ac9c1fafc77f665b6 Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
Call idle functions what we might be failed to add Since AddIdle could be failed at ecore side, we need to call given callback synchronously, or need to print some error logs for some cases. Change-Id: Ie0afd1fd7ddb92d43e2fdc03592144c8dae711e2 Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
Fix coverity issue (invalid iterator access) We can setup ImageType freely. If some user set invalid image type into EncodedImageBuffer, it will be crash. To avoid this situation, let we allow to set invalid image type, and it will works like regular image type. Change-Id: I84757da0540755f12eb9a12850941ba6bd93bac1 Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
Implement AsyncTaskManager for toolkit UTC Let we ignore Process() doesn't registered when we check AsyncTask completed. There was a lots of UTCs that randomly failed due to the task completed and excuted at Process() timing. Now we make async-task-manager triggered by event thread callback, not include Process(). It will make sure that UTC who need to wait async tasks completed is ensured. Change-Id: I5ec2eca6e579be4459c957db3f52c90bc219602e Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
Merge "(Vector) Support EncodedImageBuffer can use for vector image" into devel/master
Remove observer from mLoadQueue when we request to remove observer That might be happen during ResourceReady signal observing - Add - Remove If than, the added request added in mLoadQueue 2 times. and Remove request try to remove observe there (but will be failed actually.) So, the visual get LoadCompleted signal twice. It might have some logical problem in AnimatedImageVisual. So let we keep ensure that 1-observer can only emit only 1-time. Change-Id: I3eee087118cf62761709b8416fe09cf52094d156 Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
(Vector) Support EncodedImageBuffer can use for vector image Support to append extension when we use imagetype For example, if EncodedImageBuffer has VECTOR_IMAGE type, we will generate url "enbuf://3.svg" So we can use it directly by ImageView -> SvgVisual And also, let we support Remote animated vector image. (Since we can load animated vector image by raw buffer.) Change-Id: I09fd214021507cd8d29bbd3c3720d4427f5eedd7 Signed-off-by: Eunki Hong <eunkiki.hong@samsung.com>
Fix randomly failed UTC (2) Change-Id: I1a7470c05fc2bb65910a643e7da5d4868c44c3f7 Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
Allow to send ResourceReady signal unlimited Previously we miss callback when ResourceReady called continusouly. Let we use IdleCallbackManager system with return value, so we can re-install Idle callback. Change-Id: I56d73545ae7d8a122c8bead396affd4e962f7bb8 Signed-off-by: Eunki Hong <eunkiki.hong@samsung.com>
Apply fittingMode lazy when resource is not ready FittingMode may not work properly if ResourceReady is called later than Relayout. to prevent this, modify to apply FittingMode late if Resource is not ready Change-Id: Idb0c572a9aa034cea25f563ffbc256ad8eacacda
Guard NPatchData removal case during signal emit It was possible that NPatchData removed during NotifyObserver. For more safety, let we make NPatchData as shared_ptr, instead of unique_ptr. And also, let we don't touch observer list container during NotifyObservers. And also, let we remove NPatchInfo at post processing. It will keep the life of NPatchData during NotifyObserver try to remove the NPatchInfo. Change-Id: Ieca33a2231df38d23966f96593506d67333cfcd0 Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
Skip call resourceReady() for disabled visual for disabled visuals, ResourceReady is not called. Change-Id: I9864cde4bffeb1eab5c11812f6911c1772692a4a
Apply placeholder image & transition effect Add the following features to the image view 1. If necessary for image loading, the placeholder is shown until finish loading 2. provide transition effect if necessary for image replacement Change-Id: I0191cb3ed047efb9cdd4f0694e9fb6e065f045f2
Add async task manager Change-Id: Id9b14090fa21bdc249f826a68d260fb5d013887e
Fix NPatch memory leak Make NPatchInfo hold unique_ptr of NPatchData. and delete copy assign operator so we can guard untracked unique_ptr<NPatchData> memory movement. Change-Id: I7d003cc08a51b60f91d0d8fdb33ce74b5d5cd562 Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
(SVG) Support desired size Change-Id: I2b27ac032f6fa322525af76ddb9b38012b24746d
Make MASK_CANCELLED loadstate + minor log info When we remove the image during ApplyMask job, the loadstate become "CANCELLED". And, if we re-load the same image, the loadstate revived as "LOADING". Without MASK_CANCELLED state, that image will send ApplyMask one more times. That mean, alpha mask applied double times. This patch seperate the cancelled situation so we can revive the loadstate well. + Add some more informations for log Change-Id: I055bb9807d2c1afe7192daa29aca08cd47910968 Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>