X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Finternal%2Fupdate%2Fnodes%2Fnode.cpp;h=47318971e72569121bcd9d218bd8d647e728f313;hb=a17c4357f76f24d334fccde990de4daebf43e164;hp=1a06b8d3dd76bb7fd5a57230451de3b97f6ebb3d;hpb=bf29cb32a057dbdfa37226c36295b918154474cb;p=platform%2Fcore%2Fuifw%2Fdali-core.git diff --git a/dali/internal/update/nodes/node.cpp b/dali/internal/update/nodes/node.cpp old mode 100644 new mode 100755 index 1a06b8d..4731897 --- a/dali/internal/update/nodes/node.cpp +++ b/dali/internal/update/nodes/node.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017 Samsung Electronics Co., Ltd. + * Copyright (c) 2018 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -37,7 +37,7 @@ int gNodeCount =0; // Called when the process is about to exit, Node count should be zero at this point. void __attribute__ ((destructor)) ShutDown(void) { -//DALI_ASSERT_DEBUG( (gNodeCount == 0) && "Node memory leak"); +DALI_ASSERT_DEBUG( (gNodeCount == 0) && "Node memory leak"); } #endif } @@ -99,6 +99,7 @@ Node::Node() mExclusiveRenderTask( NULL ), mChildren(), mClippingDepth( 0u ), + mScissorDepth( 0u ), mDepthIndex( 0u ), mRegenerateUniformMap( 0 ), mDirtyFlags( AllFlags ), @@ -309,11 +310,8 @@ int Node::GetDirtyFlags() const return flags; } -void Node::ResetDefaultProperties( BufferIndex updateBufferIndex ) +void Node::ResetDirtyFlags( BufferIndex updateBufferIndex ) { - mVisible.ResetToBaseValue( updateBufferIndex ); - mColor.ResetToBaseValue( updateBufferIndex ); - mDirtyFlags = NothingFlag; } @@ -359,22 +357,6 @@ void Node::RecursiveDisconnectFromSceneGraph( BufferIndex updateBufferIndex ) } // namespace SceneGraph -template <> -void OwnerPointer::Reset() -{ - if( mObject != NULL ) - { - Dali::Internal::SceneGraph::Node::Delete( mObject ); - mObject = NULL; - } -} - } // namespace Internal -template <> -void OwnerContainer::Delete(Dali::Internal::SceneGraph::Node* pointer) -{ - Dali::Internal::SceneGraph::Node::Delete( pointer ); -} - } // namespace Dali