| 18 | : _attributesManager(attributesManager) {} |
| 19 | |
| 20 | GlobalViewFactories::~GlobalViewFactories() = default; |
| 21 | |
| 22 | void GlobalViewFactories::clearViewPools() { |
| 23 | std::vector<Ref<View>> pooledViews; |
| 24 | takePooledViews(pooledViews); |
| 25 | } |
| 26 | |
| 27 | void GlobalViewFactories::takePooledViews(std::vector<Ref<View>>& outViews) const { |
| 28 | // Destroying a view can be slow (a JNI call per view on Android), so it must not happen under |
| 29 | // _mutex, which getViewFactory() needs on the JS and preloader threads. |
nothing calls this directly
no test coverage detected