384 Commits

Author SHA1 Message Date
Bin Liu
9e53dcd402 Fix allocatedNodes Subarray to match indexPaths subarray 2016-02-10 01:35:07 -08:00
Rahul Malik
3e5daf4ccd Update data source protocols to make synchronous node creation api methods optional. 2016-02-09 22:47:43 -08:00
Michael Schneider
28207c678d Remove ASRangeHandler protocol with all classes that implement it
With the move to the new ASRangeController we don't need the ASRangeHandler protocol anymore
2016-02-08 12:57:05 -08:00
Michael Schneider
fa2a058585 Rename ASCollectionViewLayoutControllerBeta to ASCollectionViewLayoutController 2016-02-07 15:27:45 -08:00
Michael Schneider
03536ddefd Remove shouldUpdateForVisibleIndexPaths
This method can be removed as ASRangeControllerBeta is the main ASRangeController now
2016-02-07 15:03:24 -08:00
Michael Schneider
026761c610 Rename ASRangeControllerBeta to ASRangeController and use exclusively 2016-02-07 15:03:24 -08:00
Michael Schneider
5d474bcb1a Remove ASDisplayNode -shouldUseNewRenderingRange method and ASRangeControllerStable class 2016-02-07 15:03:23 -08:00
Rahul Malik
5c86eafe8f Add node-block api to ASPagerNodeProxy 2016-02-05 15:59:07 -08:00
Huy Nguyen
a9d91957b6 Fix ASRangeControllerBeta causing build errors 2016-02-04 17:29:36 -08:00
appleguy
1655d0a0c7 Merge pull request #1178 from nguyenhuy/range_tuning_params_follow_up
More on range mode and range controller
2016-02-04 16:59:42 -08:00
Rahul Malik
c4f489b074 Address comments. 2016-02-04 16:56:29 -08:00
Huy Nguyen
a7df20d120 Update range mode selection logic in ASRangeControllerBeta 2016-02-04 16:54:31 -08:00
Huy Nguyen
e5e34313ed ASRangeController (stable) doesn't handle visible range now because the range is gone 2016-02-04 16:52:33 -08:00
Huy Nguyen
dc93192b87 Address Levi' comment: better method name in ASRangeControllerBeta 2016-02-04 16:52:33 -08:00
Huy Nguyen
8c83e1a78a Avoid asking for interface state multiple times in ASRangeControllerBeta 2016-02-04 16:52:33 -08:00
Huy Nguyen
f09024556b Switch to minimum mode when the node is no longer visible 2016-02-04 16:52:33 -08:00
Huy Nguyen
260879db7d Improve documentation of ASLayoutRangeMode 2016-02-04 16:52:33 -08:00
Huy Nguyen
b3b28b0df9 Reuse visible index paths of when tuning params of a certain range type is zero 2016-02-04 16:52:30 -08:00
Huy Nguyen
175b9da251 Remove visible range type 2016-02-04 15:44:47 -08:00
Huy Nguyen
fda9efafa6 Add timestamp to notifications of rendering engine and avoid race conditions in ASRangeControllerBeta
- Accurately remove notification observer
2016-02-04 15:44:44 -08:00
Huy Nguyen
3c135788cb Less work when RangeControllerLoggingEnabled is false 2016-02-04 14:15:07 -08:00
Rahul Malik
521c3fa1c1 Move ASCellNode allocation off the main thread by the addition of a node block
API in ASDataController. Move allocations and loaded node layouts to occur
during batch layout phase.
2016-02-04 10:38:59 -08:00
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