X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Finternal%2Fevent%2Fimages%2Fpixel-data-impl.cpp;h=4dc28bf4065a7736b1c4bc45818bfc8b57f8becc;hb=refs%2Fchanges%2F76%2F290076%2F7;hp=745896ac4596478020e1f693fa4e9618fd3394b0;hpb=ce09956dc6a16b30da7067f70dff98d3325bc238;p=platform%2Fcore%2Fuifw%2Fdali-core.git diff --git a/dali/internal/event/images/pixel-data-impl.cpp b/dali/internal/event/images/pixel-data-impl.cpp index 745896a..4dc28bf 100644 --- a/dali/internal/event/images/pixel-data-impl.cpp +++ b/dali/internal/event/images/pixel-data-impl.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 Samsung Electronics Co., Ltd. + * Copyright (c) 2023 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. @@ -108,13 +108,19 @@ uint32_t PixelData::GetBufferSize() const return mBufferSize; } -DevelPixelData::PixelDataBuffer PixelData::ReleaseBuffer() +Dali::Integration::PixelDataBuffer PixelData::ReleasePixelDataBuffer() { - DevelPixelData::PixelDataBuffer pixelDataBuffer(mBuffer, mBufferSize, mReleaseFunction); + Dali::Integration::PixelDataBuffer pixelDataBuffer(mBuffer, mBufferSize, mReleaseFunction); mBuffer = nullptr; return pixelDataBuffer; } +Dali::Integration::PixelDataBuffer PixelData::GetPixelDataBuffer() const +{ + Dali::Integration::PixelDataBuffer pixelDataBuffer(mBuffer, mBufferSize, mReleaseFunction); + return pixelDataBuffer; +} + uint32_t PixelData::GetStride() const { return mStride;