projects
/
platform
/
core
/
uifw
/
lottie-player.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9e30731
)
lottie/vector: take the fast path in addPath() api only when path is null.
14/194114/2
author
subhransu mohanty
<sub.mohanty@samsung.com>
Thu, 29 Nov 2018 06:38:40 +0000
(15:38 +0900)
committer
Hermet Park
<chuneon.park@samsung.com>
Fri, 30 Nov 2018 04:10:36 +0000
(
04:10
+0000)
This patch is to avoid unnecessary allocation and deallocation when the path is empty but not null during addPath
Change-Id: Iab3820419257fbbecaddc93d73e5868b1889e6c5
src/vector/vpath.h
patch
|
blob
|
history
diff --git
a/src/vector/vpath.h
b/src/vector/vpath.h
index 8cec2d744bd6f90d19920bb768f38d2c3569aac9..f33610330a9ea80b7fc9ef34caf56898430d404d 100644
(file)
--- a/
src/vector/vpath.h
+++ b/
src/vector/vpath.h
@@
-228,7
+228,7
@@
inline void VPath::addPath(const VPath &path)
{
if (path.empty()) return;
- if (
empty
()) {
+ if (
null
()) {
*this = path;
} else {
d.write().addPath(path.d.read());