projects
/
platform
/
core
/
graphics
/
tizenvg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0570b66
)
wasm: saveTvg add compress option
author
Michal Maciola
<m.maciola@samsung.com>
Wed, 13 Oct 2021 09:12:52 +0000
(11:12 +0200)
committer
JunsuChoi
<jsuya.choi@samsung.com>
Fri, 15 Oct 2021 00:42:27 +0000
(09:42 +0900)
src/wasm/thorvgwasm.cpp
patch
|
blob
|
history
diff --git
a/src/wasm/thorvgwasm.cpp
b/src/wasm/thorvgwasm.cpp
index
9f55423
..
4ec5cb5
100644
(file)
--- a/
src/wasm/thorvgwasm.cpp
+++ b/
src/wasm/thorvgwasm.cpp
@@
-136,7
+136,7
@@
public:
return val(typed_memory_view(2, mOriginalSize));
}
- bool saveTvg()
+ bool saveTvg(
bool compress
)
{
mErrorMsg = "None";
@@
-146,7
+146,7
@@
public:
mErrorMsg = "Saving initialization failed";
return false;
}
- if (saver->save(move(duplicate), "file.tvg") != tvg::Result::Success) {
+ if (saver->save(move(duplicate), "file.tvg"
, compress
) != tvg::Result::Success) {
mErrorMsg = "Tvg saving failed";
return false;
}