[Tizen] Temporary fix, Will be removed later, Fix Emul crash issue
[platform/core/uifw/dali-core.git] / dali / integration-api / gl-abstraction.h
index d8cda34..121efc2 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef __DALI_INTEGRATION_GL_ABSTRACTION_H__
-#define __DALI_INTEGRATION_GL_ABSTRACTION_H__
+#ifndef DALI_INTEGRATION_GL_ABSTRACTION_H
+#define DALI_INTEGRATION_GL_ABSTRACTION_H
 
 /*
  * Copyright (c) 2019 Samsung Electronics Co., Ltd.
@@ -116,13 +116,19 @@ public:
   virtual void PostRender() = 0;
 
   /**
+   * Returns current gles can support surfaceless context
+   * @Return true current gles support surfaceless context
+   */
+  virtual bool IsSurfacelessContextSupported() const = 0;
+
+  /**
    * Determine whether to convert pixel format or not.
    * @param[in] imageGlFormat GLformat of input image.
    * @param[in] textureGlFormat GLformat of Texture.
    * @param[in] isSubImage Boolian value for the whether the image is subimage or not
    * @return Whether the texture will be convert or not.
    */
-  virtual void ConvertTexture( uint8_t* buffer, GLenum& imageGlFormat, const uint32_t dataSize, const GLenum textureGlFormat, const bool isSubImage ) = 0;
+  virtual bool TextureRequiresConverting( const GLenum imageGlFormat, const GLenum textureGlFormat, const bool isSubImage ) const = 0;
 
   /**
    * The number of texture units an implementation supports is implementation dependent, but must be at least 8.
@@ -387,4 +393,4 @@ public:
 
 } // namespace Dali
 
-#endif // __DALI_INTEGRATION_GL_ABSTRACTION_H__
+#endif // DALI_INTEGRATION_GL_ABSTRACTION_H