summaryrefslogtreecommitdiffstats
path: root/libs/gui
Commit message (Collapse)AuthorAgeFilesLines
...
* BufferQueue: use max acquired buffer countJamie Gennis2012-08-303-16/+33
| | | | | | | | | This change makes BufferQueue derive the min undequeued buffer count from a max acquired buffer count that is set by the consumer. This value may be set at any time that a producer is not connected to the BufferQueue rather than at BufferQueue construction time. Change-Id: Icf9f1d91ec612a079968ba0a4621deffe48f4e22
* Merge "BufferQueue: simplify max buffer count handling" into jb-mr1-devJamie Gennis2012-08-301-82/+68
|\
| * BufferQueue: simplify max buffer count handlingJamie Gennis2012-08-291-82/+68
| | | | | | | | | | | | This change reworks how the maximum buffer count is computed. Change-Id: I7d3745814b9bd6f6f447f86bfea8eb7729914ebf
* | Merge "BufferQueue: clean up buffer counting" into jb-mr1-devJamie Gennis2012-08-303-59/+60
|\ \ | |/
| * BufferQueue: clean up buffer countingJamie Gennis2012-08-293-59/+60
| | | | | | | | | | | | | | | | This change is a clean up of some of the handling of the maximum number of buffers that are allowed at once. It mostly renames a few member variables and methods, but it includes a couple small refactorings. Change-Id: I9959310f563d09583548d4291e1050a7bbc7d87d
* | Revert "A vendor ril depends on a native screen shot code."Wink Saville2012-08-301-8/+0
|/ | | | | | This reverts commit 9b5782baf0a8a2d7afc7129453beb5df7abe7650. A new ril for toro, hack no longer needed.
* A vendor ril depends on a native screen shot code.Wink Saville2012-08-281-0/+8
| | | | | | | Add a temporary shim until the vendor fixes the ril. Bug: 7073467 Change-Id: Ia95a58bd90677c03406c988d1c29ae785f8662f2
* Compatibility work around for bad graphics driver dependency.Jeff Brown2012-08-271-0/+9
| | | | | | | | | | | This is a compatibility shim for one product whose drivers are depending on SurfaceComposerClient::getDisplayInfo( int, DisplayInfo*) when it really shouldn't. Revert this patch when the problem has been resolved. Bug: 7065398 Change-Id: I6542691b81fd1b1e1d79500a62e82d40a3d51db7
* Remove unused "layer" argument from show().Jeff Brown2012-08-272-3/+3
| | | | Change-Id: I8944a9f4a27c330b11e5e837c69b88c8f84145ba
* Banish DisplayID from the SurfaceFlinger API.Jeff Brown2012-08-276-52/+46
| | | | | | | | | | | | | | | Use only display tokens in the API to refer to new displays. Don't require the caller to specify the display when creating a surface (since in general a surface could be shown on any display). This is intended to be a minimum change just to update the API. Note that SurfaceFlinger still uses DisplayID in a few places internally that might cause some features not to work properly when there are multiple displays (LayerScreenshot, for example). Change-Id: I3d91eec2da406eefd97bcd53655d403ad865a7e6
* Merge "SurfaceTexture: inherit from ConsumerBase (try 2)" into jb-mr1-devJamie Gennis2012-08-242-194/+96
|\
| * SurfaceTexture: inherit from ConsumerBase (try 2)Jamie Gennis2012-08-212-194/+96
| | | | | | | | | | | | | | | | | | This change makes SurfaceTexture inherit from ConsumerBase. It removes all of the functionality from SurfaceTexture that is now provided by the base class. This includes fixes for two bugs that were found after checking this change in the first time and then reverting it. Change-Id: Ie2d9f4f27cfef26fdac341de3152e842b01a58d2
* | Merge "Add BufferItemConsumer, a simple BufferQueue consumer." into jb-mr1-devEino-Ville Talvala2012-08-213-1/+98
|\ \ | |/ |/|
| * Add BufferItemConsumer, a simple BufferQueue consumer.Eino-Ville Talvala2012-08-213-1/+98
| | | | | | | | | | | | | | | | | | | | | | | | | | | | BufferItemConsumer allows for acquiring BufferQueue's BufferItems, which contain all the data and metadata the BufferQueue has for a given graphics buffer. This consumer is useful when direct access to the native buffer_handles is needed by the client. Also includes a minor cleanup of CpuConsumer's use of 'virtual'. Bug: 6243944 Change-Id: If7dc4192b15ac499555f1eda42a85140f2434795
* | Merge "CpuConsumer: inherit from ConsumerBase" into jb-mr1-devEino-Ville Talvala2012-08-201-113/+26
|\ \ | |/
| * CpuConsumer: inherit from ConsumerBaseEino-Ville Talvala2012-08-201-113/+26
| | | | | | | | Change-Id: I55178b1d673ffa0fbc6e63ef47642c64d4d03228
* | Merge "Revert "SurfaceTexture: inherit from ConsumerBase"" into jb-mr1-devJamie Gennis2012-08-202-93/+194
|\ \
| * | Revert "SurfaceTexture: inherit from ConsumerBase"Jamie Gennis2012-08-202-93/+194
| | | | | | | | | | | | | | | | | | This reverts commit ed059a8d754770c3cf28b78dba30f7a6ba475dbe Change-Id: I72542c2595771a40c2c88251e0d6eb54e305b99b
* | | Merge "Revert "SurfaceTexture: call ConsumerBase::freeBufferLocked"" into ↵Jamie Gennis2012-08-201-1/+0
|\ \ \ | | | | | | | | | | | | jb-mr1-dev
| * | | Revert "SurfaceTexture: call ConsumerBase::freeBufferLocked"Jamie Gennis2012-08-201-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | This reverts commit f8d33c652b930abbfb0722f3a2928cbc2ea71078 Change-Id: I1ff2e1cc85824a8fac1051f573d2931db81af511
* | | | Merge "SurfaceTexture: call ConsumerBase::freeBufferLocked" into jb-mr1-devJamie Gennis2012-08-201-0/+1
|\ \ \ \ | |/ / /
| * | | SurfaceTexture: call ConsumerBase::freeBufferLockedJamie Gennis2012-08-201-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This change fixes SurfaceTexture::freeBufferLocked so that it calls the base class implementation. Change-Id: I45d76fb2eb02c1fa6e4e917823ead83e2086bd15
* | | | resolved conflicts for merge of 21938749 to jb-mr1-devJean-Baptiste Queru2012-08-201-6/+10
|\ \ \ \ | |/ / / |/| | | | | | | Change-Id: I17da10797736f3772a143e2015fe25df0bb3eb3f
| * | | Fix error trap in SurfaceTexture ClientSteve Critchlow2012-07-101-6/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There was an issue in Surface::lock where failure to lock a surface resulted in two bad things happening: - success was returned to the caller (it was apparently locked). - an uninitialised pointer was returned as the buffer. Change-Id: I8b0df81400e0fa0542a8bb993d76923ac96b686e
* | | | Merge "SurfaceTexture: inherit from ConsumerBase" into jb-mr1-devJamie Gennis2012-08-172-194/+93
|\ \ \ \ | | |/ / | |/| |
| * | | SurfaceTexture: inherit from ConsumerBaseJamie Gennis2012-08-162-194/+93
| | |/ | |/| | | | | | | | | | | | | | | | This change makes SurfaceTexture inherit from ConsumerBase. It removes all of the functionality from SurfaceTexture that is now provided by the base class. Change-Id: I4a881df42810a14ee32d4ef7c8772a8f2510f4c7
* | | display states can't share the dirty flagsMathias Agopian2012-08-161-3/+3
|/ / | | | | | | Change-Id: Ifade9f2f1a0df9a36aede77a6cf5eee4be534f98
* | improve [un]marshalling of non-binder objectsMathias Agopian2012-08-133-33/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | this change introduces a new class LightFlattenable<> which is a protocol to flatten simple objects that don't require binders or file descriptors; the benefit of this protocol is that it doesn't require the objects to have a virtual table and give us a consitant way of doing this. we also introduce an implementation of this protocol for POD structures, LightFlattenablePod<>. Parcel has been update to handle this protocol automatically. Sensor, Rect, Point and Region now use this new protocol. Change-Id: Icb3ce7fa1d785249eb666f39c2129f2fc143ea4a
* | make multi-display more realMathias Agopian2012-08-103-37/+160
| | | | | | | | | | | | | | - displays are represented by a binder on the client side - c++ clients can now create and modify displays Change-Id: I203ea5b4beae0819d742ec5171c27568f4e8354b
* | libgui includes refactoringMathias Agopian2012-08-101-14/+14
| | | | | | | | Change-Id: I1d24ec17f5003ec2abab5f7472daaff4cc4cc2d3
* | SurfaceTexture: Fix a fence fd leak.Jamie Gennis2012-08-081-1/+1
| | | | | | | | | | Bug: 6949010 Change-Id: I289992c964504b4fe5458dbd19b248a841ef043f
* | SurfaceTexture: fix an out of bounds array accessJamie Gennis2012-08-061-3/+3
| | | | | | | | | | Bug: 6879028 Change-Id: Ic3d35a9384c0a6dfa4000e7743a6f6859608b0bf
* | surfaceflinger: refactor FrambufferSurfaceJamie Gennis2012-08-063-30/+228
| | | | | | | | | | | | | | | | This change refactors the FramebufferSurface class to inherit from the new ConsumerBase class. Bug: 6620200 Change-Id: I46ec942ddb019658e3c5e79465548b171b2261f2
* | remove unneeded dependencies in libhardwareMathias Agopian2012-08-042-4/+0
| | | | | | | | Change-Id: Ibb8d698d594216d0746b0e7270cf87d7e5acab2b
* | screen-off animation won't be handled by SF anymoreMathias Agopian2012-08-031-30/+0
| | | | | | | | Change-Id: Idc41386804ae7d7eb981c36e1bc55c270870c8d0
* | Add missing break in switch statementRomain Guy2012-08-011-1/+1
| | | | | | | | Change-Id: I6206cc9ca46c4e2f125d3d820256280586ad66a1
* | libgui: enable EGL_fence_sync usage for exynos5Jamie Gennis2012-07-311-0/+3
| | | | | | | | | | Bug: 6876502 Change-Id: I2ec2800881dcba9e4f6ff32ffa1341a2de01f0a2
* | get rid of the shared-memory control blockMathias Agopian2012-07-252-78/+20
| | | | | | | | Change-Id: If814060aca1d2ff2619d4adcd57296983d207f7f
* | add a layerStack attribute to Layers.Mathias Agopian2012-07-241-0/+17
| | | | | | | | | | | | | | this attribute can be set through a regular transaction using SurfaceComposerClient (just like any other attribute, eg: position or size) Change-Id: I701a47c677ea6442ca713728a93335328cd2b172
* | update SF binder protocol to support setting display attributesMathias Agopian2012-07-243-13/+58
| | | | | | | | | | | | | | | | | | no change of functionality -- the old behavior is implemented on top of this new protocol. this new protocol will allow, eventually, to pass informations about displays and layer stacks. Change-Id: Ic6c2295e61ec8ecbc8ce01ab7664e35d928202fc
* | Remove freeze(), unfreeze() and setFreezeTint().Jeff Brown2012-07-162-48/+0
| | | | | | | | | | | | This is all dead code. Change-Id: I646673aac793a6ec45021c370a2450f0ea4fbcce
* | Remove freezeDisplay(), which is no-op.Jeff Brown2012-07-161-14/+0
| | | | | | | | Change-Id: I2b70249a1545636fd6d98b58057b22f9529cad21
* | Fix check for fence merge successJesse Hall2012-07-031-3/+3
| | | | | | | | Change-Id: I9b16526ebfe4ffabf7c4372cca9b192ce046aa21
* | Pass fence to HWC on first use of bufferJesse Hall2012-06-301-8/+6
| | | | | | | | | | | | Also do a CPU-wait on the fence before using it for GL composition. Change-Id: I0f645a42a44803276cae11b904e5a26d65871562
* | Return fence from acquireBufferJesse Hall2012-06-303-4/+21
| | | | | | | | Change-Id: Iab22054c1dc4fd84affab3cc5bbdcd5a1e689666
* | Pass fences with buffers from SurfaceTextureClientJesse Hall2012-06-303-43/+105
| | | | | | | | Change-Id: I09b49433788d01e8b2b3684bb4d0112be29538d3
* | Merge "Clarify aborted updateTexImage use of fences"Jesse Hall2012-06-291-8/+4
|\ \
| * | Clarify aborted updateTexImage use of fencesJesse Hall2012-06-281-8/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When updateTexImage acquires a buffer but then aborts (due to an error or the buffer being rejected), it releases the newly-acquired buffer. It was passing the buffer slot's fences to releaseBuffer, even though they hadn't been created after the acquire yet. This wasn't a bug, since the fences would be cleared just after the buffer slot was last released, but explicitly passing null fences makes this clearer. Change-Id: I087f2ec3fd02c40f57782c1fca24eb9567e2943d
* | | Merge "Return fence to client in dequeuBuffer"Jesse Hall2012-06-291-5/+8
|\ \ \ | |/ /
| * | Return fence to client in dequeuBufferJesse Hall2012-06-281-5/+8
| | | | | | | | | | | | Change-Id: Ic19750793ad993f0e85391f3cabd743ba565d4c9