summaryrefslogtreecommitdiffstats
path: root/opengl/java/com
Commit message (Collapse)AuthorAgeFilesLines
* Terminate EGL when an app goes in the backgroundRomain Guy2011-11-101-1/+6
| | | | | | | | This does not happen on high end gfx devices. This happens only if only one EGL context is initialized in the current process. Change-Id: Ibd1737efdf84eef8a84108b05795440d1ae9964e
* Properly refcount SurfaceTexture in the JNI layer.Romain Guy2011-06-151-2/+2
| | | | Change-Id: I4b4c8020c13b8d6ce0d302fe42410033bf5785a6
* Allows to render with an OpenGL context inside a TextureView.Romain Guy2011-05-021-4/+14
| | | | Change-Id: I59453f7fc3997f0502a1c5d325d37fed376fabc7
* Kill the global references in the OpenGL wrappers.Elliott Hughes2011-04-111-15/+16
| | | | | | | | | | | | | | | Just use jniThrowException instead. Note that it would be trivial to throw seemingly more appropriate exceptions (NullPointerException and OutOfMemoryException in particular), but I'm only attempting to preserve existing behavior here. I also found shadowing bugs in some of the special-case functions, which would previously always have leaked memory. This also moves an accidental change to a generated file (ActivityThread -> AppGlobals) into the generator, so it won't be overwritten in future. Change-Id: Iab570310b568cb406c60dd0e2b8211f8a36ae590
* Fix EGL JNI bugsRomain Guy2011-03-073-0/+47
| | | | | | | | | Bug #3461349 Before this change, eglGetCurrent*() could not be used to compare contexts, displays and surfaces at the Dalvik level. Change-Id: I442037dae37bc357b64810ab10c779b5754e9153
* These files had an older header.Dan Bornstein2010-12-076-95/+89
| | | | | | | This patch replaces the file headers with the approved Android header text. Change-Id: I63cbd21e9112dab404158fb65f74bc6ca5b07eac
* Some ActivityThread/ActivityManager cleanup.Dianne Hackborn2010-06-241-2/+2
| | | | | | | | | | | - Move PackageInfo out of ActivityThread, renaming to LoadedApk. - Rename some of the other PacakgeInfo inner classes to better represent what they are. - Rename HistoryRecord to ActivityRecord. - Introduce AppGlobals, to eventually let ActivityThread become package scoped. Change-Id: Ib714c54ceb3cdbb525dce3db9505f31042e88cf0
* Implement the GL11ExtensionPack APIs.Jack Palevich2010-01-281-8/+14
|
* Merge change Ibe6eac82Android (Google) Code Review2009-12-081-6/+70
|\ | | | | | | | | * changes: Implement Matrix Palette extension.
| * Implement Matrix Palette extension.Jack Palevich2009-12-081-6/+70
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds support for formerly-unimplemented methods: glCurrentPaletteMatrixOES glLoadPaletteFromModelViewMatrixOES glMatrixIndexPointerOES glWeightPointerOES The bulk of the changes are related to implementing the two PointerOES methods, which are implemented pretty much the same way as the existing Pointer methods were implemented. This change also changes the way glPointSizePointerOES is implemented, making it act like all the other Pointer methods. (Previously it was not handling non-direct-buffer arguments correctly.) Fixes bug 2308625 "Support matrix palette skinning in JSR239 and related APIs" Also updated GLLogWraper to fix two bugs in GLLogWrapper that were discovered while testing matrix palette skinning support: a) Handle trying to print the contents of null-but-enabled buffers. (It's not legal to draw with null-but-enabled buffers, and in fact some OpenGL drivers will crash if you try to render in this state, but there's no reason the GLLogWrapper should crash while trying to debug this situation. b) Don't read off the end of a vertex buffer with non-zero position when printing the entire contents of the vertex buffer. Now we only print from the current position to the end of the buffer.
* | Improve error reporting by always returning the publicJack Palevich2009-12-041-17/+44
|/ | | | | | | | | | EGL10.EGL_NO_XXX objects for displays, surfaces, and contexts. This allows clients to compare the returned object against the public EGL10.EGL_NO_XXX object using a simple == operation. This fixes bug 2303947 "Java layer EGL API makes it difficult to tell when certain methods have failed"
* Allow pre-Donut apps to use indirect Buffers in GL11 Pointer methods.Jack Palevich2009-06-151-3/+30
| | | | | | | | Apps targeting Donut and newer will throw an exception. We use a heuristic to determine whether an app is pre-Donut or not: We take the address space's __progname, and use that as the application's package name. For simple applications this is correct.
* Require native-order direct buffers for glXXXPointer APIs.Jack Palevich2009-05-071-27/+27
| | | | | | | | | | This was always a documented restriction, but was not enforced by the runtime until now. Until now, if you passed in some other kind of buffer, it would sometimes work, and sometimes fail. The failures happened when the Java VM moved the buffer data while OpenGL was still holding a pointer to it. Now we throw an exception rather than leaving the system in a potentially bad state.
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-036-0/+2362
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-036-2362/+0
|
* Initial ContributionThe Android Open Source Project2008-10-216-0/+2362