/*
- * Copyright (c) 2023 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2025 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.
outBuffers.reserve(document.mBuffers.size());
if(!binaryChunkData.empty())
{
- BufferDefinition dataBuffer(binaryChunkData);
+ BufferDefinition dataBuffer(std::move(binaryChunkData));
outBuffers.emplace_back(std::move(dataBuffer));
}
/*
- * Copyright (c) 2024 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2025 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.
}
}
-void ModelNode::SetBlendShapeData(Scene3D::Loader::BlendShapes::BlendShapeData& data, Scene3D::ModelPrimitive primitive)
+void ModelNode::SetBlendShapeData(Scene3D::Loader::BlendShapes::BlendShapeData&& data, Scene3D::ModelPrimitive primitive)
{
// Update mBlendShapeIndexMap
mBlendShapeIndexMap.clear();
}
}
- GetImplementation(primitive).SetBlendShapeData(data);
+ GetImplementation(primitive).SetBlendShapeData(std::move(data));
}
void ModelNode::SetBoneMatrix(const Matrix& inverseMatrix, Scene3D::ModelPrimitive primitive, Scene3D::Loader::Index& boneIndex)
#define DALI_SCENE3D_MODEL_COMPONENTS_MODEL_NODE_IMPL_H
/*
- * Copyright (c) 2024 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2025 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.
* @param[in] data The blend shape data.
* @param[in] primitive The ModelPrimitive to set the blend shape data for.
*/
- void SetBlendShapeData(Scene3D::Loader::BlendShapes::BlendShapeData& data, Scene3D::ModelPrimitive primitive);
+ void SetBlendShapeData(Scene3D::Loader::BlendShapes::BlendShapeData&& data, Scene3D::ModelPrimitive primitive);
/**
* @brief Sets the bone matrix for a ModelPrimitive and bone index.
/*
- * Copyright (c) 2024 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2025 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.
}
}
-void ModelPrimitive::SetBlendShapeData(Scene3D::Loader::BlendShapes::BlendShapeData& data)
+void ModelPrimitive::SetBlendShapeData(Scene3D::Loader::BlendShapes::BlendShapeData&& data)
{
mBlendShapeData = std::move(data);
Scene3D::Loader::BlendShapes::ConfigureProperties(mBlendShapeData, mRenderer);
#define DALI_SCENE3D_MODEL_COMPONENTS_MODEL_PRIMITIVE_IMPL_H
/*
- * Copyright (c) 2023 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2025 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.
*
* @param[in] data The blend shape data to set.
*/
- void SetBlendShapeData(Scene3D::Loader::BlendShapes::BlendShapeData& data);
+ void SetBlendShapeData(Scene3D::Loader::BlendShapes::BlendShapeData&& data);
/**
* @brief Sets the blend shape geometry for this model primitive.
bool mHasTangents = false;
Scene3D::Loader::BlendShapes::Version mBlendShapeVersion = Scene3D::Loader::BlendShapes::Version::INVALID;
- bool mIsMaterialChanged = false;
+ bool mIsMaterialChanged = false;
};
} // namespace Internal
/*
- * Copyright (c) 2024 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2025 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.
std::shared_ptr<Dali::FileStream> stream;
};
-BufferDefinition::BufferDefinition(std::vector<uint8_t>& buffer)
+BufferDefinition::BufferDefinition(std::vector<uint8_t>&& buffer)
: mImpl{new BufferDefinition::Impl}
{
mImpl.get()->buffer = std::move(buffer);
#ifndef DALI_SCENE3D_LOADER_BUFFER_DEFINITION_H
#define DALI_SCENE3D_LOADER_BUFFER_DEFINITION_H
/*
- * Copyright (c) 2023 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2025 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.
using Vector = std::vector<BufferDefinition>;
BufferDefinition();
- BufferDefinition(std::vector<uint8_t>& buffer);
+ BufferDefinition(std::vector<uint8_t>&& buffer);
~BufferDefinition();
/*
- * Copyright (c) 2024 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2025 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.
data.version = mesh.first.mBlendShapeVersion;
data.bufferOffset = mesh.second.blendShapeBufferOffset;
data.mActor = actor;
- Internal::GetImplementation(node).SetBlendShapeData(data, request.mPrimitive);
+ Internal::GetImplementation(node).SetBlendShapeData(std::move(data), request.mPrimitive);
}
}
}