Mathias Agopian
923c661a86
fix bug [2021677] egl driver unloaded after eglTerminate() is called
...
refactored the code so that:
- EGL APIs that can be called before or after eglInitialize() will work by loading the drivers first
- make eglGetDisplay() a lot more efficient
- make sure that EGL drivers are loaded in a thread-safe way
- don't unload the drivers upon calling eglTerminate(), they're now never unloaded, since there is no safe way to do it (some thread could be running)
- updated our EGL version to 1.4
- return better error codes if errors happen during initialization
2009-08-17 18:07:06 -07:00
Mathias Agopian
24e5f52901
Better error handling in EGL extensions
2009-08-12 21:18:15 -07:00
Mathias Agopian
d274eae545
log opengl-call-with-no-context only once per thread, instead of for each function call
2009-07-31 16:23:03 -07:00
Mathias Agopian
574c16f9f8
GLESv2 couldn't be loaded due to wrong path specification
2009-07-29 11:10:29 -07:00
Android (Google) Code Review
2521f47c4d
am 46e28db8: Merge change 6713 into donut
...
Merge commit '46e28db8818332e3cda4cc410cc89a1ed7ce4db6'
* commit '46e28db8818332e3cda4cc410cc89a1ed7ce4db6':
fix for [1969185] valgrind errors in new gl stuff
2009-07-09 17:35:26 -07:00
Mathias Agopian
dacd7a33c4
fix for [1969185] valgrind errors in new gl stuff
2009-07-09 17:33:15 -07:00
Marco Nelissen
fc865658b4
Make opengl loader use an absolute path.
2009-07-07 16:18:18 -07:00
Mathias Agopian
8d2e83b9f4
Add eglGetRenderBufferANDROID() extension, which returns the current render buffer as an android_native_buffer_t*
2009-06-25 00:02:44 -07:00
Mathias Agopian
af74213546
fix [1942438] eglGetCurrentSurface() returns bogus value
2009-06-25 00:01:11 -07:00
Mathias Agopian
f51f9c8af3
fix [1942438] eglGetCurrentSurface() returns bogus value
2009-06-24 23:59:16 -07:00
Mathias Agopian
f909cb6c69
remove some spurious debuging LOGD
2009-06-03 18:30:22 -07:00
Mathias Agopian
acdebe352d
fix/clean these Android.mk following dbort and joeo's comments
2009-06-03 18:26:58 -07:00
Mathias Agopian
de58697644
implement a real loader for EGL drivers
...
we now look for a config file in /system/lib/egl/egl.cfg that describes the association of a display to a driver.
these drivers are named: /system/lib/egl/lib{[EGL|GLESv1_CM|GLESv2] | GLES}_$TAG.so
2009-05-28 20:31:40 -07:00
Mathias Agopian
b1a39d67be
Added most of the support needed for GLES 2.x
2009-05-27 20:38:06 -07:00
Mathias Agopian
5c846bd6cf
make sure to fail to software when the h/w renderer cannot be initialized
2009-05-20 17:58:36 -07:00
Mathias Agopian
d8fb7b586f
remove libEGL and libGLESv1_CM dependencies on libutils and libui
2009-05-17 18:50:16 -07:00
Mathias Agopian
d717598616
Merge commit 'goog/master' into merge_master
...
Conflicts:
opengl/libagl/Android.mk
opengl/libs/Android.mk
opengl/libs/egl_impl.h
2009-05-14 22:44:23 -07:00
Mathias Agopian
eccc8cfb2f
should help fix the Simulator build.
2009-05-13 00:19:22 -07:00
Mathias Agopian
94aa09680a
should fix the build.
2009-05-08 16:05:23 -07:00
Mathias Agopian
e6bf8b32b6
fix EGL extension string names
2009-05-07 15:07:52 -07:00
Mathias Agopian
df3ca30bf6
created an new EGL extension called ANDROID_swap_rectangle
...
ANDROID_swap_rectangle allows to specify the rectangle affected by eglSwapBuffers(), anything outside of this rectangle is unchanged. in particular EGL_BUFFER_DESTROYED only applies to that rectangle. This extension as well as EGL_BUFFER_PRESERVED allow major optimizations on surfaceflinger, which can redraw only the dirty area during compositing.
However, ANDROID_swap_rectangle allows further optimizations in EGL by reducing the amount of copy-back needed. ANDROID_swap_rectangle is particularily important for software implementations.
2009-05-07 15:07:33 -07:00
Mathias Agopian
7be3e5d2d8
Merge commit 'goog/master' into merge_master
...
Conflicts:
libs/surfaceflinger/Layer.cpp
libs/surfaceflinger/SurfaceFlinger.cpp
opengl/libagl/egl.cpp
opengl/libs/EGL/egl.cpp
opengl/libs/GLES_CM/gl.cpp
opengl/libs/GLES_CM/gl_api.in
opengl/libs/gl_entries.in
opengl/libs/tools/glapigen
2009-04-30 14:43:18 -07:00
Mathias Agopian
3d8817935b
oops forgot to remove a LOGD when loading an opengl driver
2009-04-24 18:16:44 -07:00
Mathias Agopian
1c2be6af86
Make sure to map undefined OES functions to their non-OES counterpart if it exists.
2009-04-23 19:57:10 -07:00
Mathias Agopian
b519abb606
use gl.h to generate the *.in files. we are now supporting the full gl.h and glext.h apis.
2009-04-23 18:05:44 -07:00
Mathias Agopian
53238bddea
integrate some OpenGL ES changes back from master_gl in preparation of opening GLES to the NDK.
2009-04-23 13:45:48 -07:00
Mathias Agopian
076b1cc3a9
Integrate from //sandbox/mathias/donut/...@145728
...
SurfaceFlinger rework for new EGL driver model support.
2009-04-10 14:24:30 -07:00
Jack Palevich
749c63dbff
Automated import from //branches/master/...@142578,142578
2009-03-25 15:12:17 -07:00
Jack Palevich
87d80228cc
Automated import from //branches/donutburger/...@142484,142484
2009-03-24 22:48:26 -07:00
The Android Open Source Project
edbf3b6af7
auto import from //depot/cupcake/@135843
2009-03-03 19:31:44 -08:00
The Android Open Source Project
d5193d9394
auto import from //depot/cupcake/@135843
2009-03-03 18:28:45 -08:00
The Android Open Source Project
43aa2b1cbf
auto import from //depot/cupcake/@132589
2009-03-03 14:04:24 -08:00
The Android Open Source Project
0bb03408de
auto import from //depot/cupcake/@137055
2009-03-02 22:54:33 -08:00
The Android Open Source Project
d2bd26d326
auto import from //branches/cupcake/...@132276
2009-02-19 10:57:31 -08:00
The Android Open Source Project
a6938bab1f
auto import from //branches/cupcake/...@130745
2009-02-10 15:44:00 -08:00