Mira Grudzinska
f0d8ab4274
utils: math functions moved from lib to utils
2023-08-05 11:49:36 +09:00
Hermet Park
a1f0b06f41
common array: revise code.
...
maintain code with an optimial size.
2023-07-25 19:57:12 +09:00
Hermet Park
192d29fa8a
common array: enhance the features.
...
Add a push() method that appends a whole array instance.
2023-07-25 19:57:12 +09:00
Hermet Park
d99d8a565f
common array: fix a wrong size.
2023-07-18 15:09:21 +09:00
Hermet Park
5528eb9831
common array: code chores.
...
remove duplicated logic
this also changes the default grow size: N*2 -> N+(N/2)
2023-07-17 20:14:58 +09:00
Hermet Park
b81b23af62
common array: allow it to modify values.
2023-07-05 15:17:04 +09:00
Hermet Park
95ebbe4339
common array: + copy constructor
...
introduce the copy constructor to prevent duplicated code.
2023-07-04 01:09:23 +09:00
Hermet Park
1c824ed191
common: code refactoring
...
Replace individual array implementation with a common feature.
2023-07-03 14:20:05 +09:00
Vincent Torri
dabd15c4c5
tvgArray: return a const reference for const methods
2023-06-30 17:18:04 +09:00
Hermet Park
b876427325
common array: revise the interface.
...
Implement a pair of access methods: last() and first().
2023-06-29 20:40:16 +09:00
Hermet Park
4482664740
common array: ++enhance the usability.
...
+ end() which indicates the end of the data pointer.
2023-06-26 14:58:30 +09:00
Hermet Park
bd87f1398c
common array: ++enhance the usability.
...
add last() which indicates the last element pointer.
2023-06-23 16:49:39 +09:00
Hermet Park
9b3c34c3b1
updated copyright.
2023-01-14 13:48:11 +09:00
Hermet Park
f0141e63de
updated copyright date.
2022-01-12 14:08:48 +09:00
Hermet Park
2aa551e222
common array: + exception handling.
...
properly handle if the realloc() is failed.
@Isssue: https://github.com/Samsung/thorvg/issues/995
2021-11-08 12:28:17 +09:00
Hermet Park
2eb920beaf
tvg format: code refactoring #3
...
use the Array function instead of own implementation.
2021-07-20 13:31:25 +09:00
Hermet Park
480bd8376e
common array: -- sanitizer errors
...
runtime error: null pointer passed as argument 1, which is declared to never be null
@Issue: https://github.com/Samsung/thorvg/issues/543
2021-07-01 17:41:56 +09:00
Hermet Park
f0ecc670ef
common canvas: return FailedAllocation if it really failed at memory allocation.
...
This fixes SwCanvasBase Reservation Unit Test.
2021-06-07 20:04:39 +09:00
Hermet Park
1a7d41ce71
updated copyright
2021-03-23 14:31:58 +09:00
Hermet Park
1ed611386d
common sw_engine: code refactoring & stabilizing.
...
Apply tvg Array instead of std::vector
Also Fixed to compList in update() to passed by reference, not copying.
Also Fixed Composition Target memory leak
Here is the binary size result:
[libthorvg.so] 1785376 >> 1607416
[text] 121255 >> 118277
[data] 7792 >> 7736
[dec] 129119 >> 126085
2020-12-09 19:56:59 +09:00
Hermet Park
d4515d2732
common array: Introduce Array function to common.
...
This Array is promoted from SvgVector to use it widely in tvg.
It's similar with std::vector, we can use it instead of it.
Also, svg_loader replaced with it subsequently.
2020-12-09 15:29:22 +09:00