Merge "Remove unused custom shader prefix method" into devel/master
[platform/core/uifw/dali-core.git] / dali / public-api / images / native-image-interface.h
index 717e365..ef60e4d 100644 (file)
@@ -21,6 +21,7 @@
 // EXTERNAL INCLUDES
 #include <cstddef>
 #include <cstdint> // uint32_t
+#include <string>
 
 // INTERNAL INCLUDES
 #include <dali/public-api/object/any.h>
@@ -113,12 +114,12 @@ public:
   virtual int GetTextureTarget() const = 0;
 
   /**
-   * @brief Get custom fragment prefix for rendering native image.
+   * @brief Apply custom fragment prefix for rendering native image.
    *
-   * @SINCE_1_9.23
-   * @return Custom fragment prefix code as string.
+   * @param[in,out] shader shader code that will be applied fragment prefix.
+   * @return True if the shader is changed.
    */
-  virtual const char* GetCustomFragmentPrefix() const = 0;
+  virtual bool ApplyNativeFragmentShader(std::string& shader) = 0;
 
   /**
    * @brief Get custom sampler type name for rendering native image.