X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Finternal%2Fupdate%2Fnodes%2Fscene-graph-layer.cpp;h=db6e6f0986a1edeb15da32939e9c76638f99e059;hb=7cf931b2a8ab40cc1f673bc319e4cae5d801ce40;hp=46bb14cb00ddf998d64eea6eda5a155e0f18ddca;hpb=8b385f406c7d15a0b0927b8ad9c382197fa3df7f;p=platform%2Fcore%2Fuifw%2Fdali-core.git diff --git a/dali/internal/update/nodes/scene-graph-layer.cpp b/dali/internal/update/nodes/scene-graph-layer.cpp old mode 100644 new mode 100755 index 46bb14c..db6e6f0 --- a/dali/internal/update/nodes/scene-graph-layer.cpp +++ b/dali/internal/update/nodes/scene-graph-layer.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016 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. @@ -31,15 +31,16 @@ namespace Internal namespace SceneGraph { -SceneGraph::Layer* Layer::New() +SceneGraph::Layer* Layer::New( unsigned int id ) { // Layers are currently heap allocated, unlike Nodes which are in a memory pool // However Node::Delete( layer ) will correctly delete a layer / node depending on type - return new Layer(); + return new Layer( id ); } -Layer::Layer() -: mSortFunction( Internal::Layer::ZValue ), +Layer::Layer( unsigned int id ) +: Node( id ), + mSortFunction( Internal::Layer::ZValue ), mClippingBox( 0,0,0,0 ), mLastCamera( NULL ), mBehavior( Dali::Layer::LAYER_2D ), @@ -113,15 +114,6 @@ void Layer::ClearRenderables() } // namespace SceneGraph -template <> -void OwnerPointer::Reset() -{ - if( mObject != NULL ) - { - Dali::Internal::SceneGraph::Node::Delete( mObject ); - mObject = NULL; - } -} } // namespace Internal } // namespace Dali