summaryrefslogtreecommitdiffstats
path: root/include/system/window.h
Commit message (Collapse)AuthorAgeFilesLines
* system/window.h: add deprecation warningsMark Salyzyn2014-05-231-1/+18
| | | | Change-Id: I38de3d281f28e0750b4abb86f28509f98dfc7a72
* include: cleanup for -Wsystem-headerMark Salyzyn2014-05-231-6/+10
| | | | | | | - warnings as errors, or errors introduced when -Wsystem-header was experimentally introduced. Change-Id: Ia8f5b3c1c1096e191741223d52526aa48c7f1cc4
* move sync headers from include to libsyncRom Lemarchand2014-01-031-1/+0
| | | | | | Make sw_sync.h private Change-Id: I0b120ebe81fd4a191b7aa4b6a8de4f64d16e2b3e
* Fix rotation in camera2 APIMathias Agopian2013-09-171-1/+4
| | | | | Bug: 10804238 Change-Id: I093945789d9c6d373392fc9dfd18ec2c6058d3b9
* Window: Add query for consumer usage bits.Eino-Ville Talvala2013-07-301-1/+7
| | | | | Bug: 9592202 Change-Id: Ied2fdb985dc59dd9c0f26c515353abdc37f0eb77
* Refactoring: Rename SurfaceTextureClient to SurfaceMathias Agopian2013-02-151-1/+0
| | | | Change-Id: Ie745d9adf5465834bb8bf751a2f88b19435fdf46
* Move dequeue-buffer-and-wait out-of-lineJesse Hall2012-10-011-11/+2
| | | | | | | | | The dequeueBuffer_DEPRECATED function also waits for the buffer fence, so we can just call that. That way the wait call is compiled into our code (instead of driver code) and we can see/modify it for debugging. Bug: 7217641 Change-Id: Ie2ea85ed1543a4ff7986d0162aee773e93591309
* ANW: fix my fix for a file descriptor leakJamie Gennis2012-09-201-1/+1
| | | | Change-Id: Ief7b973fbdb76920abed19707963a0c3d306af31
* ANW: fix an fd leakJamie Gennis2012-09-201-3/+2
| | | | Change-Id: Id44cae6732c6694d2f470cbdfa5f59e7474f704f
* ANativeWindow: update queue/dequeue/cancel w/ syncJamie Gennis2012-06-191-7/+128
| | | | | | | | | | This change deprecates the existing queueBuffer, dequeueBuffer, lockBuffer, and cancelBuffer functions, and replaces them with a queueBuffer, dequeueBuffer, and cancelBuffer function that accepts or returns a libsync fence file descriptor. It also adds the native_window_dequeue_buffer_and_wait convenience function. Change-Id: Ifaac91164d014993d7d1d96e0303e04e429f4d00
* ANativeWindow: add set_post_transform_cropJamie Gennis2012-05-071-16/+38
| | | | | | | | | This change replaces the set_active_rect function with set_post_transform_crop. There is a temporary set_active_rect function that calls set_post_transform_crop for compatibility while commiting to multiple git repositories. Change-Id: Ia7c171186fd277d5a36f6068ace93a9ce1c82d28
* ANativeWindow: fix up some commentsJamie Gennis2012-04-301-2/+3
| | | | | | | This change clarifies in the ANativeWindow perform docs which perform calls are private to the framework and should not be made by code below the HAL level. Change-Id: Ibfeba0760d9a3f74996e6358d5ad89a408f80dfe
* Merge "ANativeWindow: add set_active_rect"Mathias Agopian2012-04-241-4/+33
|\
| * ANativeWindow: add set_active_rectJamie Gennis2012-04-171-4/+33
| | | | | | | | | | | | This change adds the set_active_rect 'method' to the ANativeWindow interface. Change-Id: Iae910d259ba5c3e94594fa1ffec5fc0662546ad0
* | add query for finding out if consumer runs behind of producerJamie Gennis2012-04-241-1/+7
|/ | | | Change-Id: I3baae99d4da00d962d3afe6bdfc16e3eb04ede24
* Merge "Added flag for cropped scaling mode"Mathias Agopian2012-04-121-0/+4
|\
| * Added flag for cropped scaling modeDaniel Lam2012-04-121-0/+4
| | | | | | | | | | | | | | NATIVE_WINDOW_SCALING_MODE_CROP forces the SurfaceTexture to match the crop rect's aspect ratio to that of the window. Change-Id: Id126b106eac06fd34d2d650a1bc66ffbac26c501
* | window: add API for native_window_set_buffers_user_dimensionsMichael I. Gold2012-04-101-4/+32
|/ | | | | | | | | | | Add token and wrapper function for a new private function native_window_set_buffers_user_dimensions which overrides the native window size as the default buffer size. This is intended for use primarily by ANativeWindow_SetBuffersGeometry so that application-set buffer dimensions may co-exist with pre-rotation in e.g. the GLES driver which calls native_window_set_buffers_dimension. Change-Id: I6c0fc334c070290cc15b04daae1484d0a28cd8ad
* add missing includeMathias Agopian2012-02-251-0/+1
| | | | Change-Id: Id93278c59cfdf72a62a4fe26178bd5c3e43b089e
* Document ANativeWindow's buffer refcountingJesse Hall2011-12-121-12/+30
| | | | Change-Id: I5454e90afd1a1b7d4a75c503f8dca712dba33790
* fix a typo that prevented api_connect/api_disconnect to workMathias Agopian2011-08-031-4/+4
| | | | | | also make the original connect/disconnect inlines be no-ops. Change-Id: Ic723e21455491c63ccbbcd01d3a47cd7ed788319
* connect/disconnect is now deprecated.Mathias Agopian2011-07-291-21/+39
| | | | | | | | | | | these hooks are replaced by api_connect/api_disconnect which serve exactly the same purpose than before. the old hooks are deprecated because they won't be called from the gl driver anymore, but instead will be called by our EGL wrapper. to maintain binary compatibility it was necessary to introduce these new hooks. Change-Id: I11756a5d99e3ea3d6fb61b943f82037932dfa56a
* support for "Add an ANativeWindow API for SurfaceFlinger to suggest an ↵Mathias Agopian2011-07-191-0/+58
| | | | | | | optimal buffer orientation" Bug: 4487161 Change-Id: I36708fd155415adbb666137692252381c19abcf6
* Add lock/unlock perform codesMathias Agopian2011-07-131-1/+5
| | | | | | | these will be used to implement lock/unlock on surfacetexture. Change-Id: I75f8d8dd136433bd5d61610caeb763d836f8b4e7
* Add setScalingMode to ANativeWindowMathias Agopian2011-07-131-23/+48
| | | | | | | | Also cleanup the header a bit. Give fixed values to enum because these can never change. And try to make all comments C (as opposed to C++) Change-Id: Ie0914ccd81a0231f32e8c21a8ff730985c5c3607
* ANativeWindow: add more connectable APIsJamie Gennis2011-07-121-1/+17
| | | | | | | | This change adds three new possible values for the 'api' argument to native_window_connect: CPU, MEDIA and CAMERA. Change-Id: I9305a5c0c87ab06a2c2bd7c585f54c7c7470408a Bug: 5020877
* ANativeWindow: add setters for dimensions and fmtJamie Gennis2011-07-071-8/+42
| | | | | | | | | | | This change adds two new 'perform' setters to set the dimensions and pixel format of the buffers that will be dequeued from the ANativeWindow. These new setters provide the same functionality as _SET_BUFFERS_GEOMETRY, but allow the format and dimensions to be set independently. The _SET_BUFFERS_GEOMETRY setter is still supported to maintain backwards compatibility. Change-Id: Ib49b7798ffebe61eff2c8e4202fc3048cfec7bdd
* Bug 4571308 Timestamps are not always monotonicGlenn Kasten2011-06-271-2/+4
| | | | Change-Id: Ia4e89a286a514d91d76268235c716e328cd3d0c2
* Fix broken comment on closing #endif in window.htedbo2011-05-241-1/+1
| | | | | | | | The closing #endif comment is missing the comment delimiters. This change adds them and fixes a compile warning about extra tokens after endif. Change-Id: If8295aa6fbb2b21c2b56fe57a467dcde79c65de3
* move ANativeWindow and friends under system/coreIliyan Malchev2011-05-021-0/+457
This patch moves the definition of ANativeWindow from frameworks/base into system/core. We move ANativeWindow for two reasons. Firstly, the native-window interface may need to be used by lower-level code than the framework. Such code (such as the camera HAL) is not allowed to use definitions from frameworks/base, since the latter is stacked on top of the former. Thus moving (the interface definition) ANativeWindow under system/core lowers the level at which we can work with windows. Secondly, this enables an implementation of ANativeWindow that lies outside of frameworks, enabling quick initial bringup of graphics. Change-Id: I851b9bb2834bcec73255b5af82f66411e54bb1a5 Signed-off-by: Iliyan Malchev <malchev@google.com>