Huy Nguyen
19335d8c9e
Add rangeMode APIs
2016-02-02 11:58:18 -08:00
Huy Nguyen
69e674c1c8
Range controller registers to rendering engine and extern to full range if needed
2016-02-02 01:23:04 -08:00
Huy Nguyen
1145b6e40e
Better decision on when to use full range
2016-02-01 23:43:55 -08:00
Huy Nguyen
0b188c7a95
Add minimum tuning params
2016-02-01 16:24:19 -08:00
Huy Nguyen
b889d81de8
Don't pre-render cell nodes of collection view when it is not visible or not scrolling
2016-01-31 00:53:28 -08:00
Samuel Hsiung
39cd3afa0d
[AS(Table|Collection)View] make scrollDirection transform aware
2016-01-28 16:42:46 -08:00
Garrett Moon
48150668c6
Fix up build
2016-01-28 08:33:18 -08:00
Bin Liu
f6be279c60
Added more facilitator methods
2016-01-27 12:50:41 -08:00
Bin Liu
263bb311f2
expose beginUpdates and endUpdates
2016-01-27 10:50:42 -08:00
appleguy
f696eb7476
Merge pull request #1122 from knopp/_ASAsyncTransaction-operation-priority
...
[_ASAsyncTransaction] make priority a NSInteger with default to 0
2016-01-26 19:47:57 -08:00
Matej Knopp
da5f7eccd9
[_ASAsyncTransaction] make priority a NSInteger with default to 0
...
Signed-off-by: Matej Knopp <matej.knopp@gmail.com>
2016-01-27 00:37:27 +01:00
appleguy
d433205e5a
Merge pull request #1117 from knopp/_ASAsyncTransaction-operation-priority
...
[_ASAsyncTransaction] implement operation priority
2016-01-26 12:32:31 -08:00
Huy Nguyen
56c6bd681b
Revert "Revert commit 83aaa46, thus bring 2e4d716 back"
...
This reverts commit 209425c22ce84ecbb7ab631753ec8fc34dd9cbb0.
2016-01-26 12:05:02 -08:00
Matej Knopp
0a45bd9596
[_ASAsyncTransaction] implement operation priority
...
Signed-off-by: Matej Knopp <matej.knopp@gmail.com>
2016-01-26 15:31:40 +01:00
Matej Knopp
75abf07c6f
[_ASAsyncTransaction] tweak number of threads
...
Thread count is now 2 * activeProcessorCount, however during tracking it is decreased by 1
Signed-off-by: Matej Knopp <matej.knopp@gmail.com>
2016-01-26 15:18:16 +01:00
appleguy
8f41ddc8e0
Merge pull request #1090 from knopp/_ASAsyncTransaction-limit-spawned-threads
...
[_ASAsyncTransaction] limit number of spawned threads in a way that GCD will not with the semaphore.
2016-01-25 18:39:27 -08:00
appleguy
e37cc4394c
Merge pull request #1107 from nguyenhuy/improve_reload_data
...
[ASTableNode, ASCollectionNode] Optimize -reloadData's teardown of state (blow away UIKit perf!)
2016-01-25 18:38:53 -08:00
Huy Nguyen
209425c22c
Revert commit 83aaa46, thus bring 2e4d716 back
2016-01-24 23:38:05 -08:00
Scott Goodson
e6d5e2666c
[ASRangeControllerBeta] Scan all nodes after edit operations.
2016-01-24 18:42:02 -08:00
Matej Knopp
51e4476068
[ASRangeController] don't get index paths twice if tuning parameters are same
...
Signed-off-by: Matej Knopp <matej.knopp@gmail.com>
2016-01-24 23:41:46 +01:00
Scott Goodson
92ce6ce4d3
[ASRangeControllerBeta] Improve comments, code clarity, cache respondsToSelector:
2016-01-24 14:07:39 -08:00
Scott Goodson
351f4a9afc
Utilize NSMutableOrderedSet in ASRangeControllerBeta to ensure visible items are prioritized.
...
This also adopts Objective-C generics for the various collections in this class.
2016-01-24 13:11:15 -08:00
appleguy
ccbf38c72e
Merge pull request #1096 from facebook/pr/1059
...
[tvOS] Initial changes to support building AsyncDisplayKit for tvOS.
2016-01-23 12:28:43 -08:00
appleguy
ca27702aab
Merge pull request #952 from lappp9/ASVideoNode
...
[ASVideoNode] Basic Video node using AVPlayerLayer.
2016-01-23 11:02:57 -08:00
Scott Goodson
83aaa4637e
Revert "ASDataController now handles reloadData more efficiently and notify its delegate once instead of a series of deletes and inserts"
...
This reverts commit 2e4d716e0b65465d9c65b5821668c38e5fa956c9.
Possible issue with this commit.
2016-01-22 20:33:33 -08:00
appleguy
f7f468e5d1
Merge pull request #1093 from nguyenhuy/improve_reload_data
...
[ASDataController] Optimize reloadData to avoid performing deletions or insertions.
2016-01-22 13:34:37 -08:00
Bin Liu
1965018c46
attempt to fix build
2016-01-21 15:20:47 -08:00
Huy Nguyen
2e4d716e0b
ASDataController now handles reloadData more efficiently and notify its delegate once instead of a series of deletes and inserts
2016-01-21 11:21:21 -08:00
Bin Liu
726bc7d668
addressed comments
2016-01-21 11:14:00 -08:00
Matej Knopp
f906951b69
[_ASAsyncTransaction] limit number of spawned threads
...
Signed-off-by: Matej Knopp <matej.knopp@gmail.com>
2016-01-21 18:38:26 +01:00
Matej Knopp
057ce3dc35
[_ASAsyncTransaction] c++
...
Signed-off-by: Matej Knopp <matej.knopp@gmail.com>
2016-01-21 12:47:29 +01:00
Adlai Holler
e972059f23
Remove SpinLock because it's illegal in iOS
2016-01-19 10:28:04 -08:00
Luke Parham
d9559111a0
renamed nic cage sample, added redundancy for loading player in case its nil when visible, added video tests, disabled assert for new range controller
2016-01-14 02:39:36 -06:00
Scott Goodson
df10f8f19a
Check array size before accessing section - rare crash for improper data source use, de-escalated to messaging nil.
2016-01-14 00:25:53 -08:00
Adlai Holler
a19ba586f7
Revert change that seems to have caused internal inconsistency in range controller
2016-01-13 13:34:20 -07:00
Aaron Schubert
28b03e3a28
[tvOS] Expose UIFocusEnvironment Protocol methods to ASDisplayNode
2016-01-13 10:09:44 +00:00
Aaron Schubert
cc4f604ea3
[tvOS] Initial commit to make build run.
2016-01-12 14:43:30 +00:00
Scott Goodson
90a1bb2346
Ruthlessly improve efficiency in ASRangeControllerBeta.
...
- Use completedNodes directly, caching inner arrays and counts between loop iterations.
- Merge codepaths between the "entire self - table / collection" visible or invisible cases
- Ensure we do not trigger an assertion if a previous iteration's node is nil by the time
we try to reset its interfaceState.
2016-01-10 02:58:48 -08:00
Scott Goodson
0feaa2a368
Improvements to the efficiency of recursivelySetInterfaceState: and the beta range controller.
2016-01-10 02:40:47 -08:00
Scott Goodson
d45db5ac32
Disable creation of backing ASTable/CollectionNode for the *View varients (retain cycle).
2016-01-09 20:44:24 -08:00
Scott Goodson
bbfd08829f
Switch Tests to use ASRangeControllerBeta. Use NSSet instead of NSMutableSet.
2016-01-05 23:29:11 -08:00
Scott Goodson
d1c3894dbb
[ASRangeControllerBeta] Add tracking of all index paths that have .interfaceState set, ensure updating.
2016-01-05 23:17:54 -08:00
Scott Goodson
984fe43997
[ASRangeController] Inspect delegate's ASInterfaceState to delay preloading beyond viewport until visible.
2016-01-03 19:14:07 -08:00
Scott Goodson
25b6f29584
Introduce ASCollectionInternal file and create always-available ASCView -> ASCNode backpointer.
2016-01-01 23:36:00 -08:00
Scott Goodson
b273f358f5
[ASRangeController] Initial implementation of functional-style, ASInterfaceState-based range controller.
2016-01-01 00:48:44 -08:00
Scott Goodson
7a9cd1f930
[ASRangeController] Introduce totally rewritten range controller based on ASInterfaceState.
2015-12-31 17:59:59 -08:00
Scott Goodson
8f914f8430
Fix logic error in handling enablement of beta display range.
2015-12-31 15:38:32 -08:00
Scott Goodson
df9f433353
Prevent calling unsupported UICollectionViewDelegate methods (supplementary view appearance)
2015-12-31 00:21:20 -08:00
Scott Goodson
ffcddf36e2
Ensure that ASRangeController immediately removes any deleted nodes from its range state.
2015-12-30 22:42:11 -08:00
Scott Goodson
df3ce787f7
Ensure that the uncommon __unloadNode codepath does not unintentionally trigger node removal.
2015-12-29 23:11:33 -08:00