Commit Graph

25012 Commits

Author SHA1 Message Date
Ilya Laktyushin
80225450da no message 2018-07-18 06:54:47 +03:00
Adlai Holler
9958aac5de Pin OCMock version to 3.4.1 because 3.4.2 has issues (#1038) 2018-07-17 19:51:05 -07:00
Andrew Yates
cf78dc6d84 Fix & update ASCollectionNode constrained size doc. (#1037) 2018-07-17 19:03:51 -07:00
subhransu mohanty
8779be1e9f lottie/example: removed bad polystar sample file
Change-Id: If03001ace0dfbb0a3f359933dfdd8c3a71c0a15d
2018-07-18 09:18:08 +09:00
subhransu mohanty
007ad71a39 lottie/example: add ux sample files
Change-Id: I7b632fa515411becc26f07dced2cdcc30a9f21cd
2018-07-18 09:14:47 +09:00
Grishka
5380aaba0d 2.2
- Refactored audio I/O to allow sharing a common context between input and output, for those OSes that require this
- Rewritten periodic operation handling to use a "run loop" thingy instead of an ugly loop formerly known as tick thread
- Fixed a bunch of compiler warnings (closes #13)
- Added automake so you no longer need to use the GYP file for standalone builds (closes #43)
2018-07-17 19:48:21 +03:00
Hermet Park
1707193e15 vector: clean up single, double-decision comparison
Change-Id: I9ed37192c9c1236103aeeb7f239bbae2dabe6368
2018-07-17 10:41:52 +00:00
Hermet Park
5c0a4f4414 player: update seek behavior.
1. set default position 0
2. renamed to setPos()
3. add getter()

Change-Id: Ibf4038f666e686ff00d17066c012e7fb2d8e2709
2018-07-17 10:19:21 +00:00
subhransu mohanty
ce0d4af58b lottie/example: added a new example to test ux sample images
Change-Id: Ife2496e90c56e1facb6b83b7bc03b25445c6a018
2018-07-17 10:07:24 +00:00
subhransu mohanty
8c4ed8b5e2 lottie/example: remove the evas object when lottivew gets destroyed.
Change-Id: Ic14ab134b42377200f439b9a7c50cb654221e7e4
2018-07-17 10:07:20 +00:00
Hermet Park
4961f33105 loader: replace to logging system.
Change-Id: I3c81a2c27a0df1e68b1281b0a79d827ada4f11a1
2018-07-17 09:59:17 +00:00
Hermet Park
2ed97dc0dc player: return as soon as possible.
We need to take account of user side, not internal ones.

Change-Id: Ic7bccc343c771870d10b25fc7dec01217a1d4e35
2018-07-17 09:58:36 +00:00
Hermet Park
3ee7184b9d player: remove missing member functions.
Change-Id: I805e8cfcb99f972019faa88b082948357865a74e
2018-07-17 09:57:23 +00:00
Hermet Park
aa3008c3fc player: remove constructor that accepts functional arguments.
it's not good usage than explicitly function call by users,
if the function is possibly failed.

Change-Id: I0e008093f6627ff24e8bc1d2e9ce0979dcca57bd
2018-07-17 09:54:14 +00:00
subhransu mohanty
ad76a433c7 lottie/example: move resourcelist generation to evasapp class for reuse.
Change-Id: If96683fe079a6484195b87c2fdd96c385114af12
2018-07-17 17:17:43 +09:00
subhransu mohanty
0347a9677f lottie/example: updated evasapp to handle keyevent propagation.
Change-Id: Iecc3479ef011e64e113a50f3914676e0a6341f49
2018-07-17 13:58:51 +09:00
subhransu mohanty
8966564ec8 lottie: Added default coding style file of clang-format.
We can modify this file according to tizen coding guideline and
    then run the clang-format tool on the source tree which will do auto formatting.
    clang-format -style=file -i filename

Change-Id: I396e3da778264e822602ab72b7a06039c6fca0a3
2018-07-17 04:24:10 +00:00
Adlai Holler
cf810acaa3 Fix the bug I introduced in #1030 (#1035) 2018-07-16 20:43:58 -07:00
subhransu mohanty
4f0d525e48 lottie: removed dead code.
Change-Id: I3be0e0d9e1d52d76d7be1ce40e7e901d26c8d772
2018-07-17 10:18:58 +09:00
subhransu mohanty
6113953d7d lottie/mask: refactored mask drawing to take care of nested layer.
Change-Id: I287d27bcdebb6eda43243e6514bc1167b1e86dbf
2018-07-17 10:12:26 +09:00
Ilya Laktyushin
230284c4df no message 2018-07-16 22:14:34 +03:00
Adlai Holler
6ed5ba29f8 Turn off exceptions to reduce binary size (-600KB for arm64) (#1033)
* Turn off exceptions to reduce binary size

* Changelog
2018-07-16 09:38:12 -07:00
subhransu mohanty
a798a8429f lottie/example: fixed layout issue.
Change-Id: Id8795b63d13cca081d383f4e1303b990bdb723be
2018-07-16 12:20:30 +00:00
subhransu mohanty
c0c5621b53 lottie/optimization: update the layer item only when it has change.
Change-Id: If62c796f18ebea949fe598f0f5890f09bd8a42b8
2018-07-16 12:19:56 +00:00
subhransu mohanty
893e2ab5e5 lottie: fix issue of layer static property updation.
Layer can have a parent as well as can be part of the precomp layer.
so take both layers static property into consideration while updating the static property.

Change-Id: I59db01a596977896ab1e9c131ee3ff28e694ff0b
2018-07-16 12:19:20 +00:00
subhransu sekhar mohanty
9824bafdf3 vector: port radial drawing implementation from ector library.
Change-Id: I0885d2493a19f71bc82ecf9d03268539a2c98bec
2018-07-16 12:17:28 +00:00
subhransu sekhar mohanty
13ab97b2a0 lottie/vector: move all vector objects to its own namesapce
Change-Id: I1f7ebc743b45d2ae0857f5d645ca1495e382b3c3
2018-07-16 12:17:13 +00:00
subhransu mohanty
a4710cb359 lottie/vector: fixed typo issue.
Change-Id: I6e5d811b3f216daff1dbf5ab73d3c2fb97872e56
2018-07-16 14:32:44 +09:00
subhransu sekhar mohanty
5c771a708f vector: convert radial gradient parameter from lottie space to vector space.
Change-Id: I1894dd03eb0ccd0266fa098eaaae4aa4bf1e1d57
2018-07-16 03:55:46 +00:00
subhransu sekhar mohanty
d0cea18a71 lottie/example: disable default building of example
to enable use meson -Dexample=true build while configuring meson.
or meson configure -Dexample=true in the build directory.

Change-Id: If267e6883fb866a741bf18dbfedd2a7782e21df5
2018-07-16 03:54:50 +00:00
subhransu mohanty
ed69eed653 lottie/player: fixed the regression in playtime() api.
Change-Id: I1ce8fc84cb75dbb6a929d9720adc5c57366f35fa
2018-07-16 12:22:12 +09:00
Hermet Park
cb52a637aa lottieplayer: add exceptions
Change-Id: I03de73851867e78de3231131ac92154ca39c3dec
2018-07-16 12:07:42 +09:00
Hermet Park
79aa9abfa5 lottieplayer: remove framerate function.
One of unnecesary functionalities.
Please add this when it really needs.

Change-Id: I1fed313df10c15ea4aca2faa3b15c51154b07f17
2018-07-16 12:07:42 +09:00
Hermet Park
ea434398c7 lottieloader: file path for debug info.
Change-Id: I551ef127032ac2a2dda36bb14b0bd5ffa2f5762e
2018-07-16 12:07:42 +09:00
Adlai Holler
f2912ecb48 Update lock-checking flag logic (#1032) 2018-07-15 19:57:12 -07:00
Adlai Holler
0b9f12716e Remove NSMutableArray for retaining sublayout elements (#1030)
* Remove NSMutableArray for retaining sublayout elements

* Kick the CI

* Kick the CI again

* Smash that CI button

* Murder the CI
2018-07-15 18:41:23 -07:00
Adlai Holler
5cad23b925 Split framework dependencies into separate subspecs to reduce binary size and dynamic linking time when they're not needed (#1028) 2018-07-14 11:10:19 -07:00
Huy Nguyen
0dc97fbb2f Stricter locking assertions (#1024)
- Rename `ASDisplayNodeAssertLockUnownedByCurrentThread` to `ASAssertUnlocked`, and `ASDisplayNodeAssertLockOwnedByCurrentThread` to `ASAssertLocked` -> shorter and hopefully easier to distinguish between the two.
- Add assertions to `_locked_` and `_u_` (i.e "unlocked") methods.
- Turn `CHECK_LOCKING_SAFETY` flag on by default. After #1022 and #1023, we're in a good shape to actually enforce locked/unlocked requirements of internal methods. Our test suite passed, and we'll test more at Pinterest after the sync this week.
- Fix ASVideoNode to avoid calling `play` while holding the lock. That method inserts a subnode and must be called lock free.
- Simplify `_loaded(node)` to only nil-check `_layer` because regardless of whether the node is view or layer backed, the layer should always be set if loaded. Use it throughout.
- Other minor changes.
2018-07-13 14:58:16 -07:00
huang-kun
8cd123b0de Add an introduction for ASCornerLayoutSpec in layout2-layoutspec-types.md (#1021) 2018-07-13 13:09:59 -07:00
Adlai Holler
af7f71f92d Address warnings in Xcode >= 9.3 about using %zd for NSInteger (#1026) 2018-07-13 11:56:54 -07:00
Kevin
8986838b48 Add move detection and support to ASLayoutTransition (#1006)
* Add move detection and support to ASLayoutTransition

...and NSArray+Diffing.
Add some tests.

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update ASLayout+IGListKit.h

* Update ASLayout+IGListKit.mm

* Use std collections to avoid NSNumber boxing

* Update ASLayoutTransition.mm

* Code review updates.

* Use `unordered_multimap` on stack instead of unordered_map<id,queue> on heap
* Remove notFound BOOL (use NSNotFound sentinel value) and put some vars inside the if (insertions/moves) loop
* Don't copy defaultCompare block (redundant under ARC)
* Whitespace
* Remove unneeded mutableCopy-s in ArrayDiffingTests

* Code review updates.

* Type _subnodeMoves pair.first to ASDisplayNode * instead of id
* C++ enumeration
* unowned refs for adding previousLayout nodes to _subnodeMoves
* Remove unreleated ASDynamicCast that is probably right though

* Add commentary to NSArray+Diffing.h; make multimap elements unowned

* Use std::make_pair, optimize ASLayout+IGListKit

* Oops I thought I had added these headers but nope

* Simplify simplify

* Diff subnodes instead of sublayouts

* Another randomized test with actual ASLayouts
2018-07-13 10:19:03 -07:00
subhransu mohanty
90270aa5af lottie/parser : Fixed proper parsing of opacity stops for gradient.
Change-Id: I91a2a8f99c253fa0478ec8e8ffc76d5313fafa97
2018-07-13 16:34:24 +09:00
Adlai Holler
7c1aee7315 Fix i386 build by providing fallbacks to thread_local variables (#1025) 2018-07-12 21:09:24 -07:00
subhransu mohanty
e7726056b3 lottie/model: Fixed hold interpolation issue.
Change-Id: I0db56ec46a9f6fec04311d9c96dcea680e29ab5b
2018-07-13 11:26:17 +09:00
Michael Schneider
763332f2a7 Add showsHorizontal(Vertical)ScrollIndicator property applying from pending state (#1016) 2018-07-12 15:39:02 -07:00
Ilya Laktyushin
e42d7f427e no message 2018-07-12 23:57:46 +03:00
Huy Nguyen
814fc382c7 Make sure -_completePendingLayoutTransition is called without the node's instance lock #trivial (#1023)
This is because committing the layout transition (aka `-_completeLayoutTransition:`) results in subnode insertions and removals which must be called lock-free.
2018-07-12 11:26:26 -07:00
Huy Nguyen
5ffcd405c6 Fix misleading/scary stack trace shown when an assertion occurs during node measurement (#1022)
- Currently, there is a pair of mutex unlock and unlock that wraps around `-_u_measureNodeWithBoundsIfNecessary:` in `__layout`. That is because this method must be called without the lock.
- When an assertion occurs within that method, the runtime bails early without reacquire the lock (so the lock is free now). However, the runtime then hits the end of the outmost mutex locker scope and tries to release the lock that it no longer holds, causing another assertion in ASThread to be shown to user (#932). This makes it extremely hard to idenfity the root assertion.
- Fix by replacing the unlock/lock pair with a mutex unlocker.
2018-07-12 11:25:35 -07:00
subhransu mohanty
7501ff54a6 lottie-player : Initial draft for lottie-player library
Change-Id: I8019e13863ef635fc011f0e7b82c692eaa01201d
2018-07-11 10:51:01 +00:00
Sergey Pronin
a08d2210cf [IGListKit] Adds missing UIScrollViewDelegate method to DataSource proxy (#1015)
* Adds missing UIScrollViewDelegate method to IGListKit proxy implementation

* Updates CHANGELOG
2018-07-10 11:16:13 -07:00