save and restore layers image when context is lost in Android

This commit is contained in:
2017-04-29 21:30:40 +01:00
parent 2e47ccb0c6
commit fa49d9ee09
17 changed files with 210 additions and 69 deletions

View File

@@ -612,3 +612,15 @@ bool LayoutManager::reload()
std::string path_copy = m_path;
return load(path_copy.c_str());
}
void LayoutManager::restore_context()
{
for (auto& node : m_layouts)
node.second->restore_context();
}
void LayoutManager::clear_context()
{
for (auto& node : m_layouts)
node.second->clear_context();
}