X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Finternal%2Fgraphics%2Fgles-impl%2Fgles-graphics-resource.h;h=ce4ce0401b874820c371ef65240e478b27cc47ff;hb=5522a0d106aca1e80fdda71d7fdda58017510eb5;hp=ed0e297a7a7e6bab34f825ef07e13bd7c6cae050;hpb=2f76afeddcd0a3eee9d6a9945599b129d2033ab6;p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git diff --git a/dali/internal/graphics/gles-impl/gles-graphics-resource.h b/dali/internal/graphics/gles-impl/gles-graphics-resource.h index ed0e297..ce4ce04 100644 --- a/dali/internal/graphics/gles-impl/gles-graphics-resource.h +++ b/dali/internal/graphics/gles-impl/gles-graphics-resource.h @@ -2,7 +2,7 @@ #define DALI_GRAPHICS_GLES_RESOURCE_H /* - * Copyright (c) 2021 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. @@ -43,6 +43,22 @@ public: } /** + * @brief Tries to recycle Graphics resource + * + * If False returned, the object must be initialized with use of constructor + * + * By default, all graphics resources are non-recyclable + * + * @param[in] createInfo CreateInfo structure of new object + * @param[in] controller Reference to the controller + * @return True on success, False otherwise + */ + virtual bool TryRecycle(const CreateInfo& createInfo, Graphics::EglGraphicsController& controller) + { + return false; + } + + /** * @brief Destructor */ ~Resource() override = default;