X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Fintegration-api%2Fgl-abstraction.h;h=121efc27e0579821377b0f3c227223910cff07cd;hb=334f6b0076e89e77baf29fe67e05de62783dbd6c;hp=e59d7749a98b62cb81158cff4358ae726e097318;hpb=d874855119e161f959296a9f5ef734ca5d4b3b9b;p=platform%2Fcore%2Fuifw%2Fdali-core.git diff --git a/dali/integration-api/gl-abstraction.h b/dali/integration-api/gl-abstraction.h index e59d774..121efc2 100644 --- a/dali/integration-api/gl-abstraction.h +++ b/dali/integration-api/gl-abstraction.h @@ -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