Qt 4.8
Public Functions | Public Variables | List of all members
QVGSharedContext Class Reference

Public Functions

 QVGSharedContext ()
 
 ~QVGSharedContext ()
 

Public Variables

QEglContextcontext
 
QVGPaintEngineengine
 
QVGPixmapDatafirstPixmap
 
int refCount
 
EGLSurface surface
 
int widgetRefCount
 

Detailed Description

Definition at line 102 of file qwindowsurface_vgegl.cpp.

Constructors and Destructors

◆ QVGSharedContext()

QVGSharedContext::QVGSharedContext ( )

Definition at line 116 of file qwindowsurface_vgegl.cpp.

117  : context(0)
118  , refCount(0)
119  , widgetRefCount(0)
120  , engine(0)
121  , surface(EGL_NO_SURFACE)
122  , firstPixmap(0)
123 {
124 }
QVGPixmapData * firstPixmap
QVGPaintEngine * engine

◆ ~QVGSharedContext()

QVGSharedContext::~QVGSharedContext ( )

Definition at line 126 of file qwindowsurface_vgegl.cpp.

127 {
128  // Don't accidentally destroy the QEglContext if the reference
129  // count falls to zero while deleting the paint engine.
130  ++refCount;
131 
132  if (context)
134  delete engine;
135  if (context)
136  context->doneCurrent();
137  if (context && surface != EGL_NO_SURFACE)
139  delete context;
140 }
EGLSurface qt_vg_shared_surface(void)
bool doneCurrent()
Definition: qegl.cpp:485
bool makeCurrent(EGLSurface surface)
Definition: qegl.cpp:433
void destroySurface(EGLSurface surface)
Definition: qegl.cpp:415
QVGPaintEngine * engine

Properties

◆ context

QEglContext* QVGSharedContext::context

◆ engine

QVGPaintEngine* QVGSharedContext::engine

◆ firstPixmap

QVGPixmapData* QVGSharedContext::firstPixmap

◆ refCount

int QVGSharedContext::refCount

◆ surface

EGLSurface QVGSharedContext::surface

◆ widgetRefCount

int QVGSharedContext::widgetRefCount

Definition at line 110 of file qwindowsurface_vgegl.cpp.

Referenced by qt_vg_create_context(), and qt_vg_destroy_context().


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