diff --git a/inc/thorvg.h b/inc/thorvg.h index ecba75c4..1549df49 100644 --- a/inc/thorvg.h +++ b/inc/thorvg.h @@ -1402,9 +1402,11 @@ public: * @retval Result::MemoryCorruption When casting in the internal function implementation failed. * @retval Result::Unknown Others. * - * @BETA_API */ - static Result save(std::unique_ptr paint, const std::string& path) noexcept; + Result save(std::unique_ptr paint, const std::string& path) noexcept; + Result sync() noexcept; + + static std::unique_ptr gen() noexcept; _TVG_DECLARE_PRIVATE(Saver); }; diff --git a/src/examples/images/test.tvg b/src/examples/images/test.tvg index 3deaea69..9fcda9e8 100644 Binary files a/src/examples/images/test.tvg and b/src/examples/images/test.tvg differ diff --git a/src/lib/tvgSaver.cpp b/src/lib/tvgSaver.cpp index 761c5712..1768ca42 100644 --- a/src/lib/tvgSaver.cpp +++ b/src/lib/tvgSaver.cpp @@ -59,3 +59,16 @@ Result Saver::save(std::unique_ptr paint, const std::string& path) noexce delete p; return Result::Unknown; } + + +Result Saver::sync() noexcept +{ + //TODO: + return Result::Success; +} + + +unique_ptr Saver::gen() noexcept +{ + return unique_ptr(new Saver); +} \ No newline at end of file