react-native/Libraries/CustomComponents/NavigationExperimental
Adam Comella 54beee2616 Android: Reduce overdraw layers by hiding cards when they are not visible
Summary:
Cards which are not visible because another card is occluding them are still being rendered by Android resulting in overdraw. This results in wasted GPU time because some pixels are drawn multiple times. This change reduces overdraw by changing the opacity of occluded cards to 0.

This bug was found using the tools described in Android's overdraw docs: https://developer.android.com/topic/performance/rendering/overdraw.html

**Test plan (required)**

This change is being used in my team's app.

Adam Comella
Microsoft Corp.
Closes https://github.com/facebook/react-native/pull/10908

Differential Revision: D4175758

Pulled By: ericvicenti

fbshipit-source-id: 4bfac7df16d2a7ea67db977659237a9aa6598f87
2016-11-14 08:59:24 -08:00
..
assets Rework the NavigationHeader 2016-03-21 22:07:26 -07:00
NavigationAnimatedValueSubscription.js Implements `renderHeader` for legacy navigator. 2016-03-10 17:17:21 -08:00
NavigationCard.js Clean unused import modules. 2016-10-16 11:13:40 -07:00
NavigationCardStack.js Enable native animations when possible 2016-10-19 15:28:44 -07:00
NavigationCardStackPanResponder.js Fix NavigationCardStackPanResponder to work with native animations 2016-11-04 20:43:43 -07:00
NavigationCardStackStyleInterpolator.js Android: Reduce overdraw layers by hiding cards when they are not visible 2016-11-14 08:59:24 -08:00
NavigationHeader.js Cleanup: Prefer `React.Element` over `React$?Element` 2016-10-14 08:59:37 -07:00
NavigationHeaderBackButton.js Provide RTL support in NavigationCardStack 2016-08-19 08:43:39 -07:00
NavigationHeaderStyleInterpolator.js Provide RTL support in NavigationCardStack 2016-08-19 08:43:39 -07:00
NavigationHeaderTitle.js Reverted commit D4027388 2016-10-16 04:13:42 -07:00
NavigationPagerPanResponder.js Cleanup: Remove `@typechecks` 2016-10-12 19:28:42 -07:00
NavigationPagerStyleInterpolator.js Provide RTL support for new Navigator -- Make RTL works in NUX 2016-07-11 20:58:32 -07:00
NavigationPointerEventsContainer.js Reverted commit D4027388 2016-10-16 04:13:42 -07:00