summaryrefslogtreecommitdiffstats
path: root/libs/gui
Commit message (Collapse)AuthorAgeFilesLines
...
| | * | | | | Add support for SENSOR_TYPE_WRIST_TILT_GESTURENick Vaccaro2015-02-071-0/+7
| | |/ / / / | | | | | | | | | | | | | | | | | | Change-Id: I7e5516de805618df41de0f9b06805002e32708c3
* | | | | | CpuConsumer: fix build errorLajos Molnar2015-01-291-2/+2
| | | | | |
* | | | | | Merge commit 'ec41d55b8d018f349f7687cfe491651db600b51d'Chad Jones2015-01-291-37/+58
|\ \ \ \ \ \ | |/ / / / /
| * | | | | am 94ee9b59: Merge "CpuConsumer: lock buffers that could be YUV as ycbcr" ↵Lajos Molnar2015-01-291-37/+58
| |\ \ \ \ \ | | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | into lmp-mr1-dev * commit '94ee9b5916903e6ee23bb1ce8f688900a4eb6f65': CpuConsumer: lock buffers that could be YUV as ycbcr
| | * | | | CpuConsumer: lock buffers that could be YUV as ycbcrLajos Molnar2015-01-281-37/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 17906609 Change-Id: Ic71af69ec3b19ab1224ed3ad5e0a97c60e81cda6
* | | | | | am b93bca5d: am a59d7a6a: Merge "GUI: Remove unused variables"Andreas Gampe2014-12-093-6/+2
|\ \ \ \ \ \ | |/ / / / / | | | | | | | | | | | | | | | | | | * commit 'b93bca5d0831068cd599f905ba43dc8334095d65': GUI: Remove unused variables
| * | | | | am a59d7a6a: Merge "GUI: Remove unused variables"Andreas Gampe2014-12-093-6/+2
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'a59d7a6a66a2b8dcb2d00dbd6371fa89ae45ab04': GUI: Remove unused variables
| | * | | | | GUI: Remove unused variablesAndreas Gampe2014-12-083-6/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For build-system CFLAGS clean-up, remove unused variables. Bug: 18632512 Change-Id: I79fdcf830683d7278f4bf114cfb76a26da1b88ff
| | * | | | | libgui: Enable -Weverything and -WerrorDan Stoza2014-12-0529-407/+519
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Enables -Weverything and -Werror, with just a few exceptions for warnings we can't (or shouldn't need to) work around. This is a squashed commit based on an initial change with a couple of fixes to avoid breaking certain targets. The source commits are: d723bd7669b4fc88dc282d8bf8ba5ecb2849d22f 00d504c06ea034befe143e6b8cb34d004670ed02 429ba89cd293633d2f882165066b422c96597df2 Change-Id: I034abec27bf4020d84af60d7acc1939c59986dd6
| | * | | | | Fix crash when user provides large values in the Parcel.Michael Lentine2014-12-052-4/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 18102648 Change-Id: Ie6a24718e586a34424238363de80f9545951514f (cherry-picked from commit 8afa1c4ab86d724feb7716e153b7835385534590)
| * | | | | | am 5588d900: Merge "Enable clang for libui/libgui/surfaceflinger"Dan Albert2014-12-053-6/+9
| |\ \ \ \ \ \ | | |/ / / / / | | | | | | | | | | | | | | | | | | | | | * commit '5588d9000cd1ef217185c9001d6b5ecd84db9741': Enable clang for libui/libgui/surfaceflinger
| | * | | | | Enable clang for libui/libgui/surfaceflingerDan Stoza2014-12-043-6/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Enables clang and C++11 for libui/libgui/surfaceflinger, and eliminates all compile-time warnings. Change-Id: Ie237fdb5ae44f2bfcddaa884f9c65ec3f08ae50f (cherry picked from commit f10c46ef855b6410b20ebd8b1351d4d78d8eca8e)
| * | | | | | am 55f71bc0: Merge "Replace IInterface::asBinder() with a static"Marco Nelissen2014-11-1712-22/+22
| |\ \ \ \ \ \ | | |/ / / / / | | | | | | | | | | | | | | | | | | | | | * commit '55f71bc0800b9ec7a779c5d30d5a90e074c2526b': Replace IInterface::asBinder() with a static
| | * | | | | Replace IInterface::asBinder() with a staticMarco Nelissen2014-11-1712-22/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | so we can do NULL checks again, and update calls to IInterface::asBinder() to use the new static version. Change-Id: Ia7b10eb38ca55b72278bfd33d3bf647f338b4e6a
* | | | | | | libgui: Only allow one return from useFenceSyncDan Stoza2014-12-051-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | An #ifdef was causing multiple returns in this function, which was triggering an unreachable code error on some build targets. This adds an #else to ensure that only one return is exposed in any given build. Change-Id: I9ed7c3e769bc9094ad31d810944227d1d8302886
* | | | | | | libgui: Enable -Weverything and -WerrorDan Stoza2014-12-0529-406/+517
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Enables -Weverything and -Werror, with just a few exceptions for warnings we can't (or shouldn't need to) work around. Change-Id: I034abec27bf4020d84af60d7acc1939c59986dd6
* | | | | | | Replace IInterface::asBinder() with a staticMarco Nelissen2014-11-1412-22/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | so we can do NULL checks again, and update calls to IInterface::asBinder() to use the new static version. Change-Id: Ia7b10eb38ca55b72278bfd33d3bf647f338b4e6a
* | | | | | | Enable clang for libui/libgui/surfaceflingerDan Stoza2014-11-113-6/+9
|/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Enables clang and C++11 for libui/libgui/surfaceflinger, and eliminates all compile-time warnings. Change-Id: Ie237fdb5ae44f2bfcddaa884f9c65ec3f08ae50f
* | | | | | am 98d20f82: Merge "Add a BufferItem parameter to onFrameAvailable" into ↵Dan Stoza2014-11-0712-27/+62
|\ \ \ \ \ \ | | |/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | lmp-mr1-dev * commit '98d20f82ca8979b30c81df9639f54ab11e1951f9': Add a BufferItem parameter to onFrameAvailable
| * | | | | Merge "Add a BufferItem parameter to onFrameAvailable" into lmp-mr1-devDan Stoza2014-11-0712-27/+62
| |\ \ \ \ \
| | * | | | | Add a BufferItem parameter to onFrameAvailableDan Stoza2014-11-0712-27/+62
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Passes the BufferItem for the queued buffer to the onFrameAvailable callback so the consumer can track the BufferQueue's contents. Also adds an onFrameReplaced callback, which is necessary if the consumer wants to do anything more than simple queue length tracking. Bug: 18111837 Change-Id: If9d07229c9b586c668e5f99074e9b63b0468feb0
* | | | | | | am c6f93a43: Merge "Add missing include to fix libc++ build."Dan Albert2014-11-071-0/+2
|\ \ \ \ \ \ \ | | |_|/ / / / | |/| | | | | | | | | | | | | | | | | | | * commit 'c6f93a43d636b0ad16b75adf664c6a33d30b39dd': Add missing include to fix libc++ build.
| * | | | | | Add missing include to fix libc++ build.Dan Albert2014-11-071-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This was previously committed, but I guess it got lost in the merge queue. Bug: 15193147 Change-Id: Ic0e5d90ab403fb833d6a3bb7c55d279c56534869
| * | | | | | am 649bafb7: Merge "bufferqueue: workaround: allow NULL fence with ↵Jesse Hall2014-10-201-1/+6
| |\ \ \ \ \ \ | | | |_|/ / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | queueBuffer (DO NOT MERGE)" into lmp-dev * commit '649bafb7ba2c3204295bc3451ff7af7e28e714ed': bufferqueue: workaround: allow NULL fence with queueBuffer (DO NOT MERGE)
| * | | | | | am 9cc84950: Merge "Don\'t check if this == NULL."Dan Albert2014-10-151-1/+1
| |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '9cc849500df0bba42d3ed19b90c38ff1dffd2262': Don't check if this == NULL.
| * \ \ \ \ \ \ am a7eb4b74: Merge "Fix sockfd leakage in SensorService." into lmp-devAravind Akella2014-10-031-9/+13
| |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'a7eb4b74f74423dafd88adf94a7984ae927c3a23': Fix sockfd leakage in SensorService.
| * \ \ \ \ \ \ \ am f05ef4e5: Merge "Surface: cancel the dequeued buffer when requestBuffer ↵Jesse Hall2014-10-021-0/+1
| |\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fails" into lmp-dev * commit 'f05ef4e542c3041379025e16497ff23710de5dbf': Surface: cancel the dequeued buffer when requestBuffer fails
| * \ \ \ \ \ \ \ \ am 6ee97e74: Merge "Fix a null dereference."Dan Albert2014-09-231-1/+1
| |\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '6ee97e74d2c972dec2aa6a2f231b718eae54898f': Fix a null dereference.
| * \ \ \ \ \ \ \ \ \ resolved conflicts for merge of 67d8bd66 to lmp-dev-plus-aospLajos Molnar2014-09-181-0/+29
| |\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I2e9aab90ac53bb32630598f50cc26f6e46acf6d6
* | \ \ \ \ \ \ \ \ \ \ am de288fe2: Revert "bufferqueue: workaround: allow NULL fence with queueBuffer"Jesse Hall2014-11-041-6/+1
|\ \ \ \ \ \ \ \ \ \ \ \ | | |_|_|_|_|_|_|/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'de288fe2d43adfa1b2243ae534faaf832bf50491': Revert "bufferqueue: workaround: allow NULL fence with queueBuffer"
| * | | | | | | | | | | Revert "bufferqueue: workaround: allow NULL fence with queueBuffer"Jesse Hall2014-11-041-6/+1
| | |_|_|_|_|_|_|/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Underlying bug has been fixed, workaround no longer needed This reverts commit 5b0cbcf9464dbcda9d19ae978911222806ec8bdc. Change-Id: Ic9532b407d1291a7780a12a75aaa117ae4aa9fcb
* | | | | | | | | | | am 793fc0e1: Merge "Fix crash when user provides large values in the ↵Michael Lentine2014-11-012-4/+18
|\ \ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Parcel." into lmp-mr1-dev * commit '793fc0e13d25bdecda1219999f8be2cb3c121d20': Fix crash when user provides large values in the Parcel.
| * | | | | | | | | | Fix crash when user provides large values in the Parcel.Michael Lentine2014-10-312-4/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 18102648 Change-Id: Ie6a24718e586a34424238363de80f9545951514f
* | | | | | | | | | | am 1834f8ea: GLConsumer: correct EGL_NO_DISPLAY to EGL_NO_CONTEXTJesse Hall2014-10-301-1/+1
|\ \ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '1834f8ea975e9a882b44dc479320fe02e306e630': GLConsumer: correct EGL_NO_DISPLAY to EGL_NO_CONTEXT
| * | | | | | | | | | GLConsumer: correct EGL_NO_DISPLAY to EGL_NO_CONTEXTJesse Hall2014-10-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I4dcb57a0db9ee3c5222cd453c9213859384212b0 (cherry picked from commit 46a1f6b40e1f7677cd41cd30f729ff66c7c21517)
* | | | | | | | | | | am dcc959be: Merge "Adding eglInitialize and eglTerminate image creation and ↵Michael Lentine2014-10-211-0/+4
|\ \ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | deletion." into lmp-mr1-dev * commit 'dcc959beb77099d319a94e3985da2f4ea4064e7b': Adding eglInitialize and eglTerminate image creation and deletion.
| * | | | | | | | | | Merge "Adding eglInitialize and eglTerminate image creation and deletion." ↵Michael Lentine2014-10-211-0/+4
| |\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | into lmp-mr1-dev
| | * | | | | | | | | | Adding eglInitialize and eglTerminate image creation and deletion.Michael Lentine2014-10-091-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously it was possible to have the driver's eglTerminate called beofre eglDestroyImageKHR in GLConsumer. This was because we didn't increment the refcount for the lifetime of the image. This could lead to a crash or a deadlock when multiple threads called terminate and destroy simultaneously. Bug: 17700483 Change-Id: I7010d0f1b3db875332e95630b5e098a5564ba755
* | | | | | | | | | | | am a069e853: am 649bafb7: Merge "bufferqueue: workaround: allow NULL fence ↵Jesse Hall2014-10-201-1/+6
|\ \ \ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | with queueBuffer (DO NOT MERGE)" into lmp-dev * commit 'a069e8532ba272ac5b935e332e426a3dacf827fc': bufferqueue: workaround: allow NULL fence with queueBuffer (DO NOT MERGE)
| * | | | | | | | | | | am 649bafb7: Merge "bufferqueue: workaround: allow NULL fence with ↵Jesse Hall2014-10-201-1/+6
| |\ \ \ \ \ \ \ \ \ \ \ | | |/ / / / / / / / / / | |/| | | | | | | / / / | | | |_|_|_|_|_|/ / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | queueBuffer (DO NOT MERGE)" into lmp-dev * commit '649bafb7ba2c3204295bc3451ff7af7e28e714ed': bufferqueue: workaround: allow NULL fence with queueBuffer (DO NOT MERGE)
| | * | | | | | | | | bufferqueue: workaround: allow NULL fence with queueBuffer (DO NOT MERGE)Jesse Hall2014-10-191-1/+6
| | | |_|_|_|/ / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On one device there is a bug, not yet root-caused, that causes fence fds to not make it across binder from producer to consumer in the IGraphicBufferProducer::queueBuffer call. Rather than returning an error, which the producer typically treats as a fatal error, this change allows the buffer to be queued with no fence. This avoids an application crash at the risk of (likely single-frame) visible corruption. Bug: 17946343 Change-Id: I9ca89f94098c455e1e90f5f58d5336c936b04a9c
* | | | | | | | | | am 9cc84950: Merge "Don\'t check if this == NULL."Dan Albert2014-10-151-1/+1
|\ \ \ \ \ \ \ \ \ \ | | |_|_|_|_|_|/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '9cc849500df0bba42d3ed19b90c38ff1dffd2262': Don't check if this == NULL.
| * | | | | | | | | Merge "Don't check if this == NULL."Dan Albert2014-10-151-1/+1
| |\ \ \ \ \ \ \ \ \ | | |_|_|_|_|/ / / / | |/| | | | | | | |
| | * | | | | | | | Don't check if this == NULL.Dan Albert2014-09-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Entering a method with this == NULL is undefined behavior. Clang whines about this. Change-Id: Ibde628395ca10dfef0d2f59e81280576f104b83c
* | | | | | | | | | am b7702c5c: Merge "BufferQueueProducer: Throttle EGL frame production." ↵Jesse Hall2014-10-081-1/+11
|\ \ \ \ \ \ \ \ \ \ | | |_|/ / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | into lmp-mr1-dev * commit 'b7702c5ce7f010fa5f19646fd79f28ff04e7014b': BufferQueueProducer: Throttle EGL frame production.
| * | | | | | | | | Merge "BufferQueueProducer: Throttle EGL frame production." into lmp-mr1-devJesse Hall2014-10-081-1/+11
| |\ \ \ \ \ \ \ \ \ | | |_|_|/ / / / / / | |/| | | | | | | |
| | * | | | | | | | BufferQueueProducer: Throttle EGL frame production.Eric Penner2014-10-031-1/+11
| | | |_|_|_|/ / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Throttling was previously controlled by a combination of the driver and the number of buffers in the queue. This patch makes a more consistent trade-off, which allows two GPU frames pending but not three. More buffering could improve throughput in the case of varying frame times, but this also increases latency. Bug: 17502897 Change-Id: I4ee68019ca94c635294c5959931a555a6c4ef2df
* | | | | | | | | am 93176114: am a7eb4b74: Merge "Fix sockfd leakage in SensorService." into ↵Aravind Akella2014-10-031-9/+13
|\ \ \ \ \ \ \ \ \ | |/ / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | lmp-dev * commit '93176114cf34c9874c2db70fd7665e9f95dda9d0': Fix sockfd leakage in SensorService.
| * | | | | | | | Merge "Fix sockfd leakage in SensorService." into lmp-devAravind Akella2014-10-031-9/+13
| |\ \ \ \ \ \ \ \ | | |/ / / / / / / | |/| | | | | | |
| | * | | | | | | Fix sockfd leakage in SensorService.Aravind Akella2014-10-021-9/+13
| | | |_|_|/ / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | i) Call removeFd() only if the fd in the BitTube has been previously added to the Looper. Use a flag to determine whether the fd has been previously added or not. ii) Increment mPendingFlushEventsToSend after holding a connectionLock. iii) Store the number of acks that are pending in SensorEventQueue and send them all at once. Bug: 17472228 Change-Id: I1ec834fea1112a9cfbd9cddd2198438793698502