X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fvisuals%2Fimage-visual-shader-factory.h;h=8ed50a696ba513b5419331bf4b241da815a62e35;hb=b8da2e53925b9abb9fa362560069e8ca4aa62f81;hp=c5344d3b3342ba141da26238347914c011c007bd;hpb=0e6daac62ce7e42b15c22642a6c4b4f7f6e120d6;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/visuals/image-visual-shader-factory.h b/dali-toolkit/internal/visuals/image-visual-shader-factory.h index c5344d3..8ed50a6 100644 --- a/dali-toolkit/internal/visuals/image-visual-shader-factory.h +++ b/dali-toolkit/internal/visuals/image-visual-shader-factory.h @@ -2,7 +2,7 @@ #define DALI_TOOLKIT_IMAGE_VISUAL_SHADER_FACTORY_H /* - * Copyright (c) 2018 Samsung Electronics Co., Ltd. + * Copyright (c) 2021 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. @@ -21,25 +21,20 @@ // INTERNAL INCLUDES #include +#include namespace Dali { - namespace Toolkit { - namespace Internal { - /** * ImageVisualShaderFactory is an object that provides and shares shaders between image visuals */ class ImageVisualShaderFactory { public: - -public: - /** * @brief Constructor */ @@ -57,22 +52,21 @@ public: * @param[in] defaultTextureWrapping Whether the default texture wrap mode is applied. * @param[in] roundedCorner Whether the rounded corder is applied. */ - Shader GetShader( VisualFactoryCache& factoryCache, bool atlasing, bool defaultTextureWrapping, bool roundedCorner ); + Shader GetShader(VisualFactoryCache& factoryCache, bool atlasing, bool defaultTextureWrapping, bool roundedCorner); /** * Request the default vertex shader source. * @return The default vertex shader source. */ - const char* GetVertexShaderSource(); + std::string_view GetVertexShaderSource(); /** * Request the default fragment shader source. * @return The default fragment shader source. */ - const char* GetFragmentShaderSource(); + std::string_view GetFragmentShaderSource(); protected: - /** * Undefined copy constructor. */