X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fvisuals%2Fcolor%2Fcolor-visual.h;h=d5b2a6f1affb28e6c9a7dd4371c727485abbc8b4;hp=5edf2ba3a399a252ece43e29490df7251aede44f;hb=HEAD;hpb=3e3fec51905006fa2438965246593dab9c4e74e5 diff --git a/dali-toolkit/internal/visuals/color/color-visual.h b/dali-toolkit/internal/visuals/color/color-visual.h index 5edf2ba..0a8a8b2 100644 --- a/dali-toolkit/internal/visuals/color/color-visual.h +++ b/dali-toolkit/internal/visuals/color/color-visual.h @@ -2,7 +2,7 @@ #define DALI_TOOLKIT_INTERNAL_COLOR_VISUAL_H /* - * Copyright (c) 2021 Samsung Electronics Co., Ltd. + * Copyright (c) 2022 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. @@ -65,6 +65,11 @@ public: // from Visual */ void DoCreateInstancePropertyMap(Property::Map& map) const override; + /** + * @copydoc Visual::Base::EnablePreMultipliedAlpha + */ + void EnablePreMultipliedAlpha(bool preMultiplied) override; + protected: /** * @brief Constructor. @@ -118,6 +123,14 @@ protected: */ Dali::Property OnGetPropertyObject(Dali::Property::Key key) override; +protected: + /** + * @brief Query whether the visual requires to be blur. + * + * @return Returns true if the blur is required, false otherwise. + */ + bool IsBlurRequired() const; + private: // Undefined ColorVisual(const ColorVisual& colorRenderer); @@ -126,9 +139,8 @@ private: ColorVisual& operator=(const ColorVisual& colorRenderer); private: - float mBlurRadius; ///< The blur radius - Property::Index mBlurRadiusIndex; ///< The blur radius property index - bool mAlwaysUsingBlurRadius : 1; ///< Whether we need the blur radius in shader always. + float mBlurRadius; ///< The blur radius + bool mAlwaysUsingBlurRadius : 1; ///< Whether we need the blur radius in shader always. }; } // namespace Internal