X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fvisuals%2Fimage-visual-shader-factory.h;h=8ed50a696ba513b5419331bf4b241da815a62e35;hp=c5344d3b3342ba141da26238347914c011c007bd;hb=7018f61b640b6fcf9cb576b537bafcb6bb8240e8;hpb=4cc02f3e2045755c2c65e64a6f5e126a4c6208ea 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. */