X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fvisuals%2Fcolor%2Fcolor-visual.h;h=bb8bc95108dd616ee7e74f637b4267790b0c2e0c;hb=e35ca21bd433d168db25fb82306c62f39b69954c;hp=ba9a59000709bdfbd114420e6af5e54c54c0081b;hpb=d0b0cfa4a44953be9af9128885eb6ef5d83a214e;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/visuals/color/color-visual.h b/dali-toolkit/internal/visuals/color/color-visual.h index ba9a590..bb8bc95 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. @@ -104,26 +109,19 @@ protected: void OnSetTransform() override; /** - * @copydoc Visual::Base::OnDoAction - */ - void OnDoAction(const Property::Index actionId, const Property::Value& attributes) override; - - /** * @copydoc Visual::Base::UpdateShader */ void UpdateShader() override; /** - * @copydoc Visual::Base::OnGetPropertyObject + * @copydoc Visual::Base::GenerateShader */ - Dali::Property OnGetPropertyObject(Dali::Property::Key key) override; + Shader GenerateShader() const override; -private: /** - * @brief Get a shader for the current properties. - * @return The shader for the current properties. + * @copydoc Visual::Base::OnGetPropertyObject */ - Shader GetShader(); + Dali::Property OnGetPropertyObject(Dali::Property::Key key) override; private: // Undefined @@ -133,10 +131,9 @@ private: ColorVisual& operator=(const ColorVisual& colorRenderer); private: - float mBlurRadius; ///< The blur radius - Property::Index mBlurRadiusIndex; ///< The blur radius property index - bool mRenderIfTransparent; ///< Whether we should render even if the mix-color is transparent. - bool mNeedBlurRadius; ///< Whether we need the blur radius in shader. + 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. }; } // namespace Internal