Drop JSC code on background

Reviewed By: lexs

Differential Revision: D3311037

fbshipit-source-id: e46559108c51f1cd163ed5c557d23c21f696ef88
This commit is contained in:
Charles Dick
2016-05-26 11:13:42 -07:00
committed by Facebook Github Bot 8
parent bdab834036
commit f948662013
19 changed files with 102 additions and 1 deletions
+6
View File
@@ -226,6 +226,12 @@ void NativeToJsBridge::stopProfiler(const std::string& title, const std::string&
});
}
void NativeToJsBridge::handleMemoryPressureUiHidden() {
runOnExecutorQueue(m_mainExecutorToken, [=] (JSExecutor* executor) {
executor->handleMemoryPressureUiHidden();
});
}
void NativeToJsBridge::handleMemoryPressureModerate() {
runOnExecutorQueue(m_mainExecutorToken, [=] (JSExecutor* executor) {
executor->handleMemoryPressureModerate();