Toolkit::Visual::ResourceStatus resourceStatus;
- Actor control = mControl.GetHandle();
- if(!control)
- {
- // Nothing to do.
- ResourceReady(Toolkit::Visual::ResourceStatus::READY);
- return;
- }
-
if(loadingSuccess)
{
resourceStatus = Toolkit::Visual::ResourceStatus::READY;
}
}
+ Actor control = mControl.GetHandle();
+ if(!control)
+ {
+ // Nothing to do.
+ ResourceReady(Toolkit::Visual::ResourceStatus::READY);
+ return;
+ }
+
// Calculate the size of the visual that can fit the text.
// The size of the text after it has been laid-out, size of pixel data buffer.
Size layoutSize(static_cast<float>(renderInfo.width), static_cast<float>(renderInfo.height));
void TextVisual::RequestAsyncSizeComputation(Text::AsyncTextParameters& parameters)
{
- Actor control = mControl.GetHandle();
- if(!control)
- {
- // Nothing to do.
- return;
- }
+ DALI_LOG_RELEASE_INFO("-->TextVisual::RequestAsyncSizeComputation RequestLoad\n");
TextLoadObserver* textLoadObserver = this;
Text::AsyncTextManager::Get().RequestLoad(parameters, textLoadObserver);
- DALI_LOG_RELEASE_INFO("-->TextVisual::RequestAsyncSizeComputation RequestLoad\n");
}
void TextVisual::UpdateAsyncRenderer(Text::AsyncTextParameters& parameters)
Text::AsyncTextManager::Get().RequestCancel(mTaskId);
}
+ DALI_LOG_RELEASE_INFO("-->TextVisual::UpdateAsyncRenderer RequestLoad\n");
+
mIsTaskRunning = true;
TextLoadObserver* textLoadObserver = this;
mTaskId = Text::AsyncTextManager::Get().RequestLoad(parameters, textLoadObserver);
- DALI_LOG_RELEASE_INFO("-->TextVisual::UpdateAsyncRenderer RequestLoad\n");
}
void TextVisual::AddRenderer(Actor& actor, const Vector2& size, bool hasMultipleTextColors, bool containsColorGlyph, bool styleEnabled, bool isOverlayStyle)