Promote grandchildren of certain views are Views

Reviewed By: astreet

Differential Revision: D3161232

fbshipit-source-id: ea313d513bd7567e32f18765d479ba0538f2efbf
This commit is contained in:
Ahmed El-Helw authored and Facebook Github Bot 6 committed 2016-06-02 14:13:28 -07:00
1 parent 9a6e61426d
commit 68c11e55ee
1 file changed
+9
@@ -77,4 +77,13 @@ public abstract class ViewGroupManager <T extends ViewGroup>
return false;
}
/**
* Returns whether or not this View type should promote its grandchildren as Views. This is an
* optimization for Scrollable containers when using Nodes, where instead of having one ViewGroup
* containing a large number of draw commands (and thus being more expensive in the case of
* an invalidate or re-draw), we split them up into several draw commands.
*/
public boolean shouldPromoteGrandchildren() {
return false;
}
}