summaryrefslogtreecommitdiffstats
path: root/native/android/native_window.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Add plumbing for new surface flinger display API.Jeff Brown2012-08-271-1/+1
| | | | | | | | | | | | | | Cleaned up the implementation of Surface and SurfaceSession to use more consistent naming and structure. Added JNI for all of the new surface flinger display API calls. Enforced the requirement that all Surfaces created by the window manager be named. Updated the display manager service to use the new methods. Change-Id: I2a658f1bfd0437e1c6f9d22df8d4ffcce7284ca2
* ANativeWindow: support for application buffer dimensionsMichael I. Gold2012-04-101-6/+9
| | | | | | | Make the NDK use the new native_window_set_buffers_user_dimensions to implement the ANativeWindow_setBuffersGeometry call. Change-Id: I2d5981cbd619ee2e090fe8f2ddc69217915c9d9e
* fix libgui header locationMathias Agopian2012-02-271-1/+1
| | | | Change-Id: Iec71706cdd4f29c6904993648ce873e83ef9cafe
* Remove obsolete NativeWindow_fromSurfaceTextureGlenn Kasten2011-10-211-8/+0
| | | | Change-Id: I9351103929da515cb411fb2e7906bb9f27c4da20
* Remove ParcelSurfaceTexture and update MediaPlayerTed Bonkenburg2011-08-111-9/+1
| | | | | | | | | This removes the ParcelSurfaceTexture class since that functionality has been folded into Surface.java. The change also updates the MediaPlayer to get rid of setParcelSurfaceTexture() and modifies setTexture() to use the new Surface functionality in order to simplify the code. Change-Id: Iafa75ea3188263928128325d8a726786971b4de4
* Add set_scaling_mode() to ANativeWindow.Mathias Agopian2011-07-191-1/+9
| | | | | | | This allows to specify the scaling mode independently from the buffer size. Change-Id: Iaa2baa660445531a97d3fac192e580f4929c5d3b
* move lock/unlock implementaion outside of Surface into SurfaceTextureClientMathias Agopian2011-07-151-32/+2
| | | | | | | | | | This makes ANativeWindow_lock/ANativeWindow_unlockAndPost work with ANativeWindows implemented by Surface and SurfaceTextureClient. Also, Surface now inherits directly from SurfaceTextureClient. Bug: 5003724 Change-Id: I9f285877c7bae9a262e9a7af91c2bae78804b2ef
* 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