summaryrefslogtreecommitdiff
path: root/native/android/native_window.cpp
AgeCommit message (Collapse)Author
2017-02-23fallout of libandroid.so splitMathias Agopian
Test: compiled & booted Bug: 35164655 Change-Id: I786167a21453e17493969cdacfc9d31bdb781d98
2017-02-10separate the JNI part of the NDK into their own sourceMathias Agopian
Test: built and booted device Bug: 35164655 Change-Id: I944c9f28730b82e8c428b5384dc57e1b296144b2
2012-08-27Add plumbing for new surface flinger display API.Jeff Brown
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
2012-04-10ANativeWindow: support for application buffer dimensionsMichael I. Gold
Make the NDK use the new native_window_set_buffers_user_dimensions to implement the ANativeWindow_setBuffersGeometry call. Change-Id: I2d5981cbd619ee2e090fe8f2ddc69217915c9d9e
2012-02-27fix libgui header locationMathias Agopian
Change-Id: Iec71706cdd4f29c6904993648ce873e83ef9cafe
2011-10-21Remove obsolete NativeWindow_fromSurfaceTextureGlenn Kasten
Change-Id: I9351103929da515cb411fb2e7906bb9f27c4da20
2011-08-11Remove ParcelSurfaceTexture and update MediaPlayerTed Bonkenburg
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
2011-07-19Add set_scaling_mode() to ANativeWindow.Mathias Agopian
This allows to specify the scaling mode independently from the buffer size. Change-Id: Iaa2baa660445531a97d3fac192e580f4929c5d3b
2011-07-15move lock/unlock implementaion outside of Surface into SurfaceTextureClientMathias Agopian
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
2011-06-09Add ParcelSurfaceTexture Java class to enable ISurfaceTexture sharing via ↵tedbo
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
2011-03-31ANativeWindow_setBuffersGeometry now returns proper error codesMathias Agopian
Change-Id: Iac59d513fa1d4a55b8378000714d344ef3e2e0a4
2011-03-15SurfaceTexture: disallow unsupported uses.Jamie Gennis
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
2011-03-04Bug 3515073 Add ANativeWindow_fromSurfaceTextureGlenn Kasten
This is similar to ANativeWindow_fromSurface. Change-Id: Iaadc06a5d0d50685c34876aa89488c16e7cfaa65
2010-10-25add format parameter to setBufferGeometryMathias Agopian
Change-Id: I7cc2acdc6e65e9468ecfd5b2f22e6b495a383be9
2010-07-09Add ANativeWindow API for directly drawing to the surface bits.Dianne Hackborn
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
2010-07-01Get to the point of being able to do native drawing.Dianne Hackborn
A little cleanup. Change-Id: I37ef0557abf330d91d6fe47e81d062206b3bc346
2010-07-01Make real API for native code to get its window.Dianne Hackborn
Added implementation to use ANativeWindow and provide it to a NativeActivity. Change-Id: I890d71b6e15d4af71e6cf81b327961d7061ec1c2