Revert "[Tizen] Implement partial update"
[platform/core/uifw/dali-core.git] / dali / integration-api / gl-abstraction.h
index e59d774..121efc2 100644 (file)
@@ -1,8 +1,8 @@
-#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) 2014 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2019 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.
@@ -112,9 +112,23 @@ public:
    * Invoked by Render thread after Core::Render
    * Inform the gl implementation that the rendering in this frame has finished,
    * and how much time was spent.
-   * @param[in] timeDelta Time in microseconds since last PostRender call
    */
-  virtual void PostRender( unsigned int timeDelta ) = 0;
+  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 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.
@@ -379,4 +393,4 @@ public:
 
 } // namespace Dali
 
-#endif // __DALI_INTEGRATION_GL_ABSTRACTION_H__
+#endif // DALI_INTEGRATION_GL_ABSTRACTION_H