summaryrefslogtreecommitdiffstats
path: root/native/android/native_window.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Add ParcelSurfaceTexture Java class to enable ISurfaceTexture sharing via ↵tedbo2011-06-091-1/+9
| | | | | | | | | | | Binder. This adds a new ParcelSurfaceTexture.java class that can be instantiated with a SurfaceTexture and used to send the corresponding ISurfaceTexture interface to another process via Binder. The ParcelSurfaceTexture java object can then be used to create an ANativeWindow based on the SurfaceTextureClient interface. Change-Id: Ie38ea948b866e52f36a6d0f6cde19b54a8546817
* ANativeWindow_setBuffersGeometry now returns proper error codesMathias Agopian2011-03-311-2/+1
| | | | Change-Id: Iac59d513fa1d4a55b8378000714d344ef3e2e0a4
* SurfaceTexture: disallow unsupported uses.Jamie Gennis2011-03-151-0/+6
| | | | | | | | | | This change makes the ANativeWindow_lock NDK function error out if it is passed an ANativeWindow with a concrete type that is not Surface. It also makes eglCreateWindowSurface fail if it is passed a SurfaceTextureClient as its 'window' argument. Bug: 4087277 Change-Id: Ie68c50c52d88f72d8a387f6c094908044c83a88c
* Bug 3515073 Add ANativeWindow_fromSurfaceTextureGlenn Kasten2011-03-041-0/+9
| | | | | | This is similar to ANativeWindow_fromSurface. Change-Id: Iaadc06a5d0d50685c34876aa89488c16e7cfaa65
* add format parameter to setBufferGeometryMathias Agopian2010-10-251-2/+2
| | | | Change-Id: I7cc2acdc6e65e9468ecfd5b2f22e6b495a383be9
* Add ANativeWindow API for directly drawing to the surface bits.Dianne Hackborn2010-07-091-4/+54
| | | | | | | | | | | Also other cleanup and fixes: - We now properly set the default window format to 565. - New APIs to set the window format and flags from native code. - Tweaked glue for simpler handling of the "destroy" message. - Um, other stuff. Change-Id: Id7790a21a2fa9a19b91854d225324a7c1e7c6ade
* Get to the point of being able to do native drawing.Dianne Hackborn2010-07-011-0/+6
| | | | | | A little cleanup. Change-Id: I37ef0557abf330d91d6fe47e81d062206b3bc346
* Make real API for native code to get its window.Dianne Hackborn2010-07-011-0/+41
Added implementation to use ANativeWindow and provide it to a NativeActivity. Change-Id: I890d71b6e15d4af71e6cf81b327961d7061ec1c2