Print some critical warning message as error to print at release mode 66/322166/3
authorEunki, Hong <eunkiki.hong@samsung.com>
Fri, 4 Apr 2025 05:26:30 +0000 (14:26 +0900)
committerEunki, Hong <eunkiki.hong@samsung.com>
Wed, 9 Apr 2025 00:35:41 +0000 (09:35 +0900)
Since DALI_LOG_WARNING didn't print any logs at release mode,
several critical errors didn't print any infomations.

To make ensure those are real error, let we change the
log level as 'ERROR' and allow to print at release mode binary.

Change-Id: Ie60f4fc2deae2746e644f2e0174cc2822eb7a0ec
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
27 files changed:
automated-tests/src/dali-toolkit/utc-Dali-VisualFactory.cpp
dali-scene3d/internal/loader/dli-loader-impl.cpp
dali-toolkit/devel-api/visual-factory/precompile-shader-option.cpp
dali-toolkit/internal/builder/builder-animations.cpp
dali-toolkit/internal/builder/builder-impl.cpp
dali-toolkit/internal/builder/builder-impl.h
dali-toolkit/internal/controls/control/control-visual-data.cpp
dali-toolkit/internal/controls/popup/popup-impl.cpp
dali-toolkit/internal/controls/text-controls/text-label-impl.cpp
dali-toolkit/internal/feedback/feedback-style.cpp
dali-toolkit/internal/styling/style-manager-impl.cpp
dali-toolkit/internal/text/async-text/async-text-loader-impl.cpp
dali-toolkit/internal/text/async-text/async-text-manager-impl.cpp
dali-toolkit/internal/text/controller/text-controller-impl.cpp
dali-toolkit/internal/text/rendering/text-backend-impl.cpp
dali-toolkit/internal/transition/fade-transition-impl.cpp
dali-toolkit/internal/transition/scale-transition-impl.cpp
dali-toolkit/internal/transition/slide-transition-impl.cpp
dali-toolkit/internal/transition/transition-base-impl.cpp
dali-toolkit/internal/transition/transition-impl.cpp
dali-toolkit/internal/visuals/color/color-visual-shader-factory.cpp
dali-toolkit/internal/visuals/image/image-visual-shader-factory.cpp
dali-toolkit/internal/visuals/npatch/npatch-shader-factory.cpp
dali-toolkit/internal/visuals/primitive/primitive-visual.cpp
dali-toolkit/internal/visuals/text/text-visual-shader-factory.cpp
dali-toolkit/internal/visuals/text/text-visual.cpp
dali-toolkit/internal/visuals/visual-base-impl.cpp

index 809f3b9222cdae700c864df96ff98edfa7fc8d39..5b5989fff2d986530a1a3e92682b2cff7e5a0e20 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2024 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2025 Samsung Electronics Co., Ltd.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -3003,6 +3003,7 @@ int UtcDaliVisualFactoryUsePreCompiledShader(void)
   factory.AddPrecompileShader(colorShader2);
   factory.AddPrecompileShader(colorShader3);
   factory.AddPrecompileShader(npatchShader);
+  factory.AddPrecompileShader(npatchShader); // use same shader, because check line coverage
   factory.AddPrecompileShader(npatchShader2);
   factory.AddPrecompileShader(customShader);
 
index 6cdb1c4a2dd5f8aa1743975bcf9b64161cefe784..8227adb3d067ede08fd84127712533932e2e41b6 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2024 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2025 Samsung Electronics Co., Ltd.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -709,7 +709,7 @@ void DliLoaderImpl::Impl::ParseShaders(const TreeNode* shaders, Dali::Scene3D::L
         }
         else if(value.GetType() == TreeNode::BOOLEAN)
         {
-          DALI_LOG_WARNING("\"bool\" uniforms are handled as floats in shader");
+          DALI_LOG_DEBUG_INFO("\"bool\" uniforms are handled as floats in shader");
           bool value = false;
           if(ReadBool(&keyValue.second, value))
           {
index 97d7004fc09f61454a70b2a866010f9a35486ee1..8273f34f6cc4071df5943922faf1f56d1b97c582 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2024 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2025 Samsung Electronics Co., Ltd.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -147,7 +147,7 @@ void PrecompileShaderOption::ConvertShaderMap(const Property::Map& shaderOption)
         }
         else
         {
-          DALI_LOG_WARNING("Can't find this flag[%s]\n", optionKey.c_str());
+          DALI_LOG_ERROR("Can't find this flag[%s]\n", optionKey.c_str());
           continue;
         }
       }
index cd20832e724b32419a00bf3389dfa7ee1cd8202e..97c8d2ee644e4e981c9b025567151ca94efa6833 100644 (file)
@@ -271,9 +271,9 @@ Animation CreateAnimation(const TreeNode& child, const Replacement& constant, Da
           }
           catch(...)
           {
-            DALI_LOG_WARNING("Property:'%s' type does not match value type '%s'\n",
-                             (*property).c_str(),
-                             PropertyTypes::GetName(prop.object.GetPropertyType(prop.propertyIndex)));
+            DALI_SCRIPT_WARNING("Property:'%s' type does not match value type '%s'\n",
+                                (*property).c_str(),
+                                PropertyTypes::GetName(prop.object.GetPropertyType(prop.propertyIndex)));
 
             throw;
           }
@@ -340,7 +340,7 @@ Animation CreateAnimation(const TreeNode& child, const Replacement& constant, Da
         }
         catch(...)
         {
-          DALI_LOG_WARNING("Property:'%s' type does not match value type '%s'\n", (*property).c_str(), PropertyTypes::GetName(prop.object.GetPropertyType(prop.propertyIndex)));
+          DALI_SCRIPT_WARNING("Property:'%s' type does not match value type '%s'\n", (*property).c_str(), PropertyTypes::GetName(prop.object.GetPropertyType(prop.propertyIndex)));
 
           throw;
         }
index 08c8bb9b22cc6c91680674a46ce6db9294e7d67a..67d1cd94c019de658cd2a592b542166948c22e9d 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2024 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2025 Samsung Electronics Co., Ltd.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -168,10 +168,10 @@ void Builder::LoadFromString(std::string const& data, Dali::Toolkit::Builder::UI
 
   if(!parser.Parse(data))
   {
-    DALI_LOG_WARNING("JSON Parse Error:%d:%d:'%s'\n",
-                     parser.GetErrorLineNumber(),
-                     parser.GetErrorColumn(),
-                     parser.GetErrorDescription().c_str());
+    DALI_LOG_ERROR("JSON Parse Error:%d:%d:'%s'\n",
+                   parser.GetErrorLineNumber(),
+                   parser.GetErrorColumn(),
+                   parser.GetErrorDescription().c_str());
 
     DALI_ASSERT_ALWAYS(!"Cannot parse JSON");
   }
@@ -207,10 +207,10 @@ void Builder::LoadFromString(std::string const& data, Dali::Toolkit::Builder::UI
     }
     else
     {
-      DALI_LOG_WARNING("JSON Parse Error:%d:%d:'%s'\n",
-                       mParser.GetErrorLineNumber(),
-                       mParser.GetErrorColumn(),
-                       mParser.GetErrorDescription().c_str());
+      DALI_LOG_ERROR("JSON Parse Error:%d:%d:'%s'\n",
+                     mParser.GetErrorLineNumber(),
+                     mParser.GetErrorColumn(),
+                     mParser.GetErrorDescription().c_str());
 
       DALI_ASSERT_ALWAYS(!"Cannot parse JSON");
     }
index 59ff5de956680e8b46ab80c310d760e376daaf1e..328c666f757f354b056789c39acba7430d3a194e 100644 (file)
@@ -2,7 +2,7 @@
 #define DALI_TOOLKIT_INTERNAL_BUILDER_H
 
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2025 Samsung Electronics Co., Ltd.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -37,7 +37,7 @@
 
 // Warning messages usually displayed
 #define DALI_SCRIPT_WARNING(format, ...) \
-  DALI_LOG_WARNING("Script:" format, ##__VA_ARGS__)
+  DALI_LOG_WARNING_NOFN("Script:" format, ##__VA_ARGS__)
 
 // Info messages are usually debug build
 #define DALI_SCRIPT_INFO(format, ...) \
index 55ee07b1043b0f08f358094a22b3d2d716fc5060..b2e8073564344f9bcec2dffec2ff2ce9188efae4 100644 (file)
@@ -629,7 +629,7 @@ void Control::Impl::VisualData::EnableVisual(Property::Index index, bool enable)
   }
   else
   {
-    DALI_LOG_WARNING("Control::EnableVisual(%d, %s) FAILED - NO SUCH VISUAL\n", index, enable ? "T" : "F");
+    DALI_LOG_ERROR("Control::EnableVisual(%d, %s) FAILED - NO SUCH VISUAL\n", index, enable ? "T" : "F");
   }
 }
 
index 16c9ea2378f55edd6983d9a5c2d98b0a863aa24b..93ed72b8ddab5936caa722dbd71c5be13d093255 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2024 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2025 Samsung Electronics Co., Ltd.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -775,7 +775,7 @@ void Popup::SetDisplayState(Toolkit::Popup::DisplayState displayState)
         }
         else
         {
-          DALI_LOG_WARNING("There is no focusable in popup\n");
+          DALI_LOG_DEBUG_INFO("There is no focusable in popup\n");
         }
 
         if(focusActor)
@@ -1964,7 +1964,7 @@ Actor Popup::GetNextKeyboardFocusableActor(Actor currentFocusedActor, Toolkit::C
 
       if(!nextFocusableActor)
       {
-        DALI_LOG_WARNING("Can not decide next focusable actor\n");
+        DALI_LOG_DEBUG_INFO("Can not decide next focusable actor\n");
       }
     }
   }
index 561fc3751d089f00445a1f10cbcfbc2209cebcac..1a1d32dbcd6a942f4884efd7351ff570ddd116b1 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2024 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2025 Samsung Electronics Co., Ltd.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -395,7 +395,7 @@ void TextLabel::SetProperty(BaseObject* object, Property::Index index, const Pro
       {
         if(impl.mController->IsTextElideEnabled() && impl.mController->GetEllipsisMode() == DevelText::Ellipsize::AUTO_SCROLL)
         {
-          DALI_LOG_WARNING("Tried to autoscroll while in ellipsize auto scroll mode, request ignored.\n");
+          DALI_LOG_DEBUG_INFO("Tried to autoscroll while in ellipsize auto scroll mode, request ignored.\n");
         }
         else
         {
@@ -1343,8 +1343,8 @@ void TextLabel::OnPropertySet(Property::Index index, const Property::Value& prop
     {
       if(Self().DoesCustomPropertyExist(index) && mVariationIndexMap.find(index) != mVariationIndexMap.end())
       {
-        std::string tag = mVariationIndexMap[index];
-        float value = propertyValue.Get<float>();
+        std::string tag   = mVariationIndexMap[index];
+        float       value = propertyValue.Get<float>();
 
         Property::Map map;
         mController->GetVariationsMap(map);
@@ -1480,7 +1480,7 @@ void TextLabel::OnRelayout(const Vector2& size, RelayoutContainer& container)
   {
     if(mController->IsMultiLineEnabled())
     {
-      DALI_LOG_WARNING("Attempted ellipsize auto scroll on a non SINGLE_LINE_BOX, request ignored\n");
+      DALI_LOG_DEBUG_INFO("Attempted ellipsize auto scroll on a non SINGLE_LINE_BOX, request ignored\n");
     }
     else
     {
@@ -1526,7 +1526,7 @@ void TextLabel::OnRelayout(const Vector2& size, RelayoutContainer& container)
     const int maxTextureSize = Dali::GetMaxTextureSize();
     if(layoutSize.width > maxTextureSize)
     {
-      DALI_LOG_WARNING("layoutSize(%f) > maxTextureSize(%d): To guarantee the behavior of Texture::New, layoutSize must not be bigger than maxTextureSize\n", layoutSize.width, maxTextureSize);
+      DALI_LOG_DEBUG_INFO("layoutSize(%f) > maxTextureSize(%d): To guarantee the behavior of Texture::New, layoutSize must not be bigger than maxTextureSize\n", layoutSize.width, maxTextureSize);
       layoutSize.width = maxTextureSize;
     }
 
@@ -2022,7 +2022,7 @@ void TextLabel::RequestAsyncRenderWithFixedSize(float width, float height)
 
   if(mController->GetRenderMode() == DevelTextLabel::Render::SYNC)
   {
-    DALI_LOG_WARNING("Render mode is sync, return\n");
+    DALI_LOG_DEBUG_INFO("Render mode is sync, return\n");
     return;
   }
 
@@ -2054,7 +2054,7 @@ void TextLabel::RequestAsyncRenderWithFixedWidth(float width, float heightConstr
 
   if(mController->GetRenderMode() == DevelTextLabel::Render::SYNC)
   {
-    DALI_LOG_WARNING("Render mode is sync, return\n");
+    DALI_LOG_DEBUG_INFO("Render mode is sync, return\n");
     return;
   }
 
@@ -2086,7 +2086,7 @@ void TextLabel::RequestAsyncRenderWithConstraint(float widthConstraint, float he
 
   if(mController->GetRenderMode() == DevelTextLabel::Render::SYNC)
   {
-    DALI_LOG_WARNING("Render mode is sync, return\n");
+    DALI_LOG_DEBUG_INFO("Render mode is sync, return\n");
     return;
   }
 
@@ -2126,7 +2126,7 @@ Dali::Property::Index TextLabel::RegisterFontVariationProperty(std::string tag)
   mController->GetVariationsMap(variationsMap);
 
   float variationValue = 0.f;
-  auto tagPtr = variationsMap.Find(tag);
+  auto  tagPtr         = variationsMap.Find(tag);
 
   if(tagPtr)
   {
@@ -2152,11 +2152,11 @@ void TextLabel::OnVariationPropertyNotify(PropertyNotification& source)
   Property::Map map;
   mController->GetVariationsMap(map);
 
-  for(auto &[index, tag] : mVariationIndexMap)
+  for(auto[index, tag] : mVariationIndexMap)
   {
     if(Self().DoesCustomPropertyExist(index))
     {
-      float value = Self().GetCurrentProperty(index).Get<float>();
+      float value     = Self().GetCurrentProperty(index).Get<float>();
       map[tag.data()] = std::round(value);
     }
   }
index a5ed3b10d740ac84ccfa59882dca11cda73e6522..fd191d238354d7cb71d242c0d94d9a28004e1026 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2025 Samsung Electronics Co., Ltd.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -243,10 +243,10 @@ void FeedbackStyle::LoadFromString(const std::string& data)
 
   if(!parser.Parse(data))
   {
-    DALI_LOG_WARNING("JSON Parse Error:'%s'\n", parser.GetErrorDescription().c_str());
-    DALI_LOG_WARNING("JSON Parse Line :'%d (%d)'\n",
-                     parser.GetErrorLineNumber(),
-                     parser.GetErrorColumn());
+    DALI_LOG_ERROR("JSON Parse Error:'%s'\n", parser.GetErrorDescription().c_str());
+    DALI_LOG_ERROR("JSON Parse Line :'%d (%d)'\n",
+                   parser.GetErrorLineNumber(),
+                   parser.GetErrorColumn());
   }
   else
   {
index a0ce4a3b6af42227276fce2398a74aa71177765c..5b7949f3e20a73659638cc196e1fcfbdf9de74fe 100644 (file)
@@ -383,14 +383,14 @@ bool StyleManager::LoadJSON(Toolkit::Builder builder, const std::string& jsonFil
     }
     catch(...)
     {
-      DALI_LOG_WARNING("Error during parse JSON file '%s'\n", jsonFilePath.c_str());
+      DALI_LOG_ERROR("Error during parse JSON file '%s'\n", jsonFilePath.c_str());
       return false;
     }
     return true;
   }
   else
   {
-    DALI_LOG_WARNING("Error loading file '%s'\n", jsonFilePath.c_str());
+    DALI_LOG_ERROR("Error loading file '%s'\n", jsonFilePath.c_str());
     return false;
   }
 }
index 460e3f4fb4e4f88af81e009cefd90fd804c05639..709ee10d7e2228a8e65ed702dbf1cb0a9ad39577 100644 (file)
 #include <dali-toolkit/internal/text/async-text/async-text-loader-impl.h>
 
 // EXTERNAL INCLUDES
-#include <cmath>
 #include <dali/integration-api/debug.h>
 #include <dali/integration-api/pixel-data-integ.h>
 #include <dali/integration-api/trace.h>
+#include <cmath>
 
 // INTERNAL INCLUDES
 #include <dali-toolkit/internal/text/bidirectional-support.h>
@@ -42,7 +42,7 @@ namespace
 constexpr float MAX_FLOAT = std::numeric_limits<float>::max();
 
 const float VERTICAL_ALIGNMENT_TABLE[Text::VerticalAlignment::BOTTOM + 1] =
-{
+  {
     0.0f, // VerticalAlignment::TOP
     0.5f, // VerticalAlignment::CENTER
     1.0f  // VerticalAlignment::BOTTOM
@@ -111,7 +111,7 @@ void AsyncTextLoader::ClearModule()
 
 void AsyncTextLoader::SetCustomFontDirectories(const TextAbstraction::FontPathList& customFontDirectories)
 {
-  for(auto &path: customFontDirectories)
+  for(auto& path : customFontDirectories)
   {
     mModule.GetFontClient().AddCustomFontDirectory(path);
   }
@@ -137,7 +137,7 @@ void AsyncTextLoader::Initialize()
 
   mNumberOfCharacters = 0u;
   mIsTextDirectionRTL = false;
-  mIsTextMirrored = false;
+  mIsTextMirrored     = false;
 
   // Set the text properties to default
   mTextModel->mVisualModel->SetUnderlineEnabled(false);
@@ -221,13 +221,12 @@ void AsyncTextLoader::Update(AsyncTextParameters& parameters)
   Vector<BidirectionalParagraphInfoRun>& bidirectionalInfo   = mTextModel->mLogicalModel->mBidirectionalParagraphInfo; // The bidirectional info per paragraph.
   Vector<ColorRun>&                      colorRuns           = mTextModel->mLogicalModel->mColorRuns;                  // colors of the text.
 
-
   // Set the default font's description with the given text parameters.
   TextAbstraction::FontDescription defaultFontDescription;
   defaultFontDescription.family = parameters.fontFamily;
   defaultFontDescription.weight = parameters.fontWeight;
-  defaultFontDescription.width = parameters.fontWidth;
-  defaultFontDescription.slant = parameters.fontSlant;
+  defaultFontDescription.width  = parameters.fontWidth;
+  defaultFontDescription.slant  = parameters.fontSlant;
 
   mTextModel->mHorizontalAlignment   = parameters.horizontalAlignment;
   mTextModel->mVerticalAlignment     = parameters.verticalAlignment;
@@ -289,7 +288,6 @@ void AsyncTextLoader::Update(AsyncTextParameters& parameters)
   mTextModel->mRemoveFrontInset = parameters.removeFrontInset;
   mTextModel->mRemoveBackInset  = parameters.removeBackInset;
 
-
   ////////////////////////////////////////////////////////////////////////////////
   // Process the markup string if the mark-up processor is enabled.
   ////////////////////////////////////////////////////////////////////////////////
@@ -325,7 +323,6 @@ void AsyncTextLoader::Update(AsyncTextParameters& parameters)
     utf8 = reinterpret_cast<const uint8_t*>(parameters.text.c_str());
   }
 
-
   ////////////////////////////////////////////////////////////////////////////////
   // Convert from utf8 to utf32
   ////////////////////////////////////////////////////////////////////////////////
@@ -337,7 +334,6 @@ void AsyncTextLoader::Update(AsyncTextParameters& parameters)
   numberOfCharacters = Utf8ToUtf32(utf8, textSize, utf32Characters.Begin());
   utf32Characters.Resize(numberOfCharacters);
 
-
   ////////////////////////////////////////////////////////////////////////////////
   // Retrieve the Line and Word Break Info.
   ////////////////////////////////////////////////////////////////////////////////
@@ -391,19 +387,16 @@ void AsyncTextLoader::Update(AsyncTextParameters& parameters)
   // Create the paragraph info.
   mTextModel->mLogicalModel->CreateParagraphInfo(0u, numberOfCharacters);
 
-
   ////////////////////////////////////////////////////////////////////////////////
   // Retrieve the script runs.
   ////////////////////////////////////////////////////////////////////////////////
 
   mModule.GetMultilanguageSupport().SetScripts(utf32Characters, 0u, numberOfCharacters, scripts);
 
-
   ////////////////////////////////////////////////////////////////////////////////
   // Validate Fonts.
   ////////////////////////////////////////////////////////////////////////////////
 
-
   float scale = parameters.fontSizeScale;
 
   TextAbstraction::PointSize26Dot6 defaultPointSize = TextAbstraction::FontClient::DEFAULT_POINT_SIZE * scale;
@@ -413,7 +406,7 @@ void AsyncTextLoader::Update(AsyncTextParameters& parameters)
 
   defaultPointSize = parameters.fontSize * scale * numberOfPointsPerOneUnitOfPointSize;
 
-  Property::Map *variationsMapPtr = nullptr;
+  Property::MapvariationsMapPtr = nullptr;
   if(!mTextModel->mLogicalModel->mVariationsMap.Empty())
   {
     variationsMapPtr = &mTextModel->mLogicalModel->mVariationsMap;
@@ -433,7 +426,6 @@ void AsyncTextLoader::Update(AsyncTextParameters& parameters)
                                                   validFonts,
                                                   variationsMapPtr);
 
-
   ////////////////////////////////////////////////////////////////////////////////
   // Retrieve the Bidirectional info.
   ////////////////////////////////////////////////////////////////////////////////
@@ -441,7 +433,7 @@ void AsyncTextLoader::Update(AsyncTextParameters& parameters)
   // Update the layout direction policy to text model.
   mTextModel->mMatchLayoutDirection = parameters.layoutDirectionPolicy;
 
-  mIsTextMirrored = false;
+  mIsTextMirrored                 = false;
   const Length numberOfParagraphs = mTextModel->mLogicalModel->mParagraphInfo.Count();
 
   bidirectionalInfo.Reserve(numberOfParagraphs);
@@ -486,7 +478,6 @@ void AsyncTextLoader::Update(AsyncTextParameters& parameters)
     mTextModel->mLogicalModel->mCharacterDirections.Clear();
   }
 
-
   ////////////////////////////////////////////////////////////////////////////////
   // Retrieve the glyphs. Text shaping
   ////////////////////////////////////////////////////////////////////////////////
@@ -521,7 +512,6 @@ void AsyncTextLoader::Update(AsyncTextParameters& parameters)
   mTextModel->mVisualModel->CreateGlyphsPerCharacterTable(0u, 0u, numberOfCharacters);
   mTextModel->mVisualModel->CreateCharacterToGlyphTable(0u, 0u, numberOfCharacters);
 
-
   ////////////////////////////////////////////////////////////////////////////////
   // Retrieve the glyph's metrics.
   ////////////////////////////////////////////////////////////////////////////////
@@ -567,7 +557,6 @@ void AsyncTextLoader::Update(AsyncTextParameters& parameters)
                            mTextModel->mVisualModel->mBackgroundColors,
                            mTextModel->mVisualModel->mBackgroundColorIndices);
 
-
   ////////////////////////////////////////////////////////////////////////////////
   // Update visual model for markup style.
   ////////////////////////////////////////////////////////////////////////////////
@@ -580,7 +569,6 @@ void AsyncTextLoader::Update(AsyncTextParameters& parameters)
     const Vector<GlyphIndex>&                   charactersToGlyph             = mTextModel->mVisualModel->mCharactersToGlyph;
     const Vector<Length>&                       glyphsPerCharacter            = mTextModel->mVisualModel->mGlyphsPerCharacter;
 
-
     ////////////////////////////////////////////////////////////////////////////////
     // Markup underline
     ////////////////////////////////////////////////////////////////////////////////
@@ -601,7 +589,7 @@ void AsyncTextLoader::Update(AsyncTextParameters& parameters)
       // Create one run for all glyphs of all run's characters that has same properties
       // This enhance performance and reduce the needed memory to store glyphs-runs
       UnderlinedGlyphRun underlineGlyphRun;
-      underlineGlyphRun.properties = it->properties;
+      underlineGlyphRun.properties              = it->properties;
       underlineGlyphRun.glyphRun.glyphIndex     = charactersToGlyph[characterIndex];
       underlineGlyphRun.glyphRun.numberOfGlyphs = glyphsPerCharacter[characterIndex];
 
@@ -616,7 +604,6 @@ void AsyncTextLoader::Update(AsyncTextParameters& parameters)
     // Reset flag. The updates have been applied from logical to visual.
     mTextModel->mLogicalModel->mUnderlineRunsUpdated = false;
 
-
     ////////////////////////////////////////////////////////////////////////////////
     // Markup strikethrough
     ////////////////////////////////////////////////////////////////////////////////
@@ -650,7 +637,6 @@ void AsyncTextLoader::Update(AsyncTextParameters& parameters)
     // Reset flag. The updates have been applied from logical to visual.
     mTextModel->mLogicalModel->mStrikethroughRunsUpdated = false;
 
-
     ////////////////////////////////////////////////////////////////////////////////
     // Markup character spacing
     ////////////////////////////////////////////////////////////////////////////////
@@ -762,7 +748,7 @@ Size AsyncTextLoader::Layout(AsyncTextParameters& parameters, bool& updated)
   layoutParameters.interGlyphExtraAdvance = 0.f;
 
   // Whether the last character is a new paragraph character.
-  const Character* const textBuffer = mTextModel->mLogicalModel->mText.Begin();
+  const Character* const textBuffer   = mTextModel->mLogicalModel->mText.Begin();
   layoutParameters.isLastNewParagraph = TextAbstraction::IsNewParagraph(*(textBuffer + (mTextModel->mLogicalModel->mText.Count() - 1u)));
 
   // Update the ellipsis
@@ -770,7 +756,7 @@ Size AsyncTextLoader::Layout(AsyncTextParameters& parameters, bool& updated)
   mTextModel->mElideEnabled = ellipsisEnabled;
   mTextModel->mVisualModel->SetTextElideEnabled(ellipsisEnabled);
 
-  auto ellipsisPosition = parameters.ellipsisPosition;
+  auto ellipsisPosition         = parameters.ellipsisPosition;
   mTextModel->mEllipsisPosition = ellipsisPosition;
   mTextModel->mVisualModel->SetEllipsisPosition(ellipsisPosition);
 
@@ -798,7 +784,6 @@ Size AsyncTextLoader::Layout(AsyncTextParameters& parameters, bool& updated)
   // Store the actual size of the text after it has been laid-out.
   mTextModel->mVisualModel->SetLayoutSize(newLayoutSize);
 
-
   ////////////////////////////////////////////////////////////////////////////////
   // Align the text.
   ////////////////////////////////////////////////////////////////////////////////
@@ -958,7 +943,7 @@ AsyncTextRenderInfo AsyncTextLoader::Render(AsyncTextParameters& parameters)
     // Make transparent buffer.
     // If the cutout is enabled, a separate texture is not used for the text.
     Devel::PixelBuffer buffer = mTypesetter->CreateFullBackgroundBuffer(1, 1, Color::TRANSPARENT);
-    renderInfo.textPixelData = Devel::PixelBuffer::Convert(buffer);
+    renderInfo.textPixelData  = Devel::PixelBuffer::Convert(buffer);
 
     // Set the flag of cutout.
     renderInfo.isCutout = cutoutEnabled && (cutoutData != nullptr);
@@ -973,7 +958,7 @@ AsyncTextRenderInfo AsyncTextLoader::Render(AsyncTextParameters& parameters)
   {
     if(renderInfo.isCutout)
     {
-      float cutoutAlpha = mTextModel->GetDefaultColor().a;
+      float cutoutAlpha         = mTextModel->GetDefaultColor().a;
       renderInfo.stylePixelData = mTypesetter->RenderWithCutout(layoutSize, textDirection, cutoutData, Text::Typesetter::RENDER_NO_TEXT, false, Pixel::RGBA8888, cutoutAlpha);
     }
     else
@@ -1036,8 +1021,8 @@ AsyncTextRenderInfo AsyncTextLoader::RenderText(AsyncTextParameters& parameters)
     // In case of CONSTRAINT, the natural size has already been calculated.
     // So we can skip Initialize and Update at this stage.
     // Only the layout is newly calculated to obtain the height.
-    bool layoutOnly = (parameters.requestType == Async::RENDER_CONSTRAINT);
-    float height = ComputeHeightForWidth(parameters, parameters.textWidth, layoutOnly);
+    bool  layoutOnly = (parameters.requestType == Async::RENDER_CONSTRAINT);
+    float height     = ComputeHeightForWidth(parameters, parameters.textWidth, layoutOnly);
 
     // textHeight is heightConstraint.
     if(parameters.textHeight < height)
@@ -1086,11 +1071,11 @@ float AsyncTextLoader::ComputeHeightForWidth(AsyncTextParameters& parameters, fl
   }
 
   bool layoutUpdated = false;
-  Size layoutSize = Layout(parameters, layoutUpdated);
+  Size layoutSize    = Layout(parameters, layoutUpdated);
 
   // Restore actual size.
-  parameters.textWidth  = actualWidth;
-  parameters.textHeight = actualHeight;
+  parameters.textWidth                   = actualWidth;
+  parameters.textHeight                  = actualHeight;
   mTextModel->mVisualModel->mControlSize = Size(parameters.textWidth, parameters.textHeight);
 
   return layoutSize.height;
@@ -1119,8 +1104,8 @@ Size AsyncTextLoader::ComputeNaturalSize(AsyncTextParameters& parameters)
   Size naturalSize = Layout(parameters, layoutUpdated);
 
   // Restore actual size.
-  parameters.textWidth  = actualWidth;
-  parameters.textHeight = actualHeight;
+  parameters.textWidth                   = actualWidth;
+  parameters.textHeight                  = actualHeight;
   mTextModel->mVisualModel->mControlSize = Size(parameters.textWidth, parameters.textHeight);
 
   return naturalSize;
@@ -1128,7 +1113,7 @@ Size AsyncTextLoader::ComputeNaturalSize(AsyncTextParameters& parameters)
 
 AsyncTextRenderInfo AsyncTextLoader::GetHeightForWidth(AsyncTextParameters& parameters)
 {
-  float height = ComputeHeightForWidth(parameters, parameters.textWidth, false);
+  float               height = ComputeHeightForWidth(parameters, parameters.textWidth, false);
   AsyncTextRenderInfo renderInfo;
   renderInfo.renderedSize.width  = parameters.textWidth;
   renderInfo.renderedSize.height = height;
@@ -1140,7 +1125,7 @@ AsyncTextRenderInfo AsyncTextLoader::GetHeightForWidth(AsyncTextParameters& para
 
 AsyncTextRenderInfo AsyncTextLoader::GetNaturalSize(AsyncTextParameters& parameters)
 {
-  Size textNaturalSize = ComputeNaturalSize(parameters);
+  Size                textNaturalSize = ComputeNaturalSize(parameters);
   AsyncTextRenderInfo renderInfo;
   renderInfo.renderedSize = textNaturalSize;
   renderInfo.requestType  = Async::COMPUTE_NATURAL_SIZE;
@@ -1163,8 +1148,8 @@ AsyncTextRenderInfo AsyncTextLoader::RenderAutoScroll(AsyncTextParameters& param
   if(parameters.requestType == Async::RENDER_FIXED_WIDTH || parameters.requestType == Async::RENDER_CONSTRAINT)
   {
     // The real height calculated during layout should be set.
-    parameters.textHeight = textNaturalSize.height - (parameters.padding.top + parameters.padding.bottom);
-    controlSize.height = parameters.textHeight;
+    parameters.textHeight                  = textNaturalSize.height - (parameters.padding.top + parameters.padding.bottom);
+    controlSize.height                     = parameters.textHeight;
     mTextModel->mVisualModel->mControlSize = Size(parameters.textWidth, parameters.textHeight);
   }
 
@@ -1193,8 +1178,8 @@ AsyncTextRenderInfo AsyncTextLoader::RenderAutoScroll(AsyncTextParameters& param
       float actualWidth  = parameters.textWidth;
       float actualHeight = parameters.textHeight;
 
-      parameters.textWidth  = verifiedSize.width;
-      parameters.textHeight = textNaturalSize.height;
+      parameters.textWidth                      = verifiedSize.width;
+      parameters.textHeight                     = textNaturalSize.height;
       parameters.isAutoScrollMaxTextureExceeded = true;
 
       bool layoutUpdated = false;
@@ -1231,7 +1216,7 @@ bool AsyncTextLoader::CheckForTextFit(AsyncTextParameters& parameters, float poi
   Initialize();
   Update(parameters);
   bool layoutUpdated = false;
-  Size layoutSize = Layout(parameters, layoutUpdated);
+  Size layoutSize    = Layout(parameters, layoutUpdated);
 
   if(!layoutUpdated || layoutSize.width > allowedSize.width || layoutSize.height > allowedSize.height)
   {
@@ -1257,15 +1242,15 @@ AsyncTextRenderInfo AsyncTextLoader::RenderTextFit(AsyncTextParameters& paramete
     // In case of CONSTRAINT, the natural size has already been calculated.
     // So we can skip Initialize and Update at this stage.
     // Only the layout is newly calculated to obtain the height.
-    bool layoutOnly = (parameters.requestType == Async::RENDER_CONSTRAINT);
-    float height = ComputeHeightForWidth(parameters, parameters.textWidth, layoutOnly);
+    bool  layoutOnly = (parameters.requestType == Async::RENDER_CONSTRAINT);
+    float height     = ComputeHeightForWidth(parameters, parameters.textWidth, layoutOnly);
 
     // textHeight is heightConstraint
     if(parameters.textHeight > height)
     {
       parameters.textHeight = height;
     }
-    DALI_LOG_WARNING("TextFit requires a fixed size. Render with natural size : %f, %f\n", parameters.textWidth, parameters.textHeight);
+    DALI_LOG_DEBUG_INFO("TextFit requires a fixed size. Render with natural size : %f, %f\n", parameters.textWidth, parameters.textHeight);
   }
 
   if(parameters.isTextFitArrayEnabled)
@@ -1277,8 +1262,8 @@ AsyncTextRenderInfo AsyncTextLoader::RenderTextFit(AsyncTextParameters& paramete
     }
 #endif
 
-    std::vector<DevelTextLabel::FitOption> fitOptions = parameters.textFitArray;
-    int numberOfFitOptions = static_cast<int>(fitOptions.size());
+    std::vector<DevelTextLabel::FitOption> fitOptions         = parameters.textFitArray;
+    int                                    numberOfFitOptions = static_cast<int>(fitOptions.size());
     if(numberOfFitOptions == 0)
     {
       DALI_LOG_ERROR("fitOptions is empty, render with default value, point size:%f, min line size:%f\n", parameters.fontSize, parameters.minLineSize);
@@ -1312,35 +1297,35 @@ AsyncTextRenderInfo AsyncTextLoader::RenderTextFit(AsyncTextParameters& paramete
 
     // Set the first FitOption(Minimum PointSize) to the best value.
     // If the search does not find an optimal value, the minimum PointSize will be used to text fit.
-    DevelTextLabel::FitOption firstOption = fitOptions.front();
-    bool  bestSizeUpdatedLatest = false;
-    float bestPointSize         = firstOption.GetPointSize();
-    float bestMinLineSize       = firstOption.GetMinLineSize();
+    DevelTextLabel::FitOption firstOption           = fitOptions.front();
+    bool                      bestSizeUpdatedLatest = false;
+    float                     bestPointSize         = firstOption.GetPointSize();
+    float                     bestMinLineSize       = firstOption.GetMinLineSize();
 
     if(binarySearch)
     {
-      int left = 0u;
+      int left  = 0u;
       int right = numberOfFitOptions - 1;
 
-      while (left <= right)
+      while(left <= right)
       {
-        int mid = left + (right - left) / 2;
-        DevelTextLabel::FitOption option = fitOptions[mid];
-        float testPointSize   = option.GetPointSize();
-        float testMinLineSize = option.GetMinLineSize();
-        parameters.minLineSize = testMinLineSize;
+        int                       mid             = left + (right - left) / 2;
+        DevelTextLabel::FitOption option          = fitOptions[mid];
+        float                     testPointSize   = option.GetPointSize();
+        float                     testMinLineSize = option.GetMinLineSize();
+        parameters.minLineSize                    = testMinLineSize;
 
         if(CheckForTextFit(parameters, testPointSize, allowedSize))
         {
           bestSizeUpdatedLatest = true;
-          bestPointSize   = testPointSize;
-          bestMinLineSize = testMinLineSize;
-          left = mid + 1;
+          bestPointSize         = testPointSize;
+          bestMinLineSize       = testMinLineSize;
+          left                  = mid + 1;
         }
         else
         {
           bestSizeUpdatedLatest = false;
-          right = mid - 1;
+          right                 = mid - 1;
         }
       }
     }
@@ -1349,16 +1334,16 @@ AsyncTextRenderInfo AsyncTextLoader::RenderTextFit(AsyncTextParameters& paramete
       // If binary search is not possible, search sequentially starting from the largest PointSize.
       for(auto it = fitOptions.rbegin(); it != fitOptions.rend(); ++it)
       {
-        DevelTextLabel::FitOption option = *it;
-        float testPointSize   = option.GetPointSize();
-        float testMinLineSize = option.GetMinLineSize();
-        parameters.minLineSize = testMinLineSize;
+        DevelTextLabel::FitOption option          = *it;
+        float                     testPointSize   = option.GetPointSize();
+        float                     testMinLineSize = option.GetMinLineSize();
+        parameters.minLineSize                    = testMinLineSize;
 
         if(CheckForTextFit(parameters, testPointSize, allowedSize))
         {
           bestSizeUpdatedLatest = true;
-          bestPointSize   = testPointSize;
-          bestMinLineSize = testMinLineSize;
+          bestPointSize         = testPointSize;
+          bestMinLineSize       = testMinLineSize;
           break;
         }
         else
@@ -1387,9 +1372,9 @@ AsyncTextRenderInfo AsyncTextLoader::RenderTextFit(AsyncTextParameters& paramete
     }
 #endif
 
-    float minPointSize           = parameters.textFitMinSize;
-    float maxPointSize           = parameters.textFitMaxSize;
-    float pointInterval          = parameters.textFitStepSize;
+    float minPointSize  = parameters.textFitMinSize;
+    float maxPointSize  = parameters.textFitMaxSize;
+    float pointInterval = parameters.textFitStepSize;
 
     mFitActualEllipsis  = parameters.ellipsis;
     parameters.ellipsis = false;
index 3198da952794a33526457940951fb66beb3d810d..cfd94472ceda47fc3586cbd36f36be46dc2665c8 100644 (file)
@@ -46,7 +46,6 @@ namespace Text
 {
 namespace Internal
 {
-
 AsyncTextManager::AsyncTextManager()
 : mLocale(),
   mTaskId(0u),
@@ -297,7 +296,7 @@ void AsyncTextManager::LoadComplete(Toolkit::Internal::TextLoadingTaskPtr task)
   }
   else
   {
-    DALI_LOG_WARNING("LoadComplete -> Running task already removed! : %u\n", taskId);
+    DALI_LOG_DEBUG_INFO("LoadComplete -> Running task already removed! : %u\n", taskId);
   }
 
   for(auto iter = mRunningLoaders.begin(); iter != mRunningLoaders.end(); ++iter)
index 5d1e77770dbbe851e41b69f134bbdac76507161f..756fda462f57eb1ad1aa3d1079365addbe4b5de1 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2024 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2025 Samsung Electronics Co., Ltd.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -1946,7 +1946,7 @@ void Controller::Impl::SetAutoScrollEnabled(bool enable, bool requestRelayout)
   }
   else
   {
-    DALI_LOG_WARNING("Attempted AutoScrolling on a non SINGLE_LINE_BOX, request ignored\n");
+    DALI_LOG_DEBUG_INFO("Attempted AutoScrolling on a non SINGLE_LINE_BOX, request ignored\n");
     mIsAutoScrollEnabled = false;
   }
 }
index 0e0d3a8684a97eec0a229a5e87deba44dc7dadcd..07a6b87d0871339c0c2954ad444290c23efb5a2e 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2025 Samsung Electronics Co., Ltd.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -102,7 +102,7 @@ RendererPtr Backend::NewRenderer(unsigned int renderingType)
 
     default:
     {
-      DALI_LOG_WARNING("Unknown renderer type: %d\n", renderingType);
+      DALI_LOG_ERROR("Unknown renderer type: %d\n", renderingType);
       break;
     }
   }
index 17c0b2c533a6a76bf1999b5a89824a622dac260b..834aa970d6fc08267717233a381b007d4274cc77 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2025 Samsung Electronics Co., Ltd.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -31,20 +31,19 @@ namespace Toolkit
 {
 namespace Internal
 {
-
 FadeTransitionPtr FadeTransition::New(Dali::Toolkit::Control control, float opacity, TimePeriod timePeriod)
 {
   float delaySeconds = timePeriod.delaySeconds;
   if(delaySeconds < 0.0f)
   {
-    DALI_LOG_WARNING("delay should be greater than 0.0f.\n");
+    DALI_LOG_DEBUG_INFO("delay should be greater than 0.0f.\n");
     delaySeconds = 0.0f;
   }
 
   float durationSeconds = timePeriod.durationSeconds;
   if(durationSeconds < 0.0f)
   {
-    DALI_LOG_WARNING("duration should be greater than 0.0f.\n");
+    DALI_LOG_DEBUG_INFO("duration should be greater than 0.0f.\n");
     durationSeconds = 0.0f;
   }
 
index a374002429e7e2f6e55b69df92af3f17fd21c2c3..382713180005ff89bfa8a6568385fc034c80242c 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2025 Samsung Electronics Co., Ltd.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -31,20 +31,19 @@ namespace Toolkit
 {
 namespace Internal
 {
-
 ScaleTransitionPtr ScaleTransition::New(Dali::Toolkit::Control control, const Vector2& scaleFactor, TimePeriod timePeriod)
 {
   float delaySeconds = timePeriod.delaySeconds;
   if(delaySeconds < 0.0f)
   {
-    DALI_LOG_WARNING("delay should be greater than 0.0f.\n");
+    DALI_LOG_DEBUG_INFO("delay should be greater than 0.0f.\n");
     delaySeconds = 0.0f;
   }
 
   float durationSeconds = timePeriod.durationSeconds;
   if(durationSeconds < 0.0f)
   {
-    DALI_LOG_WARNING("duration should be greater than 0.0f.\n");
+    DALI_LOG_DEBUG_INFO("duration should be greater than 0.0f.\n");
     durationSeconds = 0.0f;
   }
 
index 71bcdc3473345c752bd09395ec86d3c938331049..756eb6de2963233e65dfc6eb1b8bc13eb6d30bd9 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2022 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2025 Samsung Electronics Co., Ltd.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -39,14 +39,14 @@ SlideTransitionPtr SlideTransition::New(Dali::Toolkit::Control control, const Ve
   float delaySeconds = timePeriod.delaySeconds;
   if(delaySeconds < 0.0f)
   {
-    DALI_LOG_WARNING("delay should be greater than 0.0f.\n");
+    DALI_LOG_DEBUG_INFO("delay should be greater than 0.0f.\n");
     delaySeconds = 0.0f;
   }
 
   float durationSeconds = timePeriod.durationSeconds;
   if(durationSeconds < 0.0f)
   {
-    DALI_LOG_WARNING("duration should be greater than 0.0f.\n");
+    DALI_LOG_DEBUG_INFO("duration should be greater than 0.0f.\n");
     durationSeconds = 0.0f;
   }
 
index 1c3ca66e76ac29d4aed4ce7b60c90a17d9cf28da..24e616cc7a13b3347be589211e511d3b6f3a86bb 100755 (executable)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2022 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2025 Samsung Electronics Co., Ltd.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -86,7 +86,7 @@ void TransitionBase::SetTimePeriod(const Dali::TimePeriod& timePeriod)
 {
   if(timePeriod.durationSeconds < 0.0f)
   {
-    DALI_LOG_WARNING("Duration should be greater than 0.0f.\n");
+    DALI_LOG_DEBUG_INFO("Duration should be greater than 0.0f.\n");
   }
   else
   {
@@ -95,7 +95,7 @@ void TransitionBase::SetTimePeriod(const Dali::TimePeriod& timePeriod)
 
   if(timePeriod.delaySeconds < 0.0f)
   {
-    DALI_LOG_WARNING("Delay should be greater than 0.0f.\n");
+    DALI_LOG_DEBUG_INFO("Delay should be greater than 0.0f.\n");
     return;
   }
   else
index 332c9e095df963b6a3aae9388b80b3a60c3deac0..05c374b07d2cf73d518c9149df37dbeedd6888e5 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2022 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2025 Samsung Electronics Co., Ltd.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -40,14 +40,14 @@ TransitionPtr Transition::New(Dali::Toolkit::Control source, Dali::Toolkit::Cont
   float delaySeconds = timePeriod.delaySeconds;
   if(delaySeconds < 0.0f)
   {
-    DALI_LOG_WARNING("delay should be greater than 0.0f.\n");
+    DALI_LOG_DEBUG_INFO("delay should be greater than 0.0f.\n");
     delaySeconds = 0.0f;
   }
 
   float durationSeconds = timePeriod.durationSeconds;
   if(durationSeconds < 0.0f)
   {
-    DALI_LOG_WARNING("duration should be greater than 0.0f.\n");
+    DALI_LOG_DEBUG_INFO("duration should be greater than 0.0f.\n");
     durationSeconds = 0.0f;
   }
 
index f6bc67b9fde4b8e29e1e9217417a41e2f9552b01..394aa21fcb5ce3657381dbe630955dbb073aeace 100644 (file)
@@ -337,7 +337,7 @@ void ColorVisualShaderFactory::CreatePrecompileShader(ColorVisualShaderFeature::
       }
       default:
       {
-        DALI_LOG_WARNING("Unknown option[%d]. maybe this type can't use this flag\n", static_cast<int>(option[i]));
+        DALI_LOG_ERROR("Unknown option[%d]. maybe this type can't use this flag\n", static_cast<int>(option[i]));
         break;
       }
     }
@@ -350,7 +350,7 @@ bool ColorVisualShaderFactory::SavePrecompileShader(VisualFactoryCache::ShaderTy
   {
     if(ShaderTypePredefines[i] == shader)
     {
-      DALI_LOG_WARNING("This shader already added list(%s).\n", Scripting::GetLinearEnumerationName<VisualFactoryCache::ShaderType>(ShaderTypePredefines[i], VISUAL_SHADER_TYPE_TABLE, VISUAL_SHADER_TYPE_TABLE_COUNT));
+      DALI_LOG_DEBUG_INFO("This shader already added list(%s).\n", Scripting::GetLinearEnumerationName<VisualFactoryCache::ShaderType>(ShaderTypePredefines[i], VISUAL_SHADER_TYPE_TABLE, VISUAL_SHADER_TYPE_TABLE_COUNT));
       return false;
     }
   }
@@ -359,7 +359,7 @@ bool ColorVisualShaderFactory::SavePrecompileShader(VisualFactoryCache::ShaderTy
   {
     if(mRequestedPrecompileShader[i].type == shader)
     {
-      DALI_LOG_WARNING("This shader already requsted(%s).\n", Scripting::GetLinearEnumerationName<VisualFactoryCache::ShaderType>(mRequestedPrecompileShader[i].type, VISUAL_SHADER_TYPE_TABLE, VISUAL_SHADER_TYPE_TABLE_COUNT));
+      DALI_LOG_DEBUG_INFO("This shader already requsted(%s).\n", Scripting::GetLinearEnumerationName<VisualFactoryCache::ShaderType>(mRequestedPrecompileShader[i].type, VISUAL_SHADER_TYPE_TABLE, VISUAL_SHADER_TYPE_TABLE_COUNT));
       return false;
     }
   }
index 39ced7376c405f5ec1c7af30ca36b1213b2db00f..499481de6745c1ff3d05a849b7dfc0972df4c7b1 100644 (file)
@@ -291,7 +291,7 @@ void ImageVisualShaderFactory::CreatePrecompileShader(ImageVisualShaderFeature::
       }
       default:
       {
-        DALI_LOG_WARNING("Unknown option[%d]. maybe this type can't use this flag\n", static_cast<int>(option[i]));
+        DALI_LOG_ERROR("Unknown option[%d]. maybe this type can't use this flag\n", static_cast<int>(option[i]));
         break;
       }
     }
@@ -304,7 +304,7 @@ bool ImageVisualShaderFactory::SavePrecompileShader(VisualFactoryCache::ShaderTy
   {
     if(ShaderTypePredefines[i] == shader)
     {
-      DALI_LOG_WARNING("This shader already added list(%s).\n", Scripting::GetLinearEnumerationName<VisualFactoryCache::ShaderType>(ShaderTypePredefines[i], VISUAL_SHADER_TYPE_TABLE, VISUAL_SHADER_TYPE_TABLE_COUNT));
+      DALI_LOG_DEBUG_INFO("This shader already added list(%s).\n", Scripting::GetLinearEnumerationName<VisualFactoryCache::ShaderType>(ShaderTypePredefines[i], VISUAL_SHADER_TYPE_TABLE, VISUAL_SHADER_TYPE_TABLE_COUNT));
       return false;
     }
   }
@@ -313,7 +313,7 @@ bool ImageVisualShaderFactory::SavePrecompileShader(VisualFactoryCache::ShaderTy
   {
     if(mRequestedPrecompileShader[i].type == shader)
     {
-      DALI_LOG_WARNING("This shader already requsted(%s).\n", Scripting::GetLinearEnumerationName<VisualFactoryCache::ShaderType>(mRequestedPrecompileShader[i].type, VISUAL_SHADER_TYPE_TABLE, VISUAL_SHADER_TYPE_TABLE_COUNT));
+      DALI_LOG_DEBUG_INFO("This shader already requsted(%s).\n", Scripting::GetLinearEnumerationName<VisualFactoryCache::ShaderType>(mRequestedPrecompileShader[i].type, VISUAL_SHADER_TYPE_TABLE, VISUAL_SHADER_TYPE_TABLE_COUNT));
       return false;
     }
   }
index ddbc49aa6849c6432d8fad67d92bb142db1f3a47..39b957dd9eeeb74ff13dab04d70fc9a5b2fd58f0 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2024 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2025 Samsung Electronics Co., Ltd.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -123,7 +123,7 @@ bool NpatchShaderFactory::SavePrecompileShader(VisualFactoryCache::ShaderType sh
   {
     if(mRequestedPrecompileShader[i].type == shader)
     {
-      DALI_LOG_WARNING("This shader already requsted(%s).", Scripting::GetLinearEnumerationName<VisualFactoryCache::ShaderType>(mRequestedPrecompileShader[i].type, VISUAL_SHADER_TYPE_TABLE, VISUAL_SHADER_TYPE_TABLE_COUNT));
+      DALI_LOG_DEBUG_INFO("This shader already requsted(%s).", Scripting::GetLinearEnumerationName<VisualFactoryCache::ShaderType>(mRequestedPrecompileShader[i].type, VISUAL_SHADER_TYPE_TABLE, VISUAL_SHADER_TYPE_TABLE_COUNT));
       return false;
     }
   }
index 52e4d8fd7f1db623ce10f22cc612d8b74ea653cb..51da673d6e6175531af65ebbd0cbc1863f921dd4 100644 (file)
@@ -163,12 +163,12 @@ void PrimitiveVisual::DoSetProperties(const Property::Map& propertyMap)
       if(mSlices > MAX_PARTITIONS)
       {
         mSlices = MAX_PARTITIONS;
-        DALI_LOG_WARNING("Value for slices clamped.\n");
+        DALI_LOG_DEBUG_INFO("Value for slices clamped.\n");
       }
       else if(mSlices < MIN_SLICES)
       {
         mSlices = MIN_SLICES;
-        DALI_LOG_WARNING("Value for slices clamped.\n");
+        DALI_LOG_DEBUG_INFO("Value for slices clamped.\n");
       }
     }
     else
@@ -186,12 +186,12 @@ void PrimitiveVisual::DoSetProperties(const Property::Map& propertyMap)
       if(mStacks > MAX_PARTITIONS)
       {
         mStacks = MAX_PARTITIONS;
-        DALI_LOG_WARNING("Value for stacks clamped.\n");
+        DALI_LOG_DEBUG_INFO("Value for stacks clamped.\n");
       }
       else if(mStacks < MIN_STACKS)
       {
         mStacks = MIN_STACKS;
-        DALI_LOG_WARNING("Value for stacks clamped.\n");
+        DALI_LOG_DEBUG_INFO("Value for stacks clamped.\n");
       }
     }
     else
@@ -233,17 +233,17 @@ void PrimitiveVisual::DoSetProperties(const Property::Map& propertyMap)
       if(mScaleDimensions.x <= 0.0)
       {
         mScaleDimensions.x = 1.0;
-        DALI_LOG_WARNING("Value for scale dimensions clamped. Must be greater than zero.\n");
+        DALI_LOG_DEBUG_INFO("Value for scale dimensions clamped. Must be greater than zero.\n");
       }
       if(mScaleDimensions.y <= 0.0)
       {
         mScaleDimensions.y = 1.0;
-        DALI_LOG_WARNING("Value for scale dimensions clamped. Must be greater than zero.\n");
+        DALI_LOG_DEBUG_INFO("Value for scale dimensions clamped. Must be greater than zero.\n");
       }
       if(mScaleDimensions.z <= 0.0)
       {
         mScaleDimensions.z = 1.0;
-        DALI_LOG_WARNING("Value for scale dimensions clamped. Must be greater than zero.\n");
+        DALI_LOG_DEBUG_INFO("Value for scale dimensions clamped. Must be greater than zero.\n");
       }
     }
     else
@@ -261,12 +261,12 @@ void PrimitiveVisual::DoSetProperties(const Property::Map& propertyMap)
       if(mBevelPercentage < MIN_BEVEL_PERCENTAGE)
       {
         mBevelPercentage = MIN_BEVEL_PERCENTAGE;
-        DALI_LOG_WARNING("Value for bevel percentage clamped.\n");
+        DALI_LOG_DEBUG_INFO("Value for bevel percentage clamped.\n");
       }
       else if(mBevelPercentage > MAX_BEVEL_PERCENTAGE)
       {
         mBevelPercentage = MAX_BEVEL_PERCENTAGE;
-        DALI_LOG_WARNING("Value for bevel percentage clamped.\n");
+        DALI_LOG_DEBUG_INFO("Value for bevel percentage clamped.\n");
       }
     }
     else
@@ -284,12 +284,12 @@ void PrimitiveVisual::DoSetProperties(const Property::Map& propertyMap)
       if(mBevelSmoothness < MIN_SMOOTHNESS)
       {
         mBevelSmoothness = MIN_SMOOTHNESS;
-        DALI_LOG_WARNING("Value for bevel smoothness clamped.\n");
+        DALI_LOG_DEBUG_INFO("Value for bevel smoothness clamped.\n");
       }
       else if(mBevelSmoothness > MAX_SMOOTHNESS)
       {
         mBevelSmoothness = MAX_SMOOTHNESS;
-        DALI_LOG_WARNING("Value for bevel smoothness clamped.\n");
+        DALI_LOG_DEBUG_INFO("Value for bevel smoothness clamped.\n");
       }
     }
     else
index b0f263708692738c79bc518ccedac40166016ae1..e0b5a1af4475b8f5bd8881316806f03567b657b1 100644 (file)
@@ -264,7 +264,7 @@ void TextVisualShaderFactory::CreatePrecompileShader(TextVisualShaderFeature::Fe
       }
       default:
       {
-        DALI_LOG_WARNING("Unknown option[%d]. maybe this type can't use this flag\n", static_cast<int>(option[i]));
+        DALI_LOG_ERROR("Unknown option[%d]. maybe this type can't use this flag\n", static_cast<int>(option[i]));
         break;
       }
     }
@@ -277,7 +277,7 @@ bool TextVisualShaderFactory::SavePrecompileShader(VisualFactoryCache::ShaderTyp
   {
     if(ShaderTypePredefines[i] == shader)
     {
-      DALI_LOG_WARNING("This shader already added list(%s).\n", Scripting::GetLinearEnumerationName<VisualFactoryCache::ShaderType>(ShaderTypePredefines[i], VISUAL_SHADER_TYPE_TABLE, VISUAL_SHADER_TYPE_TABLE_COUNT));
+      DALI_LOG_DEBUG_INFO("This shader already added list(%s).\n", Scripting::GetLinearEnumerationName<VisualFactoryCache::ShaderType>(ShaderTypePredefines[i], VISUAL_SHADER_TYPE_TABLE, VISUAL_SHADER_TYPE_TABLE_COUNT));
       return false;
     }
   }
@@ -286,7 +286,7 @@ bool TextVisualShaderFactory::SavePrecompileShader(VisualFactoryCache::ShaderTyp
   {
     if(mRequestedPrecompileShader[i].type == shader)
     {
-      DALI_LOG_WARNING("This shader already requsted(%s).\n", Scripting::GetLinearEnumerationName<VisualFactoryCache::ShaderType>(mRequestedPrecompileShader[i].type, VISUAL_SHADER_TYPE_TABLE, VISUAL_SHADER_TYPE_TABLE_COUNT));
+      DALI_LOG_DEBUG_INFO("This shader already requsted(%s).\n", Scripting::GetLinearEnumerationName<VisualFactoryCache::ShaderType>(mRequestedPrecompileShader[i].type, VISUAL_SHADER_TYPE_TABLE, VISUAL_SHADER_TYPE_TABLE_COUNT));
       return false;
     }
   }
index fcd77268bd35b9f934109e331151b0431473dd31..8b484905392fa4320eec04813cb235b54b5e59f2 100644 (file)
@@ -1126,7 +1126,7 @@ bool TextVisual::UpdateAsyncRenderer(Text::AsyncTextParameters& parameters)
 
   if(parameters.textWidth > maxTextureSize)
   {
-    DALI_LOG_WARNING("layoutSize(%f) > maxTextureSize(%d): To guarantee the behavior of Texture::New, layoutSize must not be bigger than maxTextureSize\n", parameters.textWidth, maxTextureSize);
+    DALI_LOG_DEBUG_INFO("layoutSize(%f) > maxTextureSize(%d): To guarantee the behavior of Texture::New, layoutSize must not be bigger than maxTextureSize\n", parameters.textWidth, maxTextureSize);
     parameters.textWidth = maxTextureSize;
   }
 
index 84c8e0659302ccf82cc33af45392a22196f8b9ef..59a91113e2eafd0cdc7dd7ea9c91fbeff9ac971e 100644 (file)
@@ -1248,7 +1248,7 @@ void Visual::Base::SetupTransition(
         else if(animator.animationType == TransitionData::AnimationType::BY)
         {
           // To Do
-          DALI_LOG_WARNING("AnimationType::By is not supported yet. \n");
+          DALI_LOG_ERROR("AnimationType::By is not supported yet. \n");
         }
         else
         {