_AnimationManager* _AnimationManager::__pInstance = null;
_AnimationManager::_AnimationManager(void)
- : __root()
- , __mainRoot()
+ : __mainRoot()
, __renderRoot()
, __pCurrentTransaction(null)
, __pCurrentTransactionExceptGroup(null)
__mainRoot.Release();
__renderRoot.Release();
- __root.Release();
delete __pLock;
__committedList.Construct();
- __root.Construct();
__mainRoot.Construct();
__renderRoot.Construct();
- __root.__pRootTransaction->AddChild(*__mainRoot.__pRootTransaction);
- __root.__pRootTransaction->AddChild(*__renderRoot.__pRootTransaction);
-
__pDefaultTransactionEventListener = new (std::nothrow) _TransactionEventListener();
SysTryCatch(NID_UI_ANIM, __pDefaultTransactionEventListener != null, r = E_OUT_OF_MEMORY, E_OUT_OF_MEMORY,
"[E_OUT_OF_MEMORY] Memory allocation failed. Failed to create default transaction event listener.");
__mainRoot.Release();
__renderRoot.Release();
- __root.Release();
return r;
}
if (__pCurrentTransaction == null)
{
- pNode = new (std::nothrow) _TransactionNode(*__root.__pRootTransaction);
+ pNode = new (std::nothrow) _TransactionNode();
SysTryReturn(NID_UI_ANIM, (pNode != null), -1, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory allocation failed. Failed to create _TransactionNode.");
result r = GetLastResult();
_TransactionNode::_TransactionNode(void)
: __id(-1)
, __pParent(null)
- , __pRoot(this)
, __pDefaultListener(null)
, __pListener(null)
, __isImplicitAnimationEnabled(true)
_TransactionNode::_TransactionNode(const _TransactionNode& node)
: __id(-1)
, __pParent(null)
- , __pRoot(node.__pRoot)
, __pDefaultListener(null)
, __pListener(null)
, __isImplicitAnimationEnabled(node.__isImplicitAnimationEnabled)