summaryrefslogtreecommitdiffstats
path: root/services/surfaceflinger/DisplayHardware/FramebufferSurface.cpp
Commit message (Collapse)AuthorAgeFilesLines
* SurfaceFlinger: make the num FBs a board configJamie Gennis2012-10-121-1/+5
| | | | | Bug: 7283132 Change-Id: I38116f39fc18212f2daab94bbfc3daaf89439fc4
* we now correctly set-up connected screens during bootMathias Agopian2012-09-201-6/+7
| | | | Change-Id: Ie8b1a3b97ad1821cc970e43abe96c8cec7135b66
* GraphicBufferAlloc class was declared twiceMathias Agopian2012-09-201-12/+1
| | | | | | | this was confusing because the one in FramebufferSurface wasn't in fact being used Change-Id: Ied45aec20d804cfbe52440f9b2f2852a85c757cf
* add support hwc 1.1Mathias Agopian2012-09-171-18/+21
| | | | | | Bug: 7124069 Change-Id: I53d705105c4ad8954d3f50ee4f4c8b7ec936b871
* Initialize new HWC 1.2 fieldsJesse Hall2012-09-121-2/+2
| | | | | | Also rename resolution* to width/height. Change-Id: Ia5f0c50d3f0a349160f314a3257c3b985e13ef1d
* Reshuffle FramebufferSurfaceAndy McFadden2012-09-111-54/+17
| | | | | | | | | | FramebufferSurface no longer speaks directly to the FB HAL. Now everything goes through HWComposer (which may or may not be connected to a hardware composer). Added display index arg to some query methods. Change-Id: Id3e157d2d4e3555d33afbb703e518b6e92e2d6d5
* libgui: move fence handling into ConsumerBaseJamie Gennis2012-09-061-1/+1
| | | | | | | | This change moves some common fence handling code into the base class for BufferQueue consumer classes. It also makes the ConsumerBase class initialize a buffer slot's fence with the acquire fence every time a buffer is acquired. Change-Id: I0bd88bc269e919653b659bfb3ebfb04dd61692a0
* BufferQueue: use max acquired buffer countJamie Gennis2012-08-301-2/+1
| | | | | | | | | 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
* BufferQueue: clean up buffer countingJamie Gennis2012-08-291-1/+1
| | | | | | | | 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
* xdpi / ydpi were reported as 0Mathias Agopian2012-08-131-13/+0
| | | | | Bug: 6975723 Change-Id: Ia7fa37ec11e2308804f5034959a37e508d292d31
* surfaceflinger: refactor FrambufferSurfaceJamie Gennis2012-08-061-108/+95
| | | | | | | | This change refactors the FramebufferSurface class to inherit from the new ConsumerBase class. Bug: 6620200 Change-Id: I46ec942ddb019658e3c5e79465548b171b2261f2
* factor EGL/GL and surface creation out of DisplayHardwareMathias Agopian2012-07-191-2/+33
| | | | Change-Id: Icd85a6a4caad06f056578008af3e21666fa8b1f4
* Return fence from acquireBufferJesse Hall2012-06-301-0/+10
| | | | Change-Id: Iab22054c1dc4fd84affab3cc5bbdcd5a1e689666
* Transfer HWC release fences to BufferQueueJesse Hall2012-06-211-1/+1
| | | | | | | | | | | | | | | | | | After a HWC set, each SurfaceFlinger Layer retrieves the release fence HWC returned and gives it to the layer's SurfaceTexture. The SurfaceTexture accumulates the fences into a merged fence until the next updateTexImage, then passes the merged fence to the BufferQueue in releaseBuffer. In a follow-on change, BufferQueue will return the fence along with the buffer slot in dequeueBuffer. For now, dequeueBuffer waits for the fence to signal before returning. The releaseFence default value for BufferQueue::releaseBuffer() is temporary to avoid transient build breaks with a multi-project checkin. It'll disappear in the next change. Change-Id: Iaa9a0d5775235585d9cbf453d3a64623d08013d9
* Implement SurfaceFlinger's ANW on top of BufferQueueMathias Agopian2012-06-131-0/+188
SF now has its own implementation of ANW for the framebuffer and it uses BufferQueue. FramebufferNativeWindow is now only used by stand-alone apps. Change-Id: Iddeb24087df62bd92b0f78e391dda9b97ddc859c