Fix Rasterize not works when SetTransform is first time It is possible that SVG load complete, and after than layout executed. If then, mDefaultSize of SVG is not zero, and rasterize task not requested. Unfortunatly, if fitting mode settup into image view, the required size of resterize might not correct. So, ImageView try to re-layout once again at it's OnResourceReady signal. This patch make we send rasterize signal at least one time, So let we ensure the ImageView resource ready signal comes at least one time. Change-Id: I3edb6a1a681898b007ef1b70470993da5c68c289 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>
Add some more logs for images - Print the size of loaded image - Print url for SVG and Lottie - Change the name of VisualUrl property (for line coverage) Change-Id: I271407112975249c06175875e9430996139f44e4 Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
Remove Rasterize task when svg load failed Since RasterizeTask's IsReady return false; that task will not be removed forever. To avoid this useless task keeping, let we remove that task when svg load failed. Change-Id: I856fb5c88eac2234253b513b5ba9f772ffd41eba Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
Keep reference when member callback excute + Make NPatchData as RefObject Some CallbackBase didn't hold the reference of itself. So it was possible to call destructor of itself during it's API was running. It might makes some unknown issues. So let we keep reference for some issue-comes known APIs : SvgVisual, NPatchData, and lottie It future, we should discard visuals rather than delate it directly. Change-Id: Ibeab31bc309869aa7c2ee65cbff8789e7bb2a721 Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
ImageVisualShaderFactory refactoring ImageVisualShaderFactory::GetShader method is too long and complex. The method uses same logic for two different purpose in a method that makes difficult to understand. And the method also has too many braces depth. This patch moves some features that to create shaderType and to retrive shaderPreFix to ImageVisualShaderFeatureBuilder. Now ImageVisualShaderFeatureBuilder manages all responsibility to define shader codes following its options. And slides some codes for readability and it make possible remove unnecessary comments. Change-Id: I09a725d4e101cb65badffe3a897572971e2c336b Signed-off-by: seungho baek <sbsh.baek@samsung.com>
(SVG) Do not cancel loading task even scene off Since we request loading task at OnInitialize side, and we don't re-request loading task even if it scene on, We should not remove mLoadingTask at SceneOff case. Change-Id: I26708af92d9dadbd902f225a9d3b26cb9d152292 Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
Fix SVG crash issue Remove previous task before create a new task Change-Id: I77ef7d92e48d1ad256f9d2b07b6423e7b572ff5f
Reset AsyncTask what we don't need anymore Change-Id: Iffdf810c296f793fd6b0bb437e995baa5a1d2009 Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
Remove svg task Change-Id: I802d0070707a36aa7997d2d100ceceeb1b5c101b
Add async task manager Change-Id: Id9b14090fa21bdc249f826a68d260fb5d013887e
(SVG) Support desired size Change-Id: I2b27ac032f6fa322525af76ddb9b38012b24746d
Support SVG thread pool Change-Id: Icbd6fc81adc7790f27e11f62eeb48d9fb1a09ce7
Make some visual use DecoratedVisualRenderer Make some visual use DecoratedVisualRenderer s.t. use some properties as default : CORNER_RADIUS CORNER_RADIUS_POLICY BORDERLINE_WIDTH BORDERLINE_COLOR BORDERLINE_OFFSET BLUR_RADIUS Now BORDERLINE_WIDTH and BLUR_RADIUS informations can be accessed in dali-core level. So we can calculate update size Change-Id: Ib9d20d202a939acf70eac12f602b05c1451e1030 Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
Trigger svg loading early Change-Id: Ie715e242d32ca68060c8503809222960f545ae60
Support asynchronous svg loading Change-Id: I46e977fa00fd9a173663b253867e198ac9c40cc8
Remove ResourceReady before rasterization in SvgVisual It will use a default size of the content file if the size is not set. Change-Id: I5dbfe79146a461d412c39ab5dcf37fabd94b683c
Block the changeness of PreMultiplied for some visuals Svg, AnimatedVector, Text, and Gradient Visuals always use PreMultiplied texture. But PreMultiplied option is Visual::Base property. So it was possible to change premultiplied option as false even It's visual type is not allow it This patch make some kind of visual that should not change the PreMultiplied alpha flags don't change it. Change-Id: I22e8416796493b34d2907f8043f57d31039be587 Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
Call ResourceReady callback even image loading failed. image-visual and svg-visual and npatch-visual call ResourceReady callback even they fail to load image. But when animated image load faild, it doesn't call ResourceReady. This patch make both image-used visuals call ResourceReady callback even if load state is failed. Change-Id: I7f0a267b7103d0d4df0753236cc90b2e467c707d Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
Updated visuals to use VisualRenderer TODO: remove cached values from visual-base-data-impl as VisualRenderer now caches event side values. TODO: Check that renderer.GetPropertyIndex isn't used in NUI with VisualProperty keys. Change-Id: I3f4417e3444d894fd455f40896f2ea07bbd8516a