Revert "[Tizen] To get MaxTextureSize by using glGetIntegerv not by using environment...
[platform/core/uifw/dali-adaptor.git] / dali / internal / imaging / common / image-loader.h
index bedd3fa..55f1680 100644 (file)
@@ -1,8 +1,8 @@
-#ifndef __DALI_TIZEN_PLATFORM_IMAGE_LOADER_H__
-#define __DALI_TIZEN_PLATFORM_IMAGE_LOADER_H__
+#ifndef DALI_TIZEN_PLATFORM_IMAGE_LOADER_H
+#define DALI_TIZEN_PLATFORM_IMAGE_LOADER_H
 
 /*
- * Copyright (c) 2017 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.
@@ -81,8 +81,22 @@ ImageDimensions GetClosestImageSize( Integration::ResourcePointer resourceBuffer
                           SamplingMode::Type samplingMode,
                           bool orientationCorrection );
 
+/**
+ * @brief Set the maximum texture size. Then size can be kwown by GL_MAX_TEXTURE_SIZE.
+ *
+ * @param [in] size The maximum texture size to set
+ */
+void SetMaxTextureSize( unsigned int size );
+
+/**
+ * @brief Get the maximum texture size.
+ *
+ * @return The maximum texture size
+ */
+unsigned int GetMaxTextureSize();
+
 } // ImageLoader
 } // TizenPlatform
 } // Dali
 
-#endif // __DALI_TIZEN_PLATFORM_IMAGE_LOADER_H__
+#endif // DALI_TIZEN_PLATFORM_IMAGE_LOADER_H