X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fvisuals%2Fvisual-base-data-impl.h;h=3c8f0727ccdb19d565763f2984072b910a3c3c50;hb=cbae9964e389c6a5cafa3a284f281609a0ed2e60;hp=52e0d98b6f765561c3961be57f4781af9407b4d1;hpb=6ae6f36998b3be4efa1114e2df856e51628bf812;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/visuals/visual-base-data-impl.h b/dali-toolkit/internal/visuals/visual-base-data-impl.h index 52e0d98..3c8f072 100644 --- a/dali-toolkit/internal/visuals/visual-base-data-impl.h +++ b/dali-toolkit/internal/visuals/visual-base-data-impl.h @@ -2,7 +2,7 @@ #define DALI_TOOLKIT_INTERNAL_VISUAL_BASE_DATA_IMPL_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. @@ -96,11 +96,16 @@ struct Base::Impl void UpdatePropertyMap(const Property::Map& map); /** - * Register or set the uniform properties onto the renderer + * Register the uniform properties onto the renderer */ void RegisterUniforms(Renderer renderer, Toolkit::Direction::Type direction); /** + * Set the uniform properties onto the renderer + */ + void SetUniforms(Renderer renderer, Toolkit::Direction::Type direction); + + /** * Convert the control size and the transform attributes into the actual * size of the visual. */ @@ -112,8 +117,8 @@ struct Base::Impl Vector4 mOffsetSizeMode; Toolkit::Align::Type mOrigin; Toolkit::Align::Type mAnchorPoint; - Property::Index mOffsetIndex; - Property::Index mSizeIndex; + Property::Index mOffsetIndex{Property::INVALID_INDEX}; + Property::Index mSizeIndex{Property::INVALID_INDEX}; }; Renderer mRenderer; @@ -134,12 +139,12 @@ struct Base::Impl Property::Index mBorderlineColorIndex; Property::Index mBorderlineOffsetIndex; Property::Index mCornerRadiusIndex; - FittingMode mFittingMode; //< How the contents should fit the view + FittingMode mFittingMode; ///< How the contents should fit the view int mFlags; Toolkit::Visual::ResourceStatus mResourceStatus; const Toolkit::Visual::Type mType; - bool mNeedCornerRadius; - bool mNeedBorderline; + bool mAlwaysUsingBorderline : 1; ///< Whether we need the borderline in shader always. + bool mAlwaysUsingCornerRadius : 1; ///< Whether we need the corner radius in shader always. }; } // namespace Visual