X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Finternal%2Fgraphics%2Fgles%2Fegl-implementation.h;h=1c9cab33a278c109495dadfbe89f59b2e95fc2c2;hb=6a17b1520b157712457cbf6a8af394b02782d062;hp=3c75e3bc9aa7e6bba4c5ac2979d441882afe766f;hpb=f8f31af3d24e532e070e30c7344c321fd7694bc9;p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git diff --git a/dali/internal/graphics/gles/egl-implementation.h b/dali/internal/graphics/gles/egl-implementation.h index 3c75e3b..1c9cab3 100644 --- a/dali/internal/graphics/gles/egl-implementation.h +++ b/dali/internal/graphics/gles/egl-implementation.h @@ -2,7 +2,7 @@ #define DALI_INTERNAL_EGL_IMPLEMENTATION_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. @@ -139,8 +139,9 @@ public: * Choose config of egl * @param isWindowType whether the config for window or pixmap * @param colorDepth Bit per pixel value (ex. 32 or 24) + * @return true if the eglChooseConfig is succeed. */ - void ChooseConfig( bool isWindowType, ColorDepth depth ); + bool ChooseConfig( bool isWindowType, ColorDepth depth ); /** * Create an OpenGL surface using a window @@ -176,6 +177,11 @@ public: bool ReplaceSurfacePixmap( EGLNativePixmapType pixmap, EGLSurface& eglSurface ); /** + * Sets gles version + */ + void SetGlesVersion( const int32_t glesVersion ); + + /** * returns the display with which this object was initialized * @return the EGL Display. */ @@ -187,6 +193,23 @@ public: */ EGLContext GetContext() const; + /** + * Returns the gles version + * @return the gles version + */ + int32_t GetGlesVersion() const; + + /** + * Returns whether the surfaceless context is supported + * @return true if the surfaceless context is supported + */ + bool IsSurfacelessContextSupported() const; + + /** + * @brief Wait until all rendering calls for the currently context are executed + */ + void WaitClient(); + private: Vector mContextAttribs; @@ -210,7 +233,8 @@ private: typedef std::vector EglWindowSurfaceContainer; EglWindowSurfaceContainer mEglWindowSurfaces; ///< The EGL surface for the window - int mMultiSamplingLevel; + int32_t mMultiSamplingLevel; + int32_t mGlesVersion; ColorDepth mColorDepth; @@ -219,6 +243,8 @@ private: bool mIsWindow; bool mDepthBufferRequired; bool mStencilBufferRequired; + bool mIsSurfacelessContextSupported; + bool mIsKhrCreateContextSupported; }; } // namespace Adaptor