// http://www.apache.org/licenses/LICENSE-2.0/
//
// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an ”AS IS” BASIS,
+// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
void* _DisplayManager::__pWakeUpEventHandler = null;
bool _DisplayManager::__wakeUpEventAdded = false;
_DisplayManager* _DisplayManager::__pInstance = null;
+_DisplayManager::RestoreContextCallback _DisplayManager::__pRestoreContextCallback = null;
_DisplayManager::_DisplayManager(void)
: __roots()
{
_VisualElementImpl* pRootPresentationImpl = _VisualElementImpl::GetInstance(*pPresentationRoot);
-#ifdef OLD
- if (likely((pRootPresentationImpl->__childrenNeedsUpdateProps & ~_VisualElementImpl::HIERARCHY_PROPERTY_CONTENT) != 0) ||
-#else
if (likely(pRootPresentationImpl->__childrenNeedsUpdateProps) ||
-#endif
likely(pRootPresentationImpl->__pSharedData->NeedNativeReconfigure()) ||
unlikely(root.GetNeedsContentUpdate()) ||
unlikely(pPresentationRoot->GetNeedsContentUpdate()))
return E_SUCCESS;
}
+void
+_DisplayManager::SetRestoreContextCallback(RestoreContextCallback pRestoreContextCallback)
+{
+ __pRestoreContextCallback = pRestoreContextCallback;
+}
-
+void
+_DisplayManager::RestoreContext(void)
+{
+ if (__pRestoreContextCallback)
+ {
+ (*__pRestoreContextCallback)();
+ }
+}
}}} // Tizen::Ui::Animations