[Webkit-unassigned] [Bug 57154] [Qt] Make OpenGL symbol resolver transparent

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Mar 29 08:57:52 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=57154





--- Comment #12 from Jarkko Sakkinen <jarkko.j.sakkinen at gmail.com>  2011-03-29 08:57:53 PST ---
I'll explain the basic idea in the symbol resolver so that is easier to follow the patch.

This is simple and stupid symbol resolver. OpenGL symbols are defined in GraphicsContext3DOpenGLQt.h. This is a data file that is used in class definition and constructor to define and initialize OpenGL symbols that need to be resolved.

Definition is done as follows:
#define GL_PROC(ReturnValue, Proc, Params) \
    typedef ReturnValue (APIENTRY* Proc##Type) Params; \
    Proc##Type Proc;
#include "GraphicsContext3DOpenGLQt.h"

Initialization is done as follows:
#if defined (QT_OPENGL_ES_2)
#define GL_PROC(ReturnValue, Proc, Params) Proc = ::Proc;
#else
#define GL_PROC(ReturnValue, Proc, Params) Proc = reinterpret_cast<GraphicsContext3D::Proc##Type>(m_internal->getProcAddress(#Proc));
#endif

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list