application.SendNotification();
application.Render();
- DALI_TEST_EQUALS(Test::WaitForEventThreadTrigger(1), true, TEST_LOCATION);
+ DALI_TEST_EQUALS(Test::WaitForEventThreadTrigger(2), true, TEST_LOCATION);
application.SendNotification();
application.Render();
tet_infoline("Test that after 2 ticks that we have 6 textures");
Test::EmitGlobalTimerSignal();
- application.SendNotification();
- application.Render(16);
- DALI_TEST_EQUALS(gl.GetNumGeneratedTextures(), 6, TEST_LOCATION);
+ // TODO : Open this logic if we make AsyncTaskManager for toolkit UTC doesn't execute by SendNotification().
+ //application.SendNotification();
+ //application.Render(16);
+ //DALI_TEST_EQUALS(gl.GetNumGeneratedTextures(), 6, TEST_LOCATION);
tet_infoline("And that at least 2 textures were requested");
DALI_TEST_EQUALS(Test::WaitForEventThreadTrigger(2), true, TEST_LOCATION);
tet_infoline("Test that after 3rd tick that we have 7 textures and 1 request");
Test::EmitGlobalTimerSignal();
- application.SendNotification();
- application.Render(16);
- DALI_TEST_EQUALS(gl.GetNumGeneratedTextures(), 7, TEST_LOCATION);
+ // TODO : Open this logic if we make AsyncTaskManager for toolkit UTC doesn't execute by SendNotification().
+ //application.SendNotification();
+ //application.Render(16);
+ //DALI_TEST_EQUALS(gl.GetNumGeneratedTextures(), 7, TEST_LOCATION);
DALI_TEST_EQUALS(Test::WaitForEventThreadTrigger(1), true, TEST_LOCATION);
application.SendNotification();
// loading is not started if the actor is offScene
application.GetScene().Add(imageView);
- application.SendNotification();
- application.Render(16);
- application.Render(16);
- application.SendNotification();
imageView.SetProperty(Dali::Actor::Property::LAYOUT_DIRECTION, Dali::LayoutDirection::RIGHT_TO_LEFT);
- application.SendNotification();
- application.Render(16);
- application.Render(16);
- application.SendNotification();
// loading started, this waits for the loader thread for max 30 seconds
DALI_TEST_EQUALS(Test::WaitForEventThreadTrigger(1), true, TEST_LOCATION);
imageView.SetProperty(ImageView::Property::IMAGE, asyncLoadingMap);
application.GetScene().Add(imageView);
- application.SendNotification();
- application.Render(16);
- application.Render(16);
- application.SendNotification();
// loading started, this waits for the loader thread for max 30 seconds
DALI_TEST_EQUALS(Test::WaitForEventThreadTrigger(1), true, TEST_LOCATION);
imageView.SetProperty(ImageView::Property::IMAGE, imageMap);
imageView.SetProperty(Dali::Actor::Property::LAYOUT_DIRECTION, Dali::LayoutDirection::RIGHT_TO_LEFT);
- application.SendNotification();
- application.Render(16);
- application.Render(16);
- application.SendNotification();
// loading started, this waits for the loader thread for max 30 seconds
DALI_TEST_EQUALS(Test::WaitForEventThreadTrigger(1), true, TEST_LOCATION);
DALI_TEST_CHECK(retMap);
// Fitting mode should not be applied at this point
- DALI_TEST_EQUALS(retMap->Find(Visual::Transform::Property::SIZE)->Get<Vector2>(), Vector2::ZERO, TEST_LOCATION);
+ DALI_TEST_EQUALS(retMap->Find(Visual::Transform::Property::SIZE)->Get<Vector2>(), Vector2::ZERO, TEST_LOCATION);
}
int UtcDaliImageViewCheckResourceReady(void)
DALI_TEST_CHECK(retMap);
// Image Visual should be positioned depending on ImageView's padding
- DALI_TEST_EQUALS(retMap->Find(Visual::Transform::Property::SIZE)->Get<Vector2>(), Vector2(100, 100), TEST_LOCATION);
+ DALI_TEST_EQUALS(retMap->Find(Visual::Transform::Property::SIZE)->Get<Vector2>(), Vector2(100, 100), TEST_LOCATION);
Vector3 naturalSize = imageView.GetNaturalSize();
DALI_TEST_EQUALS(naturalSize.width, 100.0f, TEST_LOCATION);
highp int vertexId = 0;
highp int x = 0;
highp int y = 0;
+ highp float weight = clamp(uBlendShapeWeight[index], 0.0, 1.0);
#ifdef MORPH_POSITION
// Calculate the index to retrieve the geometry from the texture.
y = vertexId / width;
// Retrieves the blend shape geometry from the texture, unnormalizes it and multiply by the weight.
- if( 0.0 != uBlendShapeWeight[index] )
+ if(0.0 != weight)
{
#ifdef MORPH_VERSION_2_0
highp float unnormalizeFactor = uBlendShapeUnnormalizeFactor;
highp float unnormalizeFactor = uBlendShapeUnnormalizeFactor[index];
#endif
- diff = uBlendShapeWeight[index] * unnormalizeFactor * ( texelFetch( sBlendShapeGeometry, ivec2(x, y), 0 ).xyz - 0.5 );
+ diff = weight * unnormalizeFactor * ( texelFetch( sBlendShapeGeometry, ivec2(x, y), 0 ).xyz - 0.5 );
}
position.xyz += diff;
y = vertexId / width;
// Retrieves the blend shape normal from the texture, unnormalizes it and multiply by the weight.
- if( 0.0 != uBlendShapeWeight[index] )
+ if(0.0 != weight)
{
- diff = uBlendShapeWeight[index] * 2.0 * ( texelFetch( sBlendShapeGeometry, ivec2(x, y), 0 ).xyz - 0.5 );
+ diff = weight * 2.0 * ( texelFetch( sBlendShapeGeometry, ivec2(x, y), 0 ).xyz - 0.5 );
}
normal += diff.xyz;
y = vertexId / width;
// Retrieves the blend shape tangent from the texture, unnormalizes it and multiply by the weight.
- if( 0.0 != uBlendShapeWeight[index] )
+ if(0.0 != weight)
{
- diff = uBlendShapeWeight[index] * 2.0 * ( texelFetch( sBlendShapeGeometry, ivec2(x, y), 0 ).xyz - 0.5 );
+ diff = weight * 2.0 * ( texelFetch( sBlendShapeGeometry, ivec2(x, y), 0 ).xyz - 0.5 );
}
tangent += diff.xyz;
void Popup::SetTailUpImage(std::string image)
{
- mTailUpImage = image;
+ mTailUpImage = std::move(image);
mLayoutDirty = true;
LayoutTail();
}
void Popup::SetTailDownImage(std::string image)
{
- mTailDownImage = image;
+ mTailDownImage = std::move(image);
mLayoutDirty = true;
LayoutTail();
}
void Popup::SetTailLeftImage(std::string image)
{
- mTailLeftImage = image;
+ mTailLeftImage = std::move(image);
mLayoutDirty = true;
LayoutTail();
}
void Popup::SetTailRightImage(std::string image)
{
- mTailRightImage = image;
+ mTailRightImage = std::move(image);
mLayoutDirty = true;
LayoutTail();
}
std::string valueString;
if(value.Get(valueString))
{
- Toolkit::ImageView actor = Toolkit::ImageView::New(valueString);
+ Toolkit::ImageView actor = Toolkit::ImageView::New(std::move(valueString));
popupImpl.SetPopupBackgroundImage(actor);
}
break;
std::string valueString;
if(value.Get(valueString))
{
- popupImpl.SetTailUpImage(valueString);
+ popupImpl.SetTailUpImage(std::move(valueString));
}
break;
}
std::string valueString;
if(value.Get(valueString))
{
- popupImpl.SetTailDownImage(valueString);
+ popupImpl.SetTailDownImage(std::move(valueString));
}
break;
}
std::string valueString;
if(value.Get(valueString))
{
- popupImpl.SetTailLeftImage(valueString);
+ popupImpl.SetTailLeftImage(std::move(valueString));
}
break;
}
std::string valueString;
if(value.Get(valueString))
{
- popupImpl.SetTailRightImage(valueString);
+ popupImpl.SetTailRightImage(std::move(valueString));
}
break;
}
{
Property::Map map;
Scripting::CreatePropertyMap(popupImpl.GetTitle(), map);
- value = map;
+ value = std::move(map);
break;
}
case Toolkit::Popup::Property::CONTENT:
{
Property::Map map;
Scripting::CreatePropertyMap(popupImpl.GetContent(), map);
- value = map;
+ value = std::move(map);
break;
}
case Toolkit::Popup::Property::FOOTER:
{
Property::Map map;
Scripting::CreatePropertyMap(popupImpl.GetFooter(), map);
- value = map;
+ value = std::move(map);
break;
}
case Toolkit::Popup::Property::DISPLAY_STATE:
{
// Note: Cannot retrieve property map from animation.
Property::Map map;
- value = map;
+ value = std::move(map);
break;
}
case Toolkit::Popup::Property::EXIT_ANIMATION:
{
// Note: Cannot retrieve property map from animation.
Property::Map map;
- value = map;
+ value = std::move(map);
break;
}
case Toolkit::Popup::Property::AUTO_HIDE_DELAY:
if(popupTitle)
{
std::string titleText = popupTitle.GetProperty<std::string>(Toolkit::TextLabel::Property::TEXT);
- title = titleText;
+ title = std::move(titleText);
}
else
{
if(popupContent)
{
std::string contentText = popupContent.GetProperty<std::string>(Toolkit::TextLabel::Property::TEXT);
- title = contentText;
+ title = std::move(contentText);
}
}
return title;
auto endOffset = static_cast<std::size_t>(indices.second);
auto text = GetText(startOffset, endOffset);
- return {startOffset, endOffset, text};
+ return {startOffset, endOffset, std::move(text)};
}
std::string TextControlAccessible::GetText(std::size_t startOffset, std::size_t endOffset) const
{
if(mWebEngine)
{
- mWebEngine.EvaluateJavaScript(script, resultHandler);
+ mWebEngine.EvaluateJavaScript(script, std::move(resultHandler));
}
}
{
if(mWebEngine)
{
- mWebEngine.AddJavaScriptMessageHandler(exposedObjectName, handler);
+ mWebEngine.AddJavaScriptMessageHandler(exposedObjectName, std::move(handler));
}
}
{
if(mWebEngine)
{
- mWebEngine.RegisterJavaScriptAlertCallback(callback);
+ mWebEngine.RegisterJavaScriptAlertCallback(std::move(callback));
}
}
{
if(mWebEngine)
{
- mWebEngine.RegisterJavaScriptConfirmCallback(callback);
+ mWebEngine.RegisterJavaScriptConfirmCallback(std::move(callback));
}
}
{
if(mWebEngine)
{
- mWebEngine.RegisterJavaScriptPromptCallback(callback);
+ mWebEngine.RegisterJavaScriptPromptCallback(std::move(callback));
}
}
bool result = false;
if(mWebEngine)
{
- result = mWebEngine.CreateHitTestAsynchronously(x, y, mode, callback);
+ result = mWebEngine.CreateHitTestAsynchronously(x, y, mode, std::move(callback));
}
return result;
}
bool WebView::GetScreenshotAsynchronously(Dali::Rect<int32_t> viewArea, float scaleFactor, Dali::Toolkit::WebView::WebViewScreenshotCapturedCallback callback)
{
- mScreenshotCapturedCallback = callback;
+ mScreenshotCapturedCallback = std::move(callback);
return mWebEngine ? mWebEngine.GetScreenshotAsynchronously(viewArea, scaleFactor, std::bind(&WebView::OnScreenshotCaptured, this, std::placeholders::_1)) : false;
}
bool WebView::CheckVideoPlayingAsynchronously(Dali::WebEnginePlugin::VideoPlayingCallback callback)
{
- return mWebEngine ? mWebEngine.CheckVideoPlayingAsynchronously(callback) : false;
+ return mWebEngine ? mWebEngine.CheckVideoPlayingAsynchronously(std::move(callback)) : false;
}
void WebView::RegisterGeolocationPermissionCallback(Dali::WebEnginePlugin::GeolocationPermissionCallback callback)
{
if(mWebEngine)
{
- mWebEngine.RegisterGeolocationPermissionCallback(callback);
+ mWebEngine.RegisterGeolocationPermissionCallback(std::move(callback));
}
}
{
if(mWebEngine)
{
- mWebEngine.RegisterPageLoadStartedCallback(callback);
+ mWebEngine.RegisterPageLoadStartedCallback(std::move(callback));
}
}
{
if(mWebEngine)
{
- mWebEngine.RegisterPageLoadInProgressCallback(callback);
+ mWebEngine.RegisterPageLoadInProgressCallback(std::move(callback));
}
}
{
if(mWebEngine)
{
- mWebEngine.RegisterPageLoadFinishedCallback(callback);
+ mWebEngine.RegisterPageLoadFinishedCallback(std::move(callback));
}
}
{
if(mWebEngine)
{
- mWebEngine.RegisterPageLoadErrorCallback(callback);
+ mWebEngine.RegisterPageLoadErrorCallback(std::move(callback));
}
}
{
if(mWebEngine)
{
- mWebEngine.RegisterScrollEdgeReachedCallback(callback);
+ mWebEngine.RegisterScrollEdgeReachedCallback(std::move(callback));
}
}
{
if(mWebEngine)
{
- mWebEngine.RegisterUrlChangedCallback(callback);
+ mWebEngine.RegisterUrlChangedCallback(std::move(callback));
}
}
{
if(mWebEngine)
{
- mWebEngine.RegisterFormRepostDecidedCallback(callback);
+ mWebEngine.RegisterFormRepostDecidedCallback(std::move(callback));
}
}
void WebView::RegisterFrameRenderedCallback(Dali::WebEnginePlugin::WebEngineFrameRenderedCallback callback)
{
- mFrameRenderedCallback = callback;
+ mFrameRenderedCallback = std::move(callback);
}
void WebView::RegisterConsoleMessageReceivedCallback(Dali::WebEnginePlugin::WebEngineConsoleMessageReceivedCallback callback)
{
if(mWebEngine)
{
- mWebEngine.RegisterConsoleMessageReceivedCallback(callback);
+ mWebEngine.RegisterConsoleMessageReceivedCallback(std::move(callback));
}
}
{
if(mWebEngine)
{
- mWebEngine.RegisterResponsePolicyDecidedCallback(callback);
+ mWebEngine.RegisterResponsePolicyDecidedCallback(std::move(callback));
}
}
{
if(mWebEngine)
{
- mWebEngine.RegisterNavigationPolicyDecidedCallback(callback);
+ mWebEngine.RegisterNavigationPolicyDecidedCallback(std::move(callback));
}
}
{
if(mWebEngine)
{
- mWebEngine.RegisterNewWindowCreatedCallback(callback);
+ mWebEngine.RegisterNewWindowCreatedCallback(std::move(callback));
}
}
{
if(mWebEngine)
{
- mWebEngine.RegisterCertificateConfirmedCallback(callback);
+ mWebEngine.RegisterCertificateConfirmedCallback(std::move(callback));
}
}
{
if(mWebEngine)
{
- mWebEngine.RegisterSslCertificateChangedCallback(callback);
+ mWebEngine.RegisterSslCertificateChangedCallback(std::move(callback));
}
}
{
if(mWebEngine)
{
- mWebEngine.RegisterHttpAuthHandlerCallback(callback);
+ mWebEngine.RegisterHttpAuthHandlerCallback(std::move(callback));
}
}
{
if(mWebEngine)
{
- mWebEngine.RegisterContextMenuShownCallback(callback);
+ mWebEngine.RegisterContextMenuShownCallback(std::move(callback));
}
}
{
if(mWebEngine)
{
- mWebEngine.RegisterContextMenuHiddenCallback(callback);
+ mWebEngine.RegisterContextMenuHiddenCallback(std::move(callback));
}
}
{
if(mWebEngine)
{
- mWebEngine.GetPlainTextAsynchronously(callback);
+ mWebEngine.GetPlainTextAsynchronously(std::move(callback));
}
}
{
SvgVisualPtr self = this; // Keep reference until this API finished
- // We don't need to keep tasks anymore. reset now.
- if(task == mLoadingTask)
- {
- mLoadingTask.Reset();
- }
- if(task == mRasterizingTask)
- {
- mRasterizingTask.Reset();
- }
-
if(task->HasSucceeded())
{
PixelData rasterizedPixelData = task->GetPixelData();
task->GetRenderer().GetDefaultSize(mDefaultWidth, mDefaultHeight);
}
+ // We don't need to keep tasks anymore. reset now.
+ if(task == mLoadingTask)
+ {
+ mLoadingTask.Reset();
+ }
+ if(task == mRasterizingTask)
+ {
+ mRasterizingTask.Reset();
+ }
+
// Rasterization success
if(rasterizedPixelData && IsOnScene())
{
{
mLoadFailed = true;
+ // Remove rasterizing task if we requested before.
+ if(mRasterizingTask)
+ {
+ Dali::AsyncTaskManager::Get().RemoveTask(mRasterizingTask);
+ mRasterizingTask.Reset();
+ }
+
+ // We don't need to keep tasks anymore. reset now.
+ if(task == mLoadingTask)
+ {
+ mLoadingTask.Reset();
+ }
+
Actor actor = mPlacementActor.GetHandle();
if(actor)
{
{
const unsigned int TOOLKIT_MAJOR_VERSION = 2;
const unsigned int TOOLKIT_MINOR_VERSION = 2;
-const unsigned int TOOLKIT_MICRO_VERSION = 49;
+const unsigned int TOOLKIT_MICRO_VERSION = 50;
const char* const TOOLKIT_BUILD_DATE = __DATE__ " " __TIME__;
#ifdef DEBUG_ENABLED
Name: dali2-toolkit
Summary: Dali 3D engine Toolkit
-Version: 2.2.49
+Version: 2.2.50
Release: 1
Group: System/Libraries
License: Apache-2.0 and BSD-3-Clause and MIT