diff options
author | Eunki, Hong <eunkiki.hong@samsung.com> | 2024-05-28 13:40:58 +0900 |
---|---|---|
committer | Eunki, Hong <eunkiki.hong@samsung.com> | 2024-05-28 13:40:58 +0900 |
commit | 5f899bdbbc34299a00777792a91f8fd5a066a164 (patch) | |
tree | 2defa9a621bf56359c7a4eb1ba544695b0feb106 /dali/internal | |
parent | 33a28645d20961b4bb75d24505642447dd3996f5 (diff) | |
download | dali-adaptor-5f899bdbbc34299a00777792a91f8fd5a066a164.tar.gz dali-adaptor-5f899bdbbc34299a00777792a91f8fd5a066a164.tar.bz2 dali-adaptor-5f899bdbbc34299a00777792a91f8fd5a066a164.zip |
Implement ProcessorOnce
Since unregister processor during Process will give overhead,
we'd better make another container to process only once time
during ProcessCoreEvent.
Change-Id: I1725774504ed66c61ba159e843c14e4da953d2d3
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
Diffstat (limited to 'dali/internal')
-rw-r--r-- | dali/internal/adaptor/common/adaptor-impl.cpp | 10 | ||||
-rw-r--r-- | dali/internal/adaptor/common/adaptor-impl.h | 12 | ||||
-rw-r--r-- | dali/internal/adaptor/common/adaptor.cpp | 10 |
3 files changed, 31 insertions, 1 deletions
diff --git a/dali/internal/adaptor/common/adaptor-impl.cpp b/dali/internal/adaptor/common/adaptor-impl.cpp index 5b1095e3c..1d73ef7e0 100644 --- a/dali/internal/adaptor/common/adaptor-impl.cpp +++ b/dali/internal/adaptor/common/adaptor-impl.cpp @@ -1198,6 +1198,16 @@ void Adaptor::UnregisterProcessor(Integration::Processor& processor, bool postPr GetCore().UnregisterProcessor(processor, postProcessor); } +void Adaptor::RegisterProcessorOnce(Integration::Processor& processor, bool postProcessor) +{ + GetCore().RegisterProcessorOnce(processor, postProcessor); +} + +void Adaptor::UnregisterProcessorOnce(Integration::Processor& processor, bool postProcessor) +{ + GetCore().UnregisterProcessorOnce(processor, postProcessor); +} + bool Adaptor::IsMultipleWindowSupported() const { return mConfigurationManager->IsMultipleWindowSupported(); diff --git a/dali/internal/adaptor/common/adaptor-impl.h b/dali/internal/adaptor/common/adaptor-impl.h index 23459c37c..a5badfe9b 100644 --- a/dali/internal/adaptor/common/adaptor-impl.h +++ b/dali/internal/adaptor/common/adaptor-impl.h @@ -2,7 +2,7 @@ #define DALI_INTERNAL_ADAPTOR_IMPL_H /* - * Copyright (c) 2023 Samsung Electronics Co., Ltd. + * Copyright (c) 2024 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. @@ -461,6 +461,16 @@ public: void UnregisterProcessor(Integration::Processor& processor, bool postProcessor); /** + * @copydoc Dali::Adaptor::RegisterProcessorOnce + */ + void RegisterProcessorOnce(Integration::Processor& processor, bool postProcessor); + + /** + * @coydoc Dali::Adaptor::UnregisterProcessorOnce + */ + void UnregisterProcessorOnce(Integration::Processor& processor, bool postProcessor); + + /** * Check MultipleWindow is supported */ bool IsMultipleWindowSupported() const; diff --git a/dali/internal/adaptor/common/adaptor.cpp b/dali/internal/adaptor/common/adaptor.cpp index 5a2a3e849..0e9a4fcca 100644 --- a/dali/internal/adaptor/common/adaptor.cpp +++ b/dali/internal/adaptor/common/adaptor.cpp @@ -291,6 +291,16 @@ void Adaptor::UnregisterProcessor(Integration::Processor& processor, bool postPr mImpl->UnregisterProcessor(processor, postProcessor); } +void Adaptor::RegisterProcessorOnce(Integration::Processor& processor, bool postProcessor) +{ + mImpl->RegisterProcessorOnce(processor, postProcessor); +} + +void Adaptor::UnregisterProcessorOnce(Integration::Processor& processor, bool postProcessor) +{ + mImpl->UnregisterProcessorOnce(processor, postProcessor); +} + Dali::WindowContainer Adaptor::GetWindows() const { return mImpl->GetWindows(); |