mirror of
https://github.com/status-im/react-native.git
synced 2025-01-14 03:26:07 +00:00
[react_native] JS files from D2001617: [react_native] Add support for rendering to hardware textures on Android
This commit is contained in:
parent
0e67e33534
commit
fde476f4e5
@ -136,6 +136,20 @@ var View = React.createClass({
|
||||
* (or one of its superviews).
|
||||
*/
|
||||
removeClippedSubviews: PropTypes.bool,
|
||||
|
||||
/**
|
||||
* Whether this view should render itself (and all of its children) into a
|
||||
* single hardware texture on the GPU.
|
||||
*
|
||||
* On Android, this is useful for animations and interactions that only
|
||||
* modify opacity, rotation, translation, and/or scale: in those cases, the
|
||||
* view doesn't have to be redrawn and display lists don't need to be
|
||||
* re-executed. The texture can just be re-used and re-composited with
|
||||
* different parameters. The downside is that this can use up limited video
|
||||
* memory, so this prop should be set back to false at the end of the
|
||||
* interaction/animation.
|
||||
*/
|
||||
renderToHardwareTextureAndroid: PropTypes.bool,
|
||||
},
|
||||
|
||||
render: function() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user