webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
WebCore::GLPlatformContext Class Referenceabstract

#include <GLPlatformContext.h>

Public Types

enum  PlatformContextReset { PLATFORMCONTEXT_NO_ERROR = 0x0000, PLATFORMCONTEXT_GUILTY_CONTEXT_RESET = 0x8253, PLATFORMCONTEXT_INNOCENT_CONTEXT_RESET = 0x8254, PLATFORMCONTEXT_UNKNOWN_CONTEXT_RESET = 0x8255 }
 

Public Member Functions

virtual ~GLPlatformContext ()
 
virtual bool initialize (GLPlatformSurface *, PlatformContext=0)
 
bool makeCurrent (GLPlatformSurface *=0)
 
void releaseCurrent ()
 
virtual PlatformContext handle () const
 
virtual bool isCurrentContext () const =0
 
bool isValid () const
 
virtual void destroy ()
 

Static Public Member Functions

static std::unique_ptr< GLPlatformContextcreateContext (GraphicsContext3D::RenderStyle)
 
static bool supportsGLExtension (const String &)
 

Protected Member Functions

 GLPlatformContext ()
 
virtual bool platformMakeCurrent (GLPlatformSurface *)
 
virtual void platformReleaseCurrent ()
 

Protected Attributes

PlatformContext m_contextHandle
 
bool m_resetLostContext
 
bool m_contextLost
 

Member Enumeration Documentation

◆ PlatformContextReset

Enumerator
PLATFORMCONTEXT_NO_ERROR 
PLATFORMCONTEXT_GUILTY_CONTEXT_RESET 
PLATFORMCONTEXT_INNOCENT_CONTEXT_RESET 
PLATFORMCONTEXT_UNKNOWN_CONTEXT_RESET 

Constructor & Destructor Documentation

◆ ~GLPlatformContext()

virtual WebCore::GLPlatformContext::~GLPlatformContext ( )
virtual

◆ GLPlatformContext()

WebCore::GLPlatformContext::GLPlatformContext ( )
protected

Member Function Documentation

◆ createContext()

static std::unique_ptr<GLPlatformContext> WebCore::GLPlatformContext::createContext ( GraphicsContext3D::RenderStyle  )
static

◆ destroy()

virtual void WebCore::GLPlatformContext::destroy ( )
virtual

◆ handle()

virtual PlatformContext WebCore::GLPlatformContext::handle ( ) const
virtual

◆ initialize()

virtual bool WebCore::GLPlatformContext::initialize ( GLPlatformSurface ,
PlatformContext  = 0 
)
virtual

◆ isCurrentContext()

virtual bool WebCore::GLPlatformContext::isCurrentContext ( ) const
pure virtual

◆ isValid()

bool WebCore::GLPlatformContext::isValid ( ) const

◆ makeCurrent()

bool WebCore::GLPlatformContext::makeCurrent ( GLPlatformSurface = 0)

◆ platformMakeCurrent()

virtual bool WebCore::GLPlatformContext::platformMakeCurrent ( GLPlatformSurface )
protectedvirtual

◆ platformReleaseCurrent()

virtual void WebCore::GLPlatformContext::platformReleaseCurrent ( )
protectedvirtual

◆ releaseCurrent()

void WebCore::GLPlatformContext::releaseCurrent ( )

◆ supportsGLExtension()

static bool WebCore::GLPlatformContext::supportsGLExtension ( const String )
static

Member Data Documentation

◆ m_contextHandle

PlatformContext WebCore::GLPlatformContext::m_contextHandle
protected

◆ m_contextLost

bool WebCore::GLPlatformContext::m_contextLost
protected

◆ m_resetLostContext

bool WebCore::GLPlatformContext::m_resetLostContext
protected

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