summaryrefslogtreecommitdiffstats
path: root/include/gui
Commit message (Collapse)AuthorAgeFilesLines
* gui: only support tertiary display if QTI_BSP is definedAbhisek Devkota2015-12-201-2/+4
| | | | | | Non-caf display HALs crap out with this Change-Id: I9db8a74e262e674335cd993a5365e05d3715d1e8
* SurfaceFlinger: Native changes to add blur effectByunghun Jeon2015-11-083-0/+11
| | | | | | | | | | | | | | Native changes to add blur-behind and blur mask effect Change-Id: I54faf82d750e8299de6d261f6a893ab26d08df84 SurfaceFlinger: Adding template for LayerBlur files Change-Id: I444009113b7bdd6c5284863fd1f56358e67d9fe6 SurfaceFlinger: Featurize libuiblur module for OSS build Change-Id: Ifdc176e699434125d17b111c044b8ba954cf717c
* Merge tag 'android-6.0.0_r26' into HEADRicardo Cerqueira2015-11-051-51/+2
|\ | | | | | | | | | | | | | | | | Android 6.0.0 release 26 Conflicts: include/android/input.h Change-Id: Ifa374c6d3055be3b8a5d60967f8b4c0043da739b
| * Bug fix in SensorManager.Aravind Akella2015-07-301-51/+2
| | | | | | | | | | | | | | | | If SensorService hasn't started when SensorManager instance is requested, keep retrying for a longer duration. Bug: 22529981 Change-Id: I3c506d962b61347085fc80b2c5832289539d6853
* | Bring back support for glReadPixels screenshot pathPawit Pornkitprasan2015-10-161-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Squashed commit of the following: commit 012d3fe41d1d6cd38a0858b59145e9a4447641fa Author: Hashcode <hashcode0f@gmail.com> Date: Sun Dec 8 19:36:50 2013 +0000 sf: Always use opengles for screen capture Go back to the usage of GRALLOC_USAGE_HW_TEXTURE and GRALLOC_USAGE_HW_RENDERER in captureScreenImplLocked regardless of useReadPixels value This fixes the EGL_NO_IMAGE_KHR error returned from eglCreateImageKHR (blank images returned from screenshot path) Change-Id: I62fe90a081607b9e89c67f3dcfd34c84efc89d35 commit 4866ddf98ac98d8e22a1cd6a21894bb17f274588 Author: Ricardo Cerqueira <cyanogenmod@cerqueira.org> Date: Thu Oct 31 03:53:39 2013 +0000 Revert "remove support for glReadPixels screenshot path" This reverts commit 3ca76f416bc8665a97636ca8a2d0128b9da9d92c. Conflicts: include/gui/ISurfaceComposer.h libs/gui/ISurfaceComposer.cpp libs/gui/SurfaceComposerClient.cpp services/surfaceflinger/SurfaceFlinger.cpp services/surfaceflinger/SurfaceFlinger.h Change-Id: I8c239e533757af770e418dbb198f5a86c736961f Change-Id: I8c239e533757af770e418dbb198f5a86c736961f
* | gui: add Tertiary display support in surface composer headerVinu Deokaran2015-10-061-2/+3
|/ | | | | | | | Add definition of Tertiary display into the enumeration list of surface composer header file, to support third display for all Surface Flinger APIs. Change-Id: Ic932be4f7f1ac9c44a5a8f36d17eb9386135de87
* Revert "Bug fix in SensorManager."Narayan Kamath2015-07-291-3/+1
| | | | | | This reverts commit 869eb2089ec8a6286b944bfcff57e4cbe0c7e207. Change-Id: I4fb865e3b18bbb011fa4e4b4732336930c3a45ae
* Bug fix in SensorManager.Aravind Akella2015-07-261-1/+3
| | | | | | | | If SensorService hasn't started when SensorManager instance is requested, keep retrying for a longer duration. Bug: 22529981 Change-Id: I4ba6b760608e34d79273aeb39568f0fa72fbaf9d
* Enable sensor data injection mode through adb.Aravind Akella2015-06-302-2/+2
| | | | Change-Id: I415cf8ff0871fa74babaf9b879c68f210298b472
* libgui/SurfaceFlinger: Add getConsumerNameDan Stoza2015-06-083-0/+9
| | | | | | | | | Adds a getConsumerName method to IGraphicBufferProducer and Surface. Currently, the name is cached inside of IGBP and is update on connect and dequeueBuffer, which should be good enough for most uses. Bug: 6667401 Change-Id: I22c7881d778e495cf8276de7bbcd769e52429915
* Revert "libgui: Add getConsumerName"Dan Stoza2015-06-083-9/+0
| | | | | | This reverts commit 107fbe5599016b0e35145a1a00c4f238b63d61e4. Change-Id: I0c2b0f7c81193b05eb3dd2f5a59f83598434b744
* libgui: Add getConsumerNameDan Stoza2015-06-053-0/+9
| | | | | | | | | Adds a getConsumerName method to IGraphicBufferProducer and Surface. Currently, the name is cached inside of IGBP and is updated on connect and dequeueBuffer, which should be good enough for most uses. Bug: 6667401 Change-Id: Ife94bd89023fe7c00bad916932b9a19233fd2290
* libgui: Add generation numbers to BufferQueueDan Stoza2015-06-035-3/+31
| | | | | | | | | | | | | | | This change allows producers to set a generation number on a BufferQueue. This number will be embedded in any new GraphicBuffers created in that BufferQueue, and attempts to attach buffers which have a different generation number will fail. It also plumbs the setGenerationNumber method through Surface, with the additional effect that any buffers attached to the Surface after setting a new generation number will automatically be updated with the new number (as opposed to failing, as would happen on through IGBP). Bug: 20923096 Change-Id: I32bf726b035f99c3e5834beaf76afb9f01adcbc2
* Merge "fix BufferItem flatten/unflatten alignment" into mnc-devChong Zhang2015-05-221-2/+14
|\
| * fix BufferItem flatten/unflatten alignmentChong Zhang2015-05-221-2/+14
| | | | | | | | | | bug: 21370100 Change-Id: Ia3991dc591c176bdbd1d78d1804aa22777525b62
* | Merge "Refactor ConsumerBase and it's derived classes." into mnc-devMichael Lentine2015-05-183-32/+9
|\ \ | |/ |/|
| * Refactor ConsumerBase and it's derived classes.Michael Lentine2015-05-183-32/+9
| | | | | | | | | | | | | | | | | | | | Move setDefaultBufferSize, setDefaultBufferFormat, and setDefaultBufferDataSpace into ConsumerBase and remove them from CpuConsumer and BufferItemConsumer. Bug: 19977701 Change-Id: Ic68992464c5da6da7a41c4063a53029a69efcd1b
* | Add ConsumerBase::isAbandonedJohn Reck2015-05-141-0/+3
| | | | | | | | | | Bug: 20105644 Change-Id: I21526b5397ea51a15500c44a99daa9d75fc4ea67
* | Fix PTS handling for buffer replacementDan Stoza2015-05-125-18/+13
| | | | | | | | | | | | | | | | | | | | | | This changes the way that SurfaceFlinger's shadow buffer management works such that instead of tracking the size of the shadow queue in the BufferQueue, SF tracks the last frame number it has seen, and passes that into the acquireBuffer call. BufferQueueConsumer then ensures that it never returns a buffer newer than that frame number, even if that means that it must return PRESENT_LATER for an otherwise valid buffer. Change-Id: I3fcb45f683ed660c3f18a8b85ae1f8a962ba6f0e
* | libgui: Hook up onFrameReplacedDan Stoza2015-05-112-19/+16
|/ | | | | | | This completes the plumbing from ConsumerListener::onFrameReplaced into SurfaceFlinger (and other consumers that may care). Change-Id: I376e78ace95d6748e8662e6b4d47c0dfa697a300
* Fix broken NDK sensor manager API.Svet Ganov2015-05-071-0/+57
| | | | Change-Id: I21bb8b0dcfd3f1c812753a9fd77dea792e7155f2
* Merge "Add body sensors app op - framework native" into mnc-devSvetoslav2015-05-014-6/+11
|\
| * Add body sensors app op - framework nativeSvetoslav2015-05-014-6/+11
| | | | | | | | Change-Id: I727a2bb1e28ae9158f2df9c74dd0aee977dfd47f
* | SurfaceFlinger: Fix PTS on stale buffersDan Stoza2015-05-013-0/+15
|/ | | | | | | | | | | | | | | | | | | | | SurfaceFlinger's (Layer's) shadow copy of the BufferQueue queue was getting out of sync for a few reasons. This change fixes these by doing the following: - Adds a check to re-synchronize the shadow copy every time we successfully acquire a buffer by first dropping stale buffers before removing the current buffer. - Avoids trying to perform updates for buffers which have been rejected (for incorrect dimensions) by SurfaceFlinger. - Adds IGraphicBufferConsumer::setShadowQueueSize, which allows the consumer to notify the BufferQueue that it is maintaining a shadow copy of the queue and prevents it from dropping so many buffers during acquireBuffer that it ends up returning a buffer for which the consumer has not yet received an onFrameAvailable call. Bug: 20096136 Change-Id: I78d0738428005fc19b3be85cc8f1db498043612f (cherry picked from commit 2e36f2283f48ab764b496490c73a132acf21df3a)
* BufferQueue: Add NATIVE_WINDOW_BUFFER_AGE queryDan Stoza2015-04-281-0/+4
| | | | | | | | | Adds a NATIVE_WINDOW_BUFFER_AGE query, which returns the age of the contents of the most recently dequeued buffer as the number of frames that have elapsed since it was last queued. Change-Id: Ib6fd62945cb62d1e60133a65beee510363218a23 (cherry picked from commit 49f810c72df8d1d64128e376757079825c8decd4)
* libgui: Change detachNextBuffer to return sp<GB>Dan Stoza2015-04-271-1/+1
| | | | | | | | | | Changes Surface::detachNextBuffer to return an sp<GraphicBuffer> instead of an ANativeWindowBuffer* to ensure that reference counting works correctly. Bug: 20092217 Change-Id: I3979ea6121aaf14845f0554477b778770413581e (cherry picked from commit 8b2daa3ca29492b181fb67840640d771c4a2b3ac)
* Build fix change method signature of enableDataInjection.Aravind Akella2015-04-241-1/+1
| | | | Change-Id: I3927aec64f5a1555d2e5d07591fd04e7b3be5f09
* Merge "Enable data injection mode in SensorService."Aravind Akella2015-04-253-2/+7
|\
| * Enable data injection mode in SensorService.Aravind Akella2015-04-233-2/+7
| | | | | | | | Change-Id: I0cd32a017235c31c54816e4a357ce3b988350ed6
* | am 5d10894c: am ef47c080: am 958f5011: Merge "libgui: Allow an IGBProducer ↵Dan Stoza2015-04-243-0/+19
|\ \ | | | | | | | | | | | | | | | | | | to disable allocation" * commit '5d10894c9d547449cf231f02b736da9dfdebec11': libgui: Allow an IGBProducer to disable allocation
| * | libgui: Allow an IGBProducer to disable allocationDan Stoza2015-04-233-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds a new method IGBP::allowAllocation, which controls whether dequeueBuffer is permitted to allocate a new buffer. If allocation is disallowed, dequeueBuffer will block or return an error as it normally would (as controlled by *ControlledByApp). If there are free buffers, but they are not of the correct dimensions, format, or usage, they may be freed if a more suitable buffer is not found first. Bug: 19801715 Change-Id: I0d604958b78b2fd775c2547690301423f9a52165
* | | am 437fb850: am f96a7581: am fb6d43ff: Merge "libgui: Change BufferQueue to ↵Dan Stoza2015-04-241-0/+15
|\ \ \ | |/ / | | | | | | | | | | | | | | | use free lists" * commit '437fb850b0667be3e8655cb1ac6a8d491f59d045': libgui: Change BufferQueue to use free lists
| * | libgui: Change BufferQueue to use free listsDan Stoza2015-04-231-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | BufferQueue used to choose free buffers by scanning through its array of slots and picking one based on timestamp. This changes that mechanism to use a pair of free lists: one with buffers attached and one without. This makes it easier to choose either type of free slot depending on the needs of the current operation. Fixes an issue with the first version of this change, found in bugs 20482952, 20443314, and 20464549. Bug: 13175420 Change-Id: I9b6e83cfe8f9b4329a976025cb8e291d51fb6d4a
* | | am 41422980: am d2c12e4c: am 7637e35d: Merge "Revert "libgui: Change ↵Dan Stoza2015-04-221-15/+0
|\ \ \ | |/ / | | | | | | | | | | | | | | | BufferQueue to use free lists"" * commit '41422980fabb087390791d951c28fef072d93be1': Revert "libgui: Change BufferQueue to use free lists"
| * | Merge "Revert "libgui: Change BufferQueue to use free lists""Dan Stoza2015-04-221-15/+0
| |\ \
| | * | Revert "libgui: Change BufferQueue to use free lists"Dan Stoza2015-04-221-15/+0
| | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 8dddc990103b71137be2a6365a26b1ac36598e68. Change-Id: I0b0fed9f1394c6f6ae812f6c562ead4473a8226e
* | | | am 3805a00d: am 91f16b1b: am e647ddde: Merge "libgui: Fix CPU rendering on ↵Dan Stoza2015-04-221-5/+5
|\ \ \ \ | |/ / / | | | / | |_|/ |/| | | | | | | | Surface" * commit '3805a00d6efef02535aaed96f412e0c55a9875f8': libgui: Fix CPU rendering on Surface
| * | libgui: Fix CPU rendering on SurfaceDan Stoza2015-04-211-5/+5
| |/ | | | | | | | | | | | | | | | | | | | | When the surface damage code went in, it incorrectly assumed that if an application was doing CPU rendering, it would be using lock and unlockAndPost instead of dequeue and queue, so it repurposed the dirty region too aggressively. This change keeps it from clobbering the dirty region if a CPU producer is attached. Bug: 20431815 Change-Id: Id4dfd71378311ea822f0289f6de2d20a7bd84014
* | am aadb236d: am 483c76dc: am ff5c1a6b: Merge "libgui: Change BufferQueue to ↵Dan Stoza2015-04-201-0/+15
|\ \ | |/ | | | | | | | | | | use free lists" * commit 'aadb236d2e944791c1e7600eae9439fcb8a6caa9': libgui: Change BufferQueue to use free lists
| * libgui: Change BufferQueue to use free listsDan Stoza2015-04-171-0/+15
| | | | | | | | | | | | | | | | | | | | | | BufferQueue used to choose free buffers by scanning through its array of slots and picking one based on timestamp. This changes that mechanism to use a pair of free lists: one with buffers attached and one without. This makes it easier to choose either type of free slot depending on the needs of the current operation. Bug: 13175420 Change-Id: Ic8398e7511bd11a60a1c82e3ad2ee271c9822be1
* | am 057a561a: am 57a9f5a0: am fd5f41be: Merge "libgui: Pass surface damage ↵Dan Stoza2015-04-153-2/+19
|\ \ | |/ | | | | | | | | | | through BufferQueue" * commit '057a561afbf30ede99b5ec627deec7ee11701f6d': libgui: Pass surface damage through BufferQueue
| * libgui: Pass surface damage through BufferQueueDan Stoza2015-04-153-2/+19
| | | | | | | | | | | | | | | | | | | | This change adds support for passing surface damage all of the way down from the EGL interface through the consumer side of the BufferQueue. Depends on system/core change Ie645e6a52b37b5c1b3be19481e8348570d1aa62c Bug: 11239309 Change-Id: I4457ea826e9ade4ec187f973851d855b7b93a31b
* | am 172ff24c: am 5977851b: am 00afb817: Merge "libgui: Plumb detachBuffer ↵Dan Stoza2015-04-071-0/+3
|\ \ | |/ | | | | | | | | | | through ConsumerBase" * commit '172ff24ccbc232cdf244a2bcbbb51df754929521': libgui: Plumb detachBuffer through ConsumerBase
| * libgui: Plumb detachBuffer through ConsumerBaseDan Stoza2015-04-071-0/+3
| | | | | | | | | | | | | | | | | | Exposes IGraphicBufferConsumer::detachBuffer as a ConsumerBase method. attachBuffer is not currently exposed, because all current clients will be recycling buffers through the allocator. Bug: 19628705 Change-Id: I3e519767fa43d5d880c1d5695e31b60f6ad588af
| * DO NOT MERGE libgui: Plumb attach/detach through SurfaceDan Stoza2015-04-021-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 (cherry picked from commit c14ecb9de243af8864610fd3c74342e3ca2cb4bc)
| * DO NOT MERGE libgui: Remove IGBC::BufferItemDan Stoza2015-03-208-89/+9
| | | | | | | | | | | | | | | | | | | | | | Removes IGraphicBufferConsumer::BufferItem. Depends on the following changes: I187b3a7d05196b6289596afac8fb9a9d4aebff76 I0ddd38df37500cfd6b21d1e768ed14e39c5cd9fc Cherry-pick of Id1fa56d092188f2cb712768d5d2fc6a9027fb73c Change-Id: I3edf0db8fba656fd78e18a5a7f1137f0fb6b237d
| * DO NOT MERGE libgui: Prepare for IGBC::BufferItem removalDan Stoza2015-03-196-8/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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, and we want to remove the IGBC version. This changes things so that client code may be incrementally switched over to the libgui version. This is a squashed commit containing the following changes: I64f495105f56cbf5803cea4aa6b072ea29b70cf5 I1394e693314429ada93427889f10b7b01c948053 I9c3bc8037fa9438d4d9080b8afb694219ef2f71f I699ed0a6837076867ca756b28d1ffb2238f7a0d9 Iac8425e1241774304a131da2fb9dec6e82922f13 Change-Id: Ic4d51f5df6dbc70b376d13fceba2335b9bae4f3d
| * DO NOT MERGE Add dataSpace to buffer queues; remove old format enums.Eino-Ville Talvala2015-03-199-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 Cherry pick of I070bd2e7c56506055c419004c29e2e3feac725df Change-Id: I461952389c18051176c6b75e664f20ad369f5760
* | Revert "libgui: Plumb attach/detach through CpuConsumer"Dan Stoza2015-04-021-14/+0
| | | | | | | | This reverts commit 20c5672883796c0dedf38f51dc2fc6f140b09ae6.
* | Build error SensorManager.Aravind Akella2015-03-261-1/+1
| | | | | | | | | | | | Remove forward declaration for String8 and inlcude the corresponding header file. Change-Id: I89a4ea42295dc9bb6db2c304ff725cc1d498cd55