X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Fpublic-api%2Fimages%2Fnative-image-interface.h;h=a3b45316f37d279d8ea601d0111a04eb13fdba34;hb=646f736e77b085c86e982c0d1d4b895c2a431330;hp=991c9d872c3d2979d504f950e339c08ba1c280cd;hpb=423c5be7c4b4f6271f8c23dec6e51b2d3a44e0f6;p=platform%2Fcore%2Fuifw%2Fdali-core.git diff --git a/dali/public-api/images/native-image-interface.h b/dali/public-api/images/native-image-interface.h index 991c9d8..a3b4531 100644 --- a/dali/public-api/images/native-image-interface.h +++ b/dali/public-api/images/native-image-interface.h @@ -2,7 +2,7 @@ #define __DALI_INTEGRATION_NATIVE_IMAGE_INTERFACE_H__ /* - * Copyright (c) 2015 Samsung Electronics Co., Ltd. + * Copyright (c) 2018 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. @@ -20,6 +20,7 @@ // EXTERNAL INCLUDES #include +#include // uint32_t // INTERNAL INCLUDES #include @@ -44,32 +45,32 @@ public: class Extension; ///< Forward declare future extension interface /** - * @brief Create the GL resource for the NativeImage. + * @brief Creates the GL resource for the NativeImage. * - * e.g. For the EglImageKHR extension, this corresponds to calling eglCreateImageKHR() + * e.g. For the EglImageKHR extension, this corresponds to calling eglCreateImageKHR(). * @SINCE_1_0.0 - * @return false If the initialization fails. + * @return false If the initialization fails * @pre There is a GL context for the current thread. */ virtual bool GlExtensionCreate() = 0; /** - * @brief Destroy the GL resource for the NativeImage. + * @brief Destroys the GL resource for the NativeImage. * - * e.g. For the EglImageKHR extension, this corresponds to calling eglDestroyImageKHR() + * e.g. For the EglImageKHR extension, this corresponds to calling eglDestroyImageKHR(). * @SINCE_1_0.0 * @pre There is a GL context for the current thread. */ virtual void GlExtensionDestroy() = 0; /** - * @brief Use the NativeImage as a texture for rendering. + * @brief Uses the NativeImage as a texture for rendering. * * @SINCE_1_0.0 * @return A GL error code * @pre There is a GL context for the current thread. */ - virtual unsigned int TargetTexture() = 0; + virtual uint32_t TargetTexture() = 0; /** * @brief Called internally for each Bind call for this texture to allow implementation specific operations. @@ -86,7 +87,7 @@ public: * @SINCE_1_0.0 * @return Width */ - virtual unsigned int GetWidth() const = 0; + virtual uint32_t GetWidth() const = 0; /** * @brief Returns the height of the NativeImage. @@ -94,17 +95,17 @@ public: * @SINCE_1_0.0 * @return Height */ - virtual unsigned int GetHeight() const = 0; + virtual uint32_t GetHeight() const = 0; /** - * @brief Query whether blending is required + * @brief Queries whether blending is required. * @SINCE_1_0.0 - * @return true if blending is required + * @return True if blending is required */ virtual bool RequiresBlending() const = 0; /** - * @brief Retrieve the extension for the interface. + * @brief Retrieves the extension for the interface. * * @SINCE_1_0.0 * @return The extension if available, NULL otherwise @@ -129,7 +130,7 @@ protected: }; /** - * @brief Pointer to Dali::NativeImageInterface + * @brief Pointer to Dali::NativeImageInterface. * @SINCE_1_0.0 */ typedef Dali::IntrusivePtr NativeImageInterfacePtr;