summaryrefslogtreecommitdiffstats
path: root/include/gui
Commit message (Collapse)AuthorAgeFilesLines
...
* | Support restricted mode in SensorService.Aravind Akella2015-03-242-3/+4
| | | | | | | | | | | | | | In restricted mode, only CTS tests can register for sensors or call flush() on them. The requests from other applications will be ignored. Change-Id: Ieb923df3e0cfe3390fe2d052af776da79589744b
* | libgui: Fix bad merge in Surface.hDan Stoza2015-03-191-1/+0
| | | | | | | | | | | | Fixes a bad merge from AOSP. Change-Id: Idb69b34787e8f4e76fb64130573168e5fde6a87c
* | am 663eaf42: am ad36432d: Merge "Surface: Permit an IProducerListener on ↵Dan Stoza2015-03-191-0/+1
|\ \ | |/ | | | | | | | | | | connect" * commit '663eaf422d325768808b416d66ecd4648bb14799': Surface: Permit an IProducerListener on connect
| * Surface: Permit an IProducerListener on connectDan Stoza2015-03-181-0/+1
| | | | | | | | | | | | | | | | | | | | This change allows clients of Surface to provide an IProducerListener callback object to Surface::connect, which will be passed down to the underlying IGraphicBufferProducer. Cherry pick of I5ea5229bf3a329bf02c6bd20e7247039c75d136b Change-Id: I6f8f52c72654e4cee649721383819bafe378f964
| * libgui: Enable -Weverything and -WerrorDan Stoza2015-03-1815-68/+64
| | | | | | | | | | | | | | | | | | | | | | | | | | Enables -Weverything and -Werror, with just a few exceptions for warnings we can't (or shouldn't need to) work around. Cherry pick of I034abec27bf4020d84af60d7acc1939c59986dd6 plus a couple of minor changes to CpuConsumer.cpp to make it work with a prior change: Uncomment CC_LOGV on line 46 Change C-style cast to static_cast on line 71 Change-Id: Iaec610477ea0122317b0578fb74caf2383d4cf08
* | Merge "libgui: Plumb attach/detach through Surface"Dan Stoza2015-03-191-1/+5
|\ \
| * | libgui: Plumb attach/detach through SurfaceDan Stoza2015-03-161-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Exposes the attachBuffer and detachNextBuffer calls from IGraphicBufferProducer to the public Surface interface. Also moves the version of connect that takes a producer callback from protected to public. Bug: 19628705 Change-Id: I9ebc3013c4d9c84c4e8ef150c00e03f8af80319e
* | | libgui: Plumb attach/detach through CpuConsumerDan Stoza2015-03-171-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | Adds CpuConsumer::{detachNextBuffer,attachAndReleaseBuffer}, which can be used to more carefully manage the ownership of GraphicBuffers. Bug: 19628705 Change-Id: Ia7a7e30da6d81eb2367241998f14988db0afc3bf
* | | Revert "libgui: Plumb attach/detach through CpuConsumer"Dan Stoza2015-03-171-14/+0
| | | | | | | | | | | | | | | | | | This reverts commit 43078e2827211139f0614719c920f3c5bff6c3fa. Change-Id: Ifef774d9922bb90450384e810e4767b56cc29de3
* | | libgui: Plumb attach/detach through CpuConsumerDan Stoza2015-03-161-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | Adds CpuConsumer::{detachNextBuffer,attachAndReleaseBuffer}, which can be used to more carefully manage the ownership of GraphicBuffers. Bug: 19628705 Change-Id: Ia7aa1ac59c2f768f2d8a0f35ad23067936a7427c
* | | libgui: Remove IGBC::BufferItemDan Stoza2015-03-168-89/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | Removes IGraphicBufferConsumer::BufferItem. Depends on the following changes: I187b3a7d05196b6289596afac8fb9a9d4aebff76 I0ddd38df37500cfd6b21d1e768ed14e39c5cd9fc Change-Id: Id1fa56d092188f2cb712768d5d2fc6a9027fb73c
* | | libgui: Prepare for IGBC::BufferItem removalDan Stoza2015-03-123-6/+8
| | | | | | | | | | | | | | | | | | | | | | | | Switches some dependencies from IGraphicBufferConsumer::BufferItem to android::BufferItem and adds some methods to facilitate incrementally changing client code to do the same. Change-Id: I699ed0a6837076867ca756b28d1ffb2238f7a0d9
* | | libgui: Add a BufferItem overload to IGBC::acquireDan Stoza2015-03-112-0/+4
| | | | | | | | | | | | | | | | | | | | | Adds an overload of IGraphicBufferConsumer::acquireBuffer which takes an android::BufferItem instead of an IGBC::BufferItem. Change-Id: I9c3bc8037fa9438d4d9080b8afb694219ef2f71f
* | | libgui: Add BufferItem(IGBC::BufferItem)Dan Stoza2015-03-111-0/+1
| | | | | | | | | | | | | | | | | | | | | Add a constructor for building a BufferItem from an IGraphicBufferConsumer::BufferItem. Change-Id: I1394e693314429ada93427889f10b7b01c948053
* | | libgui: Add a union to BufferItem for refactoringDan Stoza2015-03-111-2/+7
|/ / | | | | | | | | | | | | | | | | | | Currently, there are two instances of BufferItem: one inside of IGraphicBufferConsumer, and a standalone one inside of libgui. They only differ in the name of one of the fields, so this change modifies the one inside of libgui to have a union of both names so that the one inside of IGBC can eventually be refactored away. Change-Id: I64f495105f56cbf5803cea4aa6b072ea29b70cf5
* | Merge "Add dataSpace to buffer queues; remove old format enums."Eino-Ville Talvala2015-03-069-7/+64
|\ \
| * | Add dataSpace to buffer queues; remove old format enums.Eino-Ville Talvala2015-03-049-7/+64
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Wire up new dataSpace parameter through buffer queue stack - Update tests to include the parameter - Switch eglApi to using dataSpace to indicate sRGB gamma/linear difference - Remove RAW_SENSOR in favor of RAW16 - Remove use of sRGB format enums - Add default dataspace to buffer queue core - Add query for default dataspace Change-Id: I070bd2e7c56506055c419004c29e2e3feac725df
* | | Surface: Permit an IProducerListener on connectDan Stoza2015-03-021-0/+1
|/ / | | | | | | | | | | | | | | This change allows clients of Surface to provide an IProducerListener callback object to Surface::connect, which will be passed down to the underlying IGraphicBufferProducer. Change-Id: I5ea5229bf3a329bf02c6bd20e7247039c75d136b
* | Merge commit 'ec41d55b8d018f349f7687cfe491651db600b51d'Chad Jones2015-01-291-2/+6
|\ \ | |/
| * am 94ee9b59: Merge "CpuConsumer: lock buffers that could be YUV as ycbcr" ↵Lajos Molnar2015-01-291-2/+6
| |\ | | | | | | | | | | | | | | | | | | 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-2/+6
| | | | | | | | | | | | | | | Bug: 17906609 Change-Id: Ic71af69ec3b19ab1224ed3ad5e0a97c60e81cda6
| | * Frameworks/native: Fix unused parameter warningAndreas Gampe2014-11-081-1/+1
| | | | | | | | | | | | | | | | | | | | | Pulled in in hardware/, where -Werror is used. Change-Id: I13fc31d31fe2f623d39c84862b0c95a28813723d (cherry picked from commit a32900deec6284973100a29f7b399d061f82b3a8)
| * | am 5588d900: Merge "Enable clang for libui/libgui/surfaceflinger"Dan Albert2014-12-051-1/+1
| |\ \ | | | | | | | | | | | | | | | | * commit '5588d9000cd1ef217185c9001d6b5ecd84db9741': Enable clang for libui/libgui/surfaceflinger
| | * | Enable clang for libui/libgui/surfaceflingerDan Stoza2014-12-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Enables clang and C++11 for libui/libgui/surfaceflinger, and eliminates all compile-time warnings. Change-Id: Ie237fdb5ae44f2bfcddaa884f9c65ec3f08ae50f (cherry picked from commit f10c46ef855b6410b20ebd8b1351d4d78d8eca8e)
| | * | am a7eb4b74: Merge "Fix sockfd leakage in SensorService." into lmp-devAravind Akella2014-10-031-0/+1
| | |\ \ | | | | | | | | | | | | | | | | | | | | * commit 'a7eb4b74f74423dafd88adf94a7984ae927c3a23': Fix sockfd leakage in SensorService.
| | * \ \ resolved conflicts for merge of 67d8bd66 to lmp-dev-plus-aospLajos Molnar2014-09-181-0/+8
| | |\ \ \ | | | | | | | | | | | | | | | | | | Change-Id: I2e9aab90ac53bb32630598f50cc26f6e46acf6d6
* | | | | | libgui: Enable -Weverything and -WerrorDan Stoza2014-12-0515-68/+64
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Enables -Weverything and -Werror, with just a few exceptions for warnings we can't (or shouldn't need to) work around. Change-Id: I034abec27bf4020d84af60d7acc1939c59986dd6
* | | | | | Enable clang for libui/libgui/surfaceflingerDan Stoza2014-11-111-1/+1
|/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Enables clang and C++11 for libui/libgui/surfaceflinger, and eliminates all compile-time warnings. Change-Id: Ie237fdb5ae44f2bfcddaa884f9c65ec3f08ae50f
* | | | | Frameworks/native: Fix unused parameter warningAndreas Gampe2014-11-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Pulled in in hardware/, where -Werror is used. Change-Id: I13fc31d31fe2f623d39c84862b0c95a28813723d
* | | | | am 98d20f82: Merge "Add a BufferItem parameter to onFrameAvailable" into ↵Dan Stoza2014-11-076-6/+32
|\ \ \ \ \ | | |_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | lmp-mr1-dev * commit '98d20f82ca8979b30c81df9639f54ab11e1951f9': Add a BufferItem parameter to onFrameAvailable
| * | | | Add a BufferItem parameter to onFrameAvailableDan Stoza2014-11-076-6/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * | | | surfaceflinger: fix -Wmismatched-tags warningsJesse Hall2014-10-311-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | warning: struct 'HWComposer' was previously declared as a class [-Wmismatched-tags] warning: class 'DisplayInfo' was previously declared as a struct [-Wmismatched-tags] Change-Id: I13db9f8aab3a957ce8ff8d64598dae1807d6fe7e (cherry picked from commit 646f54105018e99ef4a30ee41f01f7d1ab66c38e)
* | | | | am b7702c5c: Merge "BufferQueueProducer: Throttle EGL frame production." ↵Jesse Hall2014-10-081-0/+6
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | into lmp-mr1-dev * commit 'b7702c5ce7f010fa5f19646fd79f28ff04e7014b': BufferQueueProducer: Throttle EGL frame production.
| * | | | Merge "BufferQueueProducer: Throttle EGL frame production." into lmp-mr1-devJesse Hall2014-10-081-0/+6
| |\ \ \ \ | | |_|_|/ | |/| | |
| | * | | BufferQueueProducer: Throttle EGL frame production.Eric Penner2014-10-031-0/+6
| | | |/ | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-0/+1
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | lmp-dev * commit '93176114cf34c9874c2db70fd7665e9f95dda9d0': Fix sockfd leakage in SensorService.
| * | | Fix sockfd leakage in SensorService.Aravind Akella2014-10-021-0/+1
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | resolved conflicts for merge of 67d8bd66 to lmp-mr1-dev-plus-aospLajos Molnar2014-09-191-0/+8
|\ \ \ | |/ / | | / | |/ |/| Change-Id: I5e7e6fdf0d2afe6c3e4a0ed6ef96afb4713a72bc
| * surfaceflinger: add getDisplayStats() methodLajos Molnar2014-09-181-0/+8
| | | | | | | | | | | | | | | | This is used by media service to schedule video frames at the proper time, based on precise vsync timings. Bug: 14659809 Change-Id: I1a90603f3dc09dca9aa4f90a3aa845fab56e0a5e
* | am 8493b79e: SensorService fixesAravind Akella2014-09-121-1/+1
|\ \ | |/ | | | | | | * commit '8493b79e1cff92450076ca7450c4bf4e434a6816': SensorService fixes
| * SensorService fixesAravind Akella2014-09-101-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | i) Significant Motion multiple clients fix. Make a copy of mActiveConnections vector before cleaning up SensorEventConnections when one-shot sensors trigger. ii) Maintain a mapping between flush_complete_events and SensorEventConnections to accurately map flush() API calls and corresponding flush_complete_events iii) Remove all references to 1_1 and 1_2 HALs. iv) Dynamically allocate sensor_event buffers in SensorService main threadLoop. Bug: 17412359 Change-Id: If3c3986197660cafef2d2e0b4dc7582e229cf1c4
* | am fb017a4c: Merge "Fix clang warnings about struct vs. class."Dan Albert2014-09-101-1/+1
|\ \ | | | | | | | | | | | | * commit 'fb017a4c3b23741f737093c3fcb78087bbe5e73c': Fix clang warnings about struct vs. class.
| * | Fix clang warnings about struct vs. class.Dan Albert2014-09-091-1/+1
| | | | | | | | | | | | Change-Id: I9f26cd01ac3153efa6d77a4133686842e2d63203
* | | am d15ef27f: Update ScreenshotClient to take advantage of rotation in ↵Riley Andrews2014-09-091-0/+4
|\ \ \ | | |/ | |/| | | | | | | | | | | | | surfaceflinger\'s screencap api * commit 'd15ef27f9b13727fa7358e3c09572f66bb1e0668': Update ScreenshotClient to take advantage of rotation in surfaceflinger's screencap api
| * | Update ScreenshotClient to take advantage of rotation in surfaceflinger's ↵Riley Andrews2014-09-091-0/+4
| | | | | | | | | | | | | | | | | | screencap api Change-Id: I836649d9d5cd5958ce34e47f26f4a36d2d05d24c
* | | am edb86f9f: Merge "Add rotation to surfaceflingers screen cap." into lmp-devRiley Andrews2014-09-091-1/+9
|\ \ \ | |/ / | | | | | | | | | * commit 'edb86f9f681e082a64a670814ee4d73ccf39942a': Add rotation to surfaceflingers screen cap.
| * | Add rotation to surfaceflingers screen cap.Riley Andrews2014-09-091-1/+9
| | | | | | | | | | | | | | | | | | | | | | | | + This is needed so that activity manager does not have to do cpu side rotations when capturing recents thumbnails. Change-Id: If998008e675ad01305db8399fd643cf4608b7025
* | | Make string literal concatenation play nice with C++11.Dan Albert2014-09-091-5/+5
|/ / | | | | | | | | | | | | | | | | In C++11 mode, "foo"MACRO_THAT_EXPANDS_TO_STRING gets lexed as a user defined literal. Add space around the macro. Had missed these when resolving merge conflicts last night. Change-Id: I1a381a06c3909b76a3b44ce79c37aa6f244d3736
* | SensorService flush fixes.Aravind Akella2014-09-031-1/+1
| | | | | | | | | | | | | | | | | | | | i) Fix a possible race condition when adding a pending flush connection to mActiveSensors data structure. ii) Invalidate flush_complete_events as soon as they are consumed by a connection so that they are not used by other connections which are registered for the same sensor. Change-Id: I1491bea8c2081c4aab1feacc60add13b7aa26bb7
* | GLConsumer: Fix eglTerminate/eglInit edge case.Eric Penner2014-08-271-1/+3
| | | | | | | | | | | | | | | | | | If a display is terminated and then initialized, we can't detect this using the display itself (it has the same value), but all EglImages still become invalid for the display. This patch detects this during image binding and forces creation of a new EglImage. Bug: 10430249 Change-Id: I75101c50962f21263dca3ec6e241a2e5a3c23dad