• Home
  • History
  • Annotate
  • only in /external/chromium_org/third_party/mesa/src/src/egl/main/
NameDateSize

..12-Mar-20154 KiB

.gitignore12-Mar-20159

egl.def12-Mar-2015687

egl.pc.in12-Mar-2015275

eglapi.c12-Mar-201542.8 KiB

eglapi.h12-Mar-201510.3 KiB

eglarray.c12-Mar-20154.7 KiB

eglarray.h12-Mar-20152.3 KiB

eglcompiler.h12-Mar-20153.8 KiB

eglconfig.c12-Mar-201525.3 KiB

eglconfig.h12-Mar-20157.2 KiB

eglcontext.c12-Mar-201517.8 KiB

eglcontext.h12-Mar-20154.1 KiB

eglcurrent.c12-Mar-20158 KiB

eglcurrent.h12-Mar-20152.8 KiB

egldefines.h12-Mar-20151.6 KiB

egldisplay.c12-Mar-201510.6 KiB

egldisplay.h12-Mar-20156 KiB

egldriver.c12-Mar-201515.2 KiB

egldriver.h12-Mar-20153.6 KiB

eglfallbacks.c12-Mar-20154.4 KiB

eglglobals.c12-Mar-20152.5 KiB

eglglobals.h12-Mar-20151.8 KiB

eglimage.c12-Mar-20153.3 KiB

eglimage.h12-Mar-20153.7 KiB

egllog.c12-Mar-20155 KiB

egllog.h12-Mar-20151.9 KiB

eglmisc.c12-Mar-20154.9 KiB

eglmisc.h12-Mar-20151.6 KiB

eglmode.c12-Mar-20159.6 KiB

eglmode.h12-Mar-20152.7 KiB

eglmutex.h12-Mar-20152.3 KiB

eglscreen.c12-Mar-20155.9 KiB

eglscreen.h12-Mar-20153.5 KiB

eglstring.c12-Mar-20151.7 KiB

eglstring.h12-Mar-20151.8 KiB

eglsurface.c12-Mar-201513.8 KiB

eglsurface.h12-Mar-20154.6 KiB

eglsync.c12-Mar-20153.3 KiB

eglsync.h12-Mar-20153.3 KiB

egltypedefs.h12-Mar-20152.2 KiB

Makefile.am12-Mar-20153.7 KiB

README.txt12-Mar-20152 KiB

SConscript12-Mar-20151 KiB

README.txt

1
2
3Notes about the EGL library:
4
5
6The EGL code here basically consists of two things:
7
81. An EGL API dispatcher.  This directly routes all the eglFooBar() API
9   calls into driver-specific functions.
10
112. Fallbacks for EGL API functions.  A driver _could_ implement all the
12   EGL API calls from scratch.  But in many cases, the fallbacks provided
13   in libEGL (such as eglChooseConfig()) will do the job.
14
15
16
17Bootstrapping:
18
19When the apps calls eglOpenDisplay() a device driver is selected and loaded
20(look for dlsym() or LoadLibrary() in egldriver.c).
21
22The driver's _eglMain() function is then called.  This driver function
23allocates, initializes and returns a new _EGLDriver object (usually a
24subclass of that type).
25
26As part of initialization, the dispatch table in _EGLDriver->API must be
27populated with all the EGL entrypoints.  Typically, _eglInitDriverFallbacks()
28can be used to plug in default/fallback functions.  Some functions like
29driver->API.Initialize and driver->API.Terminate _must_ be implemented
30with driver-specific code (no default/fallback function is possible).
31
32
33A bit later, the app will call eglInitialize().  This will get routed
34to the driver->API.Initialize() function.  Any additional driver
35initialization that wasn't done in _eglMain() should be done at this
36point.  Typically, this will involve setting up visual configs, etc.
37
38
39
40Special Functions:
41
42Certain EGL functions _must_ be implemented by the driver.  This includes:
43
44eglCreateContext
45eglCreateWindowSurface
46eglCreatePixmapSurface
47eglCreatePBufferSurface
48eglMakeCurrent
49eglSwapBuffers
50
51Most of the EGLConfig-related functions can be implemented with the
52defaults/fallbacks.  Same thing for the eglGet/Query functions.
53
54
55
56
57Teardown:
58
59When eglTerminate() is called, the driver->API.Terminate() function is
60called.  The driver should clean up after itself.  eglTerminate() will
61then close/unload the driver (shared library).
62
63
64
65
66Subclassing:
67
68The internal libEGL data structures such as _EGLDisplay, _EGLContext,
69_EGLSurface, etc should be considered base classes from which drivers
70will derive subclasses.
71
72