[Tizen] CleanUp gles version setter + Get exact FBO MSAA sample level
[platform/core/uifw/dali-adaptor.git] / dali / internal / graphics / gles / egl-graphics.h
index 5a5e78d..88558ba 100644 (file)
@@ -2,7 +2,7 @@
 #define DALI_INTERNAL_BASE_GRAPHICS_IMPLEMENTATION_H
 
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2023 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.
@@ -67,12 +67,6 @@ public:
   void ConfigureSurface(Dali::RenderSurfaceInterface* surface) override;
 
   /**
-   * Set gles version
-   * Default version is gles 3.0
-   */
-  void SetGlesVersion(const int32_t glesVersion);
-
-  /**
    * Set whether the surfaceless context is supported
    * @param[in] isSupported Whether the surfaceless context is supported
    */
@@ -91,6 +85,13 @@ public:
   void ActivateSurfaceContext(Dali::RenderSurfaceInterface* surface) override;
 
   /**
+   * This is called after all the surfaces have been rendered.
+   *
+   * @note This should not be called if uploading resource only without rendering any surface.
+   */
+  void PostRender() override;
+
+  /**
    * Inform graphics interface that this is the first frame after a resume.
    * (For debug only)
    */
@@ -164,6 +165,11 @@ public:
     return mGLES->IsAdvancedBlendEquationSupported();
   }
 
+  bool IsMultisampledRenderToTextureSupported() override
+  {
+    return mGLES->IsMultisampledRenderToTextureSupported();
+  }
+
   /**
    * @return true if graphics subsystem is initialized
    */
@@ -182,11 +188,21 @@ public:
     return mGLES->GetMaxTextureSize();
   }
 
+  uint8_t GetMaxTextureSamples() override
+  {
+    return mGLES->GetMaxTextureSamples();
+  }
+
   uint32_t GetShaderLanguageVersion() override
   {
     return mGLES->GetShadingLanguageVersion();
   }
 
+  bool ApplyNativeFragmentShader(std::string& shader, const char* customSamplerType)
+  {
+    return mGLES->ApplyNativeFragmentShader(shader, customSamplerType);
+  }
+
   void CacheConfigurations(ConfigurationManager& configurationManager) override;
 
 private: