X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Finternal%2Fgraphics%2Fgles%2Fegl-implementation.h;h=03c35f45bdc86cd78f09251d9ea4c7c302f42361;hb=6206c977d8ec33445d0fa948886b214bee02214d;hp=e299da79a18e819f7e3e2ac6945bdafe733b03e8;hpb=09e6892adcddf6d2bf7c88dc8442a42da2ac57f5;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 e299da7..03c35f4 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,18 @@ 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; + private: Vector mContextAttribs; @@ -205,11 +223,13 @@ private: EglWindowContextContainer mEglWindowContexts; ///< The EGL context for the window EGLSurface mCurrentEglSurface; + EGLContext mCurrentEglContext; typedef std::vector EglWindowSurfaceContainer; EglWindowSurfaceContainer mEglWindowSurfaces; ///< The EGL surface for the window - int mMultiSamplingLevel; + int32_t mMultiSamplingLevel; + int32_t mGlesVersion; ColorDepth mColorDepth; @@ -218,6 +238,7 @@ private: bool mIsWindow; bool mDepthBufferRequired; bool mStencilBufferRequired; + bool mIsSurfacelessContextSupported; }; } // namespace Adaptor