X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Fpublic-api%2Frender-tasks%2Frender-task-list.cpp;h=e52e2f49a7e9becfde75cbf4ed5ca753e53e635a;hb=ea3b412daed65bbe6f1234763051fdcde0722fa2;hp=7bd754b3ce34d384be239d4162749bbec0401da0;hpb=b51494d57860c874def71664c637ac63a74389f4;p=platform%2Fcore%2Fuifw%2Fdali-core.git diff --git a/dali/public-api/render-tasks/render-task-list.cpp b/dali/public-api/render-tasks/render-task-list.cpp index 7bd754b..e52e2f4 100644 --- a/dali/public-api/render-tasks/render-task-list.cpp +++ b/dali/public-api/render-tasks/render-task-list.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015 Samsung Electronics Co., Ltd. + * Copyright (c) 2020 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. @@ -48,24 +48,31 @@ RenderTaskList& RenderTaskList::operator=(const RenderTaskList& rhs) return *this; } +RenderTaskList::RenderTaskList( RenderTaskList&& rhs ) = default; + +RenderTaskList& RenderTaskList::operator=( RenderTaskList&& rhs ) = default; + RenderTask RenderTaskList::CreateTask() { - return GetImplementation(*this).CreateTask(); + return RenderTask( GetImplementation(*this).CreateTask().Get() ); } void RenderTaskList::RemoveTask( RenderTask task ) { - GetImplementation(*this).RemoveTask( task ); + if( task ) // don't crash if called with empty task handle + { + GetImplementation(*this).RemoveTask( GetImplementation( task ) ); + } } -unsigned int RenderTaskList::GetTaskCount() const +uint32_t RenderTaskList::GetTaskCount() const { return GetImplementation(*this).GetTaskCount(); } -RenderTask RenderTaskList::GetTask( unsigned int index ) const +RenderTask RenderTaskList::GetTask( uint32_t index ) const { - return GetImplementation(*this).GetTask( index ); + return RenderTask( GetImplementation(*this).GetTask( index ).Get() ); } RenderTaskList::RenderTaskList( Internal::RenderTaskList* internal )