X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Finternal%2Fevent%2Frendering%2Frenderer-impl.h;h=17818ab90fba7c4e1b44f381697c7e0d3830eed6;hb=596dfee38d336a562d1aeb7a889988d9de4c7eef;hp=ad5ff554e32e9c2c00ba781e4bcfa7ac00dab593;hpb=e3df4b163e5570d4fdafdfe5380404a9027e7462;p=platform%2Fcore%2Fuifw%2Fdali-core.git diff --git a/dali/internal/event/rendering/renderer-impl.h b/dali/internal/event/rendering/renderer-impl.h index ad5ff55..17818ab 100644 --- a/dali/internal/event/rendering/renderer-impl.h +++ b/dali/internal/event/rendering/renderer-impl.h @@ -2,7 +2,7 @@ #define DALI_INTERNAL_RENDERER_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. @@ -211,7 +211,7 @@ public: // Default property extensions from Object */ void AddDrawCommand(const Dali::DevelRenderer::DrawCommand& command); -private: // implementation +protected: // implementation /** * @brief Constructor. * @@ -220,16 +220,13 @@ private: // implementation Renderer(const SceneGraph::Renderer* sceneObject); /** - * @brief Sets the blend color. - * @param[in] blendColor The blend color to set. + * A reference counted object may only be deleted by calling Unreference() */ - void SetBlendColor(const Vector4& blendColor); + ~Renderer() override; - /** - * @brief Retrieves the blend-color. - * @return A const reference to the blend-color - */ - const Vector4& GetBlendColor() const; +private: + Renderer(const Renderer&) = delete; ///< Deleted copy constructor + Renderer& operator=(const Renderer&) = delete; ///< Deleted assignment operator /** * @brief Retrieves the cached event side value of a default property. @@ -247,17 +244,19 @@ private: // implementation */ bool GetCurrentPropertyValue(Property::Index index, Property::Value& value) const; -protected: /** - * A reference counted object may only be deleted by calling Unreference() + * @brief Sets the blend color. + * @param[in] blendColor The blend color to set. */ - ~Renderer() override; + void SetBlendColor(const Vector4& blendColor); -private: // unimplemented methods - Renderer(const Renderer&); - Renderer& operator=(const Renderer&); + /** + * @brief Retrieves the blend-color. + * @return A const reference to the blend-color + */ + const Vector4& GetBlendColor() const; -private: // data +protected: GeometryPtr mGeometry; ///< Intrusive pointer to the geometry used by this renderer TextureSetPtr mTextureSet; ///< Intrusive pointer to the texture set used by this renderer ShaderPtr mShader; ///< Intrusive pointer to the shader used by this renderer @@ -279,6 +278,7 @@ private: // data DevelRenderer::Rendering::Type mRenderingBehavior : 2; ///< The rendering behavior bool mPremultipledAlphaEnabled : 1; ///< Flag indicating whether the Pre-multiplied Alpha Blending is required +private: std::vector mDrawCommands; ///< list of draw commands };