projects
/
platform
/
core
/
uifw
/
dali-adaptor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add API for setting resource destruction callback
[platform/core/uifw/dali-adaptor.git]
/
dali
/
internal
/
imaging
/
macos
/
native-image-source-impl-mac.cpp
diff --git
a/dali/internal/imaging/macos/native-image-source-impl-mac.cpp
b/dali/internal/imaging/macos/native-image-source-impl-mac.cpp
index
c0abb5d
..
cc99b1b
100644
(file)
--- a/
dali/internal/imaging/macos/native-image-source-impl-mac.cpp
+++ b/
dali/internal/imaging/macos/native-image-source-impl-mac.cpp
@@
-45,7
+45,8
@@
NativeImageSourceCocoa::NativeImageSourceCocoa(
unsigned int height,
Dali::NativeImageSource::ColorDepth depth,
Any nativeImageSource)
unsigned int height,
Dali::NativeImageSource::ColorDepth depth,
Any nativeImageSource)
-: mImage(MakeRef<CGImageRef>(nullptr))
+: mImage(MakeRef<CGImageRef>(nullptr)),
+ mResourceDestructionCallback()
{
DALI_ASSERT_ALWAYS(Adaptor::IsAvailable());
DALI_ASSERT_ALWAYS(nativeImageSource.Empty());
{
DALI_ASSERT_ALWAYS(Adaptor::IsAvailable());
DALI_ASSERT_ALWAYS(nativeImageSource.Empty());
@@
-154,11
+155,6
@@
void NativeImageSourceCocoa::PrepareTexture()
{
}
{
}
-const char* NativeImageSourceCocoa::GetCustomFragmentPrefix() const
-{
- return nullptr;
-}
-
bool NativeImageSourceCocoa::ApplyNativeFragmentShader(std::string& shader)
{
return false;
bool NativeImageSourceCocoa::ApplyNativeFragmentShader(std::string& shader)
{
return false;
@@
-210,4
+206,9
@@
bool NativeImageSourceCocoa::ReleaseBuffer()
return false;
}
return false;
}
+void NativeImageSourceCocoa::SetResourceDestructionCallback(EventThreadCallback* callback)
+{
+ mResourceDestructionCallback = std::unique_ptr<EventThreadCallback>(callback);
+}
+
} // namespace Dali::Internal::Adaptor
} // namespace Dali::Internal::Adaptor