#include <dali/devel-api/adaptor-framework/pixel-buffer.h>
#include <dali/integration-api/adaptor-framework/adaptor.h>
#include <dali/integration-api/debug.h>
+#include <dali/integration-api/trace.h>
#include <dali/public-api/rendering/geometry.h>
// INTERNAL HEADERS
constexpr auto TEXTURE_INDEX = 0u; ///< The Index for texture
constexpr auto MASK_TEXTURE_INDEX = 1u; ///< The Index for mask texture
+
+DALI_INIT_TRACE_FILTER(gTraceFilter, DALI_TRACE_IMAGE_PERFORMANCE_MARKER, false);
} // namespace
namespace Dali
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
+
// Note that RemoveQueue is not be changed during Remove().
for(auto&& textureId : mRemoveQueue)
{
Remove(textureId);
}
}
+
+#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();
}
}
}
}
+
mLoadQueue.Clear();
}