X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Finternal%2Fupdate%2Fnodes%2Fnode.cpp;h=48feb8dcf221e2118245fc24bcf8de69b01cbbb2;hb=01c39de261f6eb4e759c7a249e5d67dfef83bca2;hp=a785e3dd2d957f2c5528d7ccc0f2915fd1b5d318;hpb=e2ee93d144c63abb914c086281d09c40b213919f;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 a785e3d..48feb8d --- 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. @@ -55,9 +55,9 @@ const PositionInheritanceMode Node::DEFAULT_POSITION_INHERITANCE_MODE( INHERIT_P const ColorMode Node::DEFAULT_COLOR_MODE( USE_OWN_MULTIPLY_PARENT_ALPHA ); -Node* Node::New() +Node* Node::New( unsigned int id ) { - return new ( gNodeMemoryPool.AllocateRawThreadSafe() ) Node(); + return new ( gNodeMemoryPool.AllocateRawThreadSafe() ) Node( id ); } void Node::Delete( Node* node ) @@ -78,7 +78,7 @@ void Node::Delete( Node* node ) } } -Node::Node() +Node::Node( unsigned int id ) : mTransformManager( NULL ), mTransformId( INVALID_TRANSFORM_ID ), mParentOrigin( TRANSFORM_PROPERTY_PARENT_ORIGIN ), @@ -95,10 +95,12 @@ Node::Node() mWorldMatrix(), mWorldColor( Color::WHITE ), mClippingSortModifier( 0u ), + mId( id ), mParent( NULL ), mExclusiveRenderTask( NULL ), mChildren(), mClippingDepth( 0u ), + mScissorDepth( 0u ), mDepthIndex( 0u ), mRegenerateUniformMap( 0 ), mDirtyFlags( AllFlags ), @@ -309,11 +311,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 +358,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