void TextureManager::ProcessRemoveQueue()
{
-#ifdef TRACE_ENABLED
- if(gTraceFilter && gTraceFilter->IsTraceEnabled())
- {
- if(mRemoveQueue.Count() > 0u)
- {
- std::ostringstream oss;
- oss << "[" << mRemoveQueue.Count() << "]";
- DALI_TRACE_BEGIN_WITH_MESSAGE(gTraceFilter, "DALI_TEXTURE_MANAGER_PROCESS_REMOVE_QUEUE", oss.str().c_str());
- }
- }
-#endif
+ DALI_TRACE_BEGIN_WITH_MESSAGE_GENERATOR(gTraceFilter, "DALI_TEXTURE_MANAGER_PROCESS_REMOVE_QUEUE", [&](std::ostringstream& oss) {
+ oss << "[" << mRemoveQueue.Count() << "]";
+ });
// Note that RemoveQueue is not be changed during Remove().
for(auto&& textureId : mRemoveQueue)
}
}
-#ifdef TRACE_ENABLED
- if(gTraceFilter && gTraceFilter->IsTraceEnabled())
- {
- if(mRemoveQueue.Count() > 0u)
- {
- std::ostringstream oss;
- oss << "[" << mRemoveQueue.Count() << "]";
- DALI_TRACE_END_WITH_MESSAGE(gTraceFilter, "DALI_TEXTURE_MANAGER_PROCESS_REMOVE_QUEUE", oss.str().c_str());
- }
- }
-#endif
-
mRemoveQueue.Clear();
+
+ DALI_TRACE_END(gTraceFilter, "DALI_TEXTURE_MANAGER_PROCESS_REMOVE_QUEUE");
}
void TextureManager::Process(bool postProcessor)
return false;
}
-#ifdef TRACE_ENABLED
- if(gTraceFilter && gTraceFilter->IsTraceEnabled())
- {
- std::ostringstream oss;
+ DALI_TRACE_BEGIN_WITH_MESSAGE_GENERATOR(gTraceFilter, "DALI_LOTTIE_RASTERIZE_TASK", [&](std::ostringstream& oss) {
oss << "[size:" << mWidth << "x" << mHeight << " ";
oss << "url:" << mImageUrl.GetUrl() << "]";
- DALI_TRACE_BEGIN_WITH_MESSAGE(gTraceFilter, "DALI_LOTTIE_RASTERIZE_TASK", oss.str().c_str());
- }
-#endif
+ });
ApplyAnimationData();
mKeepAnimation = true;
}
-#ifdef TRACE_ENABLED
- if(gTraceFilter && gTraceFilter->IsTraceEnabled())
- {
- std::ostringstream oss;
+ DALI_TRACE_END_WITH_MESSAGE_GENERATOR(gTraceFilter, "DALI_LOTTIE_RASTERIZE_TASK", [&](std::ostringstream& oss) {
oss << "[size:" << mWidth << "x" << mHeight << " ";
oss << "frame:" << mCurrentFrame << " ";
oss << "loop:" << mCurrentLoop << " ";
oss << "state:" << mPlayState << " ";
oss << "url:" << mImageUrl.GetUrl() << "]";
- DALI_TRACE_END_WITH_MESSAGE(gTraceFilter, "DALI_LOTTIE_RASTERIZE_TASK", oss.str().c_str());
- }
-#endif
+ });
return true;
}
void NPatchLoader::Process(bool postProcessor)
{
-#ifdef TRACE_ENABLED
- if(gTraceFilter && gTraceFilter->IsTraceEnabled())
- {
- if(mRemoveQueue.size() > 0u)
- {
- std::ostringstream oss;
- oss << "[" << mRemoveQueue.size() << "]";
- DALI_TRACE_BEGIN_WITH_MESSAGE(gTraceFilter, "DALI_NPATCH_LOADER_PROCESS_REMOVE_QUEUE", oss.str().c_str());
- }
- }
-#endif
+ DALI_TRACE_BEGIN_WITH_MESSAGE_GENERATOR(gTraceFilter, "DALI_NPATCH_LOADER_PROCESS_REMOVE_QUEUE", [&](std::ostringstream& oss) {
+ oss << "[" << mRemoveQueue.size() << "]";
+ });
for(auto& iter : mRemoveQueue)
{
Remove(iter.first, iter.second);
}
-#ifdef TRACE_ENABLED
- if(gTraceFilter && gTraceFilter->IsTraceEnabled())
- {
- if(mRemoveQueue.size() > 0u)
- {
- std::ostringstream oss;
- oss << "[" << mRemoveQueue.size() << "]";
- DALI_TRACE_END_WITH_MESSAGE(gTraceFilter, "DALI_NPATCH_LOADER_PROCESS_REMOVE_QUEUE", oss.str().c_str());
- }
- }
-#endif
-
mRemoveQueue.clear();
if(Adaptor::IsAvailable())
Adaptor::Get().UnregisterProcessor(*this, true);
mRemoveProcessorRegistered = false;
}
+
+ DALI_TRACE_END(gTraceFilter, "DALI_NPATCH_LOADER_PROCESS_REMOVE_QUEUE");
}
NPatchDataPtr NPatchLoader::GetNPatchData(const VisualUrl& url, const Rect<int>& border, bool& preMultiplyOnLoad)
return;
}
-#ifdef TRACE_ENABLED
- if(gTraceFilter && gTraceFilter->IsTraceEnabled())
- {
- std::ostringstream oss;
+ DALI_TRACE_BEGIN_WITH_MESSAGE_GENERATOR(gTraceFilter, "DALI_SVG_RASTERIZE_TASK", [&](std::ostringstream& oss) {
oss << "[size:" << mWidth << "x" << mHeight << " ";
oss << "url:" << mImageUrl.GetUrl() << "]";
- DALI_TRACE_BEGIN_WITH_MESSAGE(gTraceFilter, "DALI_SVG_RASTERIZE_TASK", oss.str().c_str());
- }
-#endif
+ });
Devel::PixelBuffer pixelBuffer = mVectorRenderer.Rasterize(mWidth, mHeight);
if(!pixelBuffer)
{
DALI_LOG_ERROR("Rasterize is failed!\n");
-#ifdef TRACE_ENABLED
- if(gTraceFilter && gTraceFilter->IsTraceEnabled())
- {
- std::ostringstream oss;
+ DALI_TRACE_END_WITH_MESSAGE_GENERATOR(gTraceFilter, "DALI_SVG_RASTERIZE_TASK", [&](std::ostringstream& oss) {
oss << "[size:" << mWidth << "x" << mHeight << " ";
oss << "url:" << mImageUrl.GetUrl() << "]";
- DALI_TRACE_END_WITH_MESSAGE(gTraceFilter, "DALI_SVG_RASTERIZE_TASK", oss.str().c_str());
- }
-#endif
+ });
return;
}
mPixelData = Devel::PixelBuffer::Convert(pixelBuffer);
mHasSucceeded = true;
-#ifdef TRACE_ENABLED
- if(gTraceFilter && gTraceFilter->IsTraceEnabled())
- {
- std::ostringstream oss;
+ DALI_TRACE_END_WITH_MESSAGE_GENERATOR(gTraceFilter, "DALI_SVG_RASTERIZE_TASK", [&](std::ostringstream& oss) {
oss << "[size:" << mWidth << "x" << mHeight << " ";
oss << "url:" << mImageUrl.GetUrl() << "]";
- DALI_TRACE_END_WITH_MESSAGE(gTraceFilter, "DALI_SVG_RASTERIZE_TASK", oss.str().c_str());
- }
-#endif
+ });
}
bool SvgRasterizingTask::IsReady()