webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
WebCore::GLContext Class Referenceabstract

#include <GLContext.h>

Public Member Functions

PlatformDisplaydisplay () const
 
unsigned version ()
 
virtual ~GLContext ()
 
virtual bool makeContextCurrent ()
 
virtual void swapBuffers ()=0
 
virtual void waitNative ()=0
 
virtual bool canRenderToDefaultFramebuffer ()=0
 
virtual IntSize defaultFrameBufferSize ()=0
 
virtual void swapInterval (int)=0
 
virtual bool isEGLContext () const =0
 

Static Public Member Functions

static std::unique_ptr< GLContextcreateContextForWindow (GLNativeWindowType windowHandle, PlatformDisplay *=nullptr)
 
static std::unique_ptr< GLContextcreateOffscreenContext (PlatformDisplay *=nullptr)
 
static std::unique_ptr< GLContextcreateSharingContext (PlatformDisplay &)
 
static GLContextcurrent ()
 
static bool isExtensionSupported (const char *extensionList, const char *extension)
 

Protected Member Functions

 GLContext (PlatformDisplay &)
 

Protected Attributes

PlatformDisplaym_display
 
unsigned m_version { 0 }
 

Constructor & Destructor Documentation

◆ ~GLContext()

virtual WebCore::GLContext::~GLContext ( )
virtual

◆ GLContext()

WebCore::GLContext::GLContext ( PlatformDisplay )
protected

Member Function Documentation

◆ canRenderToDefaultFramebuffer()

virtual bool WebCore::GLContext::canRenderToDefaultFramebuffer ( )
pure virtual

◆ createContextForWindow()

static std::unique_ptr<GLContext> WebCore::GLContext::createContextForWindow ( GLNativeWindowType  windowHandle,
PlatformDisplay = nullptr 
)
static

◆ createOffscreenContext()

static std::unique_ptr<GLContext> WebCore::GLContext::createOffscreenContext ( PlatformDisplay = nullptr)
static

◆ createSharingContext()

static std::unique_ptr<GLContext> WebCore::GLContext::createSharingContext ( PlatformDisplay )
static

◆ current()

static GLContext* WebCore::GLContext::current ( )
static

◆ defaultFrameBufferSize()

virtual IntSize WebCore::GLContext::defaultFrameBufferSize ( )
pure virtual

◆ display()

PlatformDisplay& WebCore::GLContext::display ( ) const
inline

◆ isEGLContext()

virtual bool WebCore::GLContext::isEGLContext ( ) const
pure virtual

◆ isExtensionSupported()

static bool WebCore::GLContext::isExtensionSupported ( const char *  extensionList,
const char *  extension 
)
static

◆ makeContextCurrent()

virtual bool WebCore::GLContext::makeContextCurrent ( )
virtual

◆ swapBuffers()

virtual void WebCore::GLContext::swapBuffers ( )
pure virtual

◆ swapInterval()

virtual void WebCore::GLContext::swapInterval ( int  )
pure virtual

◆ version()

unsigned WebCore::GLContext::version ( )

◆ waitNative()

virtual void WebCore::GLContext::waitNative ( )
pure virtual

Member Data Documentation

◆ m_display

PlatformDisplay& WebCore::GLContext::m_display
protected

◆ m_version

unsigned WebCore::GLContext::m_version { 0 }
protected

The documentation for this class was generated from the following file: