mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 21:53:41 +00:00
loader_mgr: FileTypes order changed
FileType order was changed in tvgLoaderMgr.h to move Tvg at the beginning. When raw data loading [LoaderMgr::loader(data, size)], loaders are tried one by one (in order according to the FileType enum) until the correct loader is found. When using EFL and load edj, multiple loader(data, size) with tvg data may be called. This change should improve performance in that case.
This commit is contained in:
parent
fa15b9a2af
commit
88a85c68fa
1 changed files with 1 additions and 1 deletions
|
@ -24,7 +24,7 @@
|
|||
|
||||
#include "tvgLoader.h"
|
||||
|
||||
enum class FileType { Svg = 0, Raw, Png, Tvg, Unknown };
|
||||
enum class FileType { Tvg = 0, Svg, Raw, Png, Unknown };
|
||||
|
||||
struct LoaderMgr
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue