MCPcopy Create free account
hub / github.com/AshampooSystems/boden / _rootViewDisposed

Method _rootViewDisposed

framework/ui/platforms/android/src/WindowCore.cpp:115–131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113 }
114
115 void WindowCore::_rootViewDisposed(const java::Reference &javaRef)
116 {
117 // this may be called by the garbage collector, so it might be
118 // in an arbitrary thread. That means that the root view
119 // registry we get might not be the one that actually owns the
120 // reference. In that case the object will not be removed from
121 // the registry. But that is OK: the registry will notice the
122 // next time it tries to access the root view and then it will
123 // be removed.
124 getRootViewRegistryForCurrentThread().remove(javaRef);
125
126 auto windowCoreList = getWindowCoreListFromRootView(javaRef);
127
128 for (const auto &windowCore : windowCoreList) {
129 windowCore->rootViewDisposed();
130 }
131 }
132
133 void WindowCore::_rootViewSizeChanged(const java::Reference &javaRef, int width, int height)
134 {

Callers

nothing calls this directly

Calls 2

rootViewDisposedMethod · 0.80
removeMethod · 0.45

Tested by

no test coverage detected