summaryrefslogtreecommitdiffstats
path: root/opengl
Commit message (Collapse)AuthorAgeFilesLines
* Create samples showing how to call OpenGL from JNI libraries.Jack Palevich2009-09-2316-2/+958
|
* Allow GLSurfaceView clients to customize EGL Surfaces and Contexts.Jack Palevich2009-09-211-94/+184
| | | | This API is hidden for now, will expose once it's been tested more.
* Fix GLSurfaceView to sync surfaceDestroyed with GL rendering threadJack Palevich2009-09-211-1/+26
| | | | | | Until now we had a race condition where the GL rendering thread could continue rendering a frame after we have returned from the SurfaceHolder.Callback.surfaceDestroyed notification.
* log an error when loading an existing GL driver failsMathias Agopian2009-09-201-5/+14
|
* Draw a green triangle using OpenGL 2.0 APIs.Jack Palevich2009-09-181-112/+235
|
* Add additional error checking, exit early if errors occur.Jack Palevich2009-09-171-18/+59
|
* Add EGL call error checking.Jack Palevich2009-09-161-4/+52
|
* AGL's glCompressedTexImage2D now checks the imageSize parameter.Jack Palevich2009-09-101-5/+55
| | | | | | This parameter indicates how many bytes of the image data are valid. Previously this parameter was ignored.
* Simple app to create a gl2 context and dump the strings.Jason Sams2009-09-012-0/+104
|
* Calculate specular lighting correctlyMartin Storsjo2009-08-251-3/+8
| | | | | | Since the lighting calculations are done in object space, the vector from the object to the viewer also needs to be transformed to object space.
* If FLAGS_2D_PROJECTION is set, the MVP matrices need updating when changing ↵Martin Storsjo2009-08-251-0/+2
| | | | the viewport.
* fix a bug recently introduced where EGL couldn't be initialized again after ↵Mathias Agopian2009-08-242-76/+120
| | | | it had been terminated once
* first step for fixing [2066786] EGL object lifetime management doesn't ↵Mathias Agopian2009-08-211-71/+243
| | | | | | | | | | | | | | | | respect the EGL spec this change fixes the lifetime mgt of EGLSurface, EGLContext and EGLImageKHR in the EGL wrapper. EGLDisplay is still somewhat bogus and libagl's EGL is still incorrect. The idea of the change is that EGL objects are put in a list when created and removed when destroyed. Before each use, we first verify if the object is in the list and if so a reference is taken and kept for the scope of the whole EGL API being called, if not, an error is returned. Upon object destruction, the object is simply marked as "terminated" (this is not protected by a lock because it doesn't really matter). This flag is only used to deny access to the object by other APIs while it's still valid (for instance current or being used by another function in another thread). A reference is also removed and the object can then actually be destroyed when going out of scope.
* fix a bug in ComponentSizeChooser where it could pick a software EGLConfig ↵Mathias Agopian2009-08-202-17/+19
| | | | | | instead of a better h/w one. We now just try to honor the stencil / depth buffer "at least", while doing a "shortest distance" on the colors.
* better error handling in EGLMathias Agopian2009-08-201-12/+46
|
* fix bug [2021677] egl driver unloaded after eglTerminate() is calledMathias Agopian2009-08-173-105/+100
| | | | | | | | | | 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
* Surface::GPU and Surface::HARDWARE are now deprecated; they will be set ↵Mathias Agopian2009-08-131-1/+0
| | | | | | automatically if needed. this also ripples into the window manager API by making some constant there deprecated as well.
* Better error handling in EGL extensionsMathias Agopian2009-08-121-11/+9
|
* second take, hopefully this time it doesn't break one of the builds: ↵Mathias Agopian2009-08-111-0/+4
| | | | "SurfaceFlinger will now allocate buffers based on the usage specified by the clients. This allows to allocate the right kind of buffer automatically, without having the user to specify anything."
* Merge change 20893Android (Google) Code Review2009-08-111-2/+5
|\ | | | | | | | | * changes: show that we need to glClear to be fast(er)
| * show that we need to glClear to be fast(er)Mathias Agopian2009-08-111-2/+5
| |
* | Merge change 20892Android (Google) Code Review2009-08-111-4/+0
|\ \ | |/ |/| | | | | * changes: Revert "SurfaceFlinger will now allocate buffers based on the usage specified by the clients. This allows to allocate the right kind of buffer automatically, without having the user to specify anything."
| * Revert "SurfaceFlinger will now allocate buffers based on the usage ↵Fred Quintana2009-08-111-4/+0
| | | | | | | | | | | | specified by the clients. This allows to allocate the right kind of buffer automatically, without having the user to specify anything." This reverts commit 8b76a0ac6fbf07254629ed1ea86af014d5abe050.
* | option to use drawtexture at compile timeMathias Agopian2009-08-111-8/+12
| |
* | fix and extend the filter test a bitMathias Agopian2009-08-111-4/+46
|/
* SurfaceFlinger will now allocate buffers based on the usage specified by the ↵Mathias Agopian2009-08-111-0/+4
| | | | | | | clients. This allows to allocate the right kind of buffer automatically, without having the user to specify anything. This change makes SurfaceHolder.setType(GPU) obsolete (it's now ignored). Added an API to android_native_window_t to allow extending the functionality without ever breaking binary compatibility. This is used to implement the new set_usage() API. This API needs to be called by software renderers because the default is to use usage flags suitable for h/w.
* workaround a bug in the SGX driver that would prevent eglGetConfig to work ↵Mathias Agopian2009-08-107-16/+25
| | | | properly
* add support for RGBX_8888Mathias Agopian2009-08-071-0/+2
|
* minor code clean-upMathias Agopian2009-08-071-85/+101
|
* update most gl tests to use EGLUtilsMathias Agopian2009-08-069-152/+88
|
* added two EGL helpers for selecting a config matching a certain pixelformat ↵Mathias Agopian2009-08-061-31/+11
| | | | or native window type
* added a gl swapinterval testMathias Agopian2009-08-053-5/+178
|
* opengl testsMathias Agopian2009-08-054-7/+231
|
* log opengl-call-with-no-context only once per thread, instead of for each ↵Mathias Agopian2009-07-311-2/+9
| | | | function call
* be more robust when errors occur upon EGL surface creation (ie: don't crash)Mathias Agopian2009-07-311-9/+18
|
* fixed some issues with the software renderer when surfaces are made current.Mathias Agopian2009-07-301-19/+31
| | | | | | | | | | there was several issues: - when a surface was made non-current, the last frame wasn't shown and the buffer could stay locked - when a surface was made current the 2nd time, it would not dequeue a new buffer now, queue/dequeue are done when the surface is made current. for this to work, a new query() hook had to be added on android_native_window_t, it allows to retrieve some attributes of a window (currently only width and height).
* GLESv2 couldn't be loaded due to wrong path specificationMathias Agopian2009-07-291-1/+1
|
* am 280436ac: Merge change 8261 into donutAndroid (Google) Code Review2009-07-221-47/+0
|\ | | | | | | | | | | | | Merge commit '280436accc45c1883766a98499148439fa044531' * commit '280436accc45c1883766a98499148439fa044531': Remove recently-added android.opengl.Version API
| * Remove recently-added android.opengl.Version APIJack Palevich2009-07-221-47/+0
| | | | | | | | | | | | There's another already-existing way of obtaining this information, the ConfigurationInfo.reqGlEsVersion field returned from ActivityManager.getDeviceConfigurationInfo.
* | am ef6b66cb: Merge change 8222 into donutAndroid (Google) Code Review2009-07-221-0/+47
|\ \ | |/ | | | | | | | | | | Merge commit 'ef6b66cbbbe7ae8ee0450cbbaae4194b069679a1' * commit 'ef6b66cbbbe7ae8ee0450cbbaae4194b069679a1': Add a public API that reports the supported OpenGLES API level.
| * Add a public API that reports the supported OpenGLES API level.Jack Palevich2009-07-221-0/+47
| |
* | Merge commit 'goog/readonly-korg-master' into merge_korg_masterJean-Baptiste Queru2009-07-161-1/+1
|\ \ | | | | | | | | | | | | | | | * commit 'goog/readonly-korg-master': Fixed Android issue #400, where the Intent documentation was inaccurate in a number of places, undoubtedly causing untold grief to innumerable masses. Bug Fixed for libagl.
| * | Bug Fixed for libagl.Shin-ichiro KAWASAKI2009-07-071-1/+1
| | |
| * | AI 145249: Correct misspelling of constant RENDERMODE_CONTUOUSLY --> ↵Jack Palevich2009-04-081-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | RENDERMODE_CONTINUOUSLY BUG=1766678 Automated import of CL 145249
| * | AI 145244: Fully document GLSurfaceView and related classes.Jack Palevich2009-04-081-51/+349
| | | | | | | | | | | | | | | | | | BUG=1766685 Automated import of CL 145244
| * | Automated import from //branches/cupcake/...@142485,142485Jack Palevich2009-03-241-20/+194
| | |
| * | Automated import from //branches/cupcake/...@142481,142481Jack Palevich2009-03-242-21/+38
| | |
| * | Automated import from //branches/cupcake/...@141857,141857Jack Palevich2009-03-241-31/+23
| | |
* | | remove libagl's dependency on gralloc_priv.hMathias Agopian2009-07-154-23/+8
| | |
* | | this header file is not needed anymoreMathias Agopian2009-07-141-271/+0
| | |