summaryrefslogtreecommitdiffstats
path: root/libs
Commit message (Collapse)AuthorAgeFilesLines
* Fix bug where dirty messages for allocations attached to programVertex ↵Jason Sams2009-10-152-0/+5
| | | | objects could be lost.
* Remove hack in RS that called exit to WAR now fixed driver bugs. Make ↵Jason Sams2009-10-152-5/+20
| | | | gloabal init safe by locking around the critical code.
* Minor bug fixes and add glError check.Jason Sams2009-10-152-1/+7
|
* Add egl init start message to help debug driver init hangs.Jason Sams2009-10-151-0/+1
|
* Add new RenderScript sample: ImageProcessing.Romain Guy2009-10-097-0/+393
| | | | Change-Id: I5e482bbc34911c940a3a74258f8f8549b1939bc4
* Fix issue 2174002: After rejecting Call when device ringtone is mute and ↵Eric Laurent2009-10-082-5/+33
| | | | | | | | playing music, audio is not transfered to BT device. Added a workarouond to request the A2DP output standby directly to audio hardware when the sink is suspended as it seems that the suspend request often fails. Also take into account resume requests received while a suspend request is pending.
* Merge change Ibd2197fb into eclairAndroid (Google) Code Review2009-10-072-1/+11
|\ | | | | | | | | * changes: Add script to script call support. Add exception to catch out of bound index data when added to TriangleMeshBuilder.
| * Add script to script call support. Add exception to catch out of bound ↵Jason Sams2009-10-072-1/+11
| | | | | | | | index data when added to TriangleMeshBuilder.
* | Merge change I46b2df15 into eclairAndroid (Google) Code Review2009-10-071-3/+3
|\ \ | | | | | | | | | | | | * changes: fix [2164183] sometimes device just wants to stay asleep
| * | fix [2164183] sometimes device just wants to stay asleepMathias Agopian2009-10-071-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When switching rapidily orientation back and forth, surfaces end-up acquiring the freeze-lock when the first orientation change happens, but never release it because by the time the 2nd orientation change comes in, the surface size is back to its original size and doesn't appear to have resized. we now always release the freeze-lock when we receive a buffer of the expected size.
* | | fix [2170283] SurfaceFlinger crashes on OOM.Mathias Agopian2009-10-071-0/+2
|/ / | | | | | | | | | | when running out of memory, a null handle is returned but the error code may not be set. In that case we need to return NO_MEMORY instead of NO_ERROR, so that the calling code won't try to dereference the null pointer.
* | fix [2170319] gmail bulk operation checkbox latency on passionMathias Agopian2009-10-075-50/+12
|/ | | | | | | | | | | | | | | This also fixes [2152536] ANR in browser When SF is enqueuing buffers faster than SF dequeues them. The update flag in SF is not counted and under some situations SF will only dequeue the first buffer. The state at this point is not technically corrupted, it's valid, but just delayed by one buffer. In the case of the Browser ANR, because the last enqueued buffer was delayed the resizing of the current buffer couldn't happen. The system would always fall back onto its feet if anything -else- in tried to draw, because the "late" buffer would be picked up then.
* Revert "temporarily disable the use of glTexImage2D for sw buffers on sholes."Mathias Agopian2009-10-061-4/+4
| | | | | | This reverts commit c131c5671965b69b0dee3e4afa3b3dd5e3c0c405. Approved by Hiroshi
* Merge change I4961c959 into eclairAndroid (Google) Code Review2009-10-065-12/+12
|\ | | | | | | | | * changes: fix [2152536] ANR in browser
| * fix [2152536] ANR in browserMathias Agopian2009-10-065-12/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A window is created and the browser is about to render into it the very first time, at that point it does an IPC to SF to request a new buffer. Meanwhile, the window manager removes that window from the list and the shared memory block it uses is marked as invalid. However, at that point, another window is created and is given the same index (that just go freed), but a different identity and resets the "invalid" bit in the shared block. When we go back to the buffer allocation code, we're stuck because the surface we're allocating for is gone and we don't detect it's invalid because the invalid bit has been reset. It is not sufficient to check for the invalid bit, I should also check that identities match.
* | Fix issue 2139634: DTMF tones on Sholes popping, hissing (audio latency too ↵Eric Laurent2009-10-062-59/+81
| | | | | | | | | | | | | | | | | | | | high). This change is a complement to the main fix in kernel driver for the same issue (partner change #1250). It removes clicks sometimes heard after the end of the tones while audio flinger is sending 0s to the audio output stream. The problem was that the sleep time between two writes was more than the duration of one audio output stream buffer which could cause some underrun. Also fixed a recent regression in ToneGenerator that made that the end of previous tone was repeated at the beginning of current one under certain timing circumstances when the maximum tone duration was specified.
* | temporarily disable the use of glTexImage2D for sw buffers on sholes.Mathias Agopian2009-10-061-4/+4
|/ | | | | | we're going to first cut a build without this change. Approved by Dr. Hiroshi.
* Merge changes I430cf57b,I51f02f67,I464f13f3 into eclairAndroid (Google) Code Review2009-10-0623-684/+645
|\ | | | | | | | | | | | | * changes: fix [2168528] enable glTexImage2D code path in SF for software-only buffers fix [2168531] have software-only gralloc buffer side-step the HAL fix [2167050] glTexImage2D code path buggy in SurfaceFlinger
| * fix [2168528] enable glTexImage2D code path in SF for software-only buffersMathias Agopian2009-10-064-5/+23
| |
| * fix [2168531] have software-only gralloc buffer side-step the HALMathias Agopian2009-10-062-10/+170
| |
| * fix [2167050] glTexImage2D code path buggy in SurfaceFlingerMathias Agopian2009-10-0620-604/+387
| | | | | | | | | | | | | | | | | | | | | | | | | | | | When EGLImage extension is not available, SurfaceFlinger will fallback to using glTexImage2D and glTexSubImage2D instead, which requires 50% more memory and an extra copy. However this code path has never been exercised and had some bugs which this patch fix. Mainly the scale factor wasn't computed right when falling back on glDrawElements. We also fallback to this mode of operation if a buffer doesn't have the adequate usage bits for EGLImage usage. This changes only code that is currently not executed. Some refactoring was needed to keep the change clean. This doesn't change anything functionaly.
* | Merge change I996db8da into eclairAndroid (Google) Code Review2009-10-062-4/+10
|\ \ | |/ |/| | | | | * changes: Fix tls crash on startup if more than one RS contexts are created in one process.
| * Fix tls crash on startup if more than one RS contexts are created in one ↵Jason Sams2009-10-062-4/+10
| | | | | | | | process.
* | Merge change I516c3191 into eclairAndroid (Google) Code Review2009-10-067-1/+103
|\ \ | |/ | | | | | | * changes: Implement data push from scripts. Fixes the problem where apps would have to poll to monitor a scripts state. Fix bug in StoreState where state could be overridden by the default unless the script used more than one state.
| * Implement data push from scripts. Fixes the problem where apps would have ↵Jason Sams2009-10-067-1/+103
| | | | | | | | | | | | | | | | to poll to monitor a scripts state. Fix bug in StoreState where state could be overridden by the default unless the script used more than one state. Change only impacts renderscript and renderscript apps.
* | Add zoom functions and sendCommand.Wu-cheng Li2009-10-062-0/+30
|/ | | | b2060030
* Merge change I0c4cec7e into eclairAndroid (Google) Code Review2009-10-0210-39/+31
|\ | | | | | | | | * changes: Attempt to fix [2152536] ANR in browser
| * Attempt to fix [2152536] ANR in browserMathias Agopian2009-10-0210-39/+31
| | | | | | | | | | | | | | | | | | | | | | The ANR is caused by SurfaceFlinger waiting for buffers of a removed surface to become availlable. When it is removed from the current list, a Surface is marked as NO_INIT, which causes SF to return immediately in the above case. For some reason, the surface here wasn't marked as NO_INIT. This change makes the code more robust by always (irregadless or errors) setting the NO_INIT status in all code paths where a surface is removed from the list. Additionaly added more information in the logs, should this happen again.
* | Update the SimpleMesh API to support new attribute types. Also spilt ↵Jason Sams2009-10-021-3/+8
|/ | | | add/set commands to avoid permutation explosion.
* Add a test pattern as rollo's iconJoe Onorato2009-10-012-2/+5
|
* Implement screen aligned bitmap drawing support.Jason Sams2009-09-305-5/+70
|
* Turn off most of the backup-related debug loggingChristopher Tate2009-09-301-1/+1
| | | | | | | The core logging in BackupManagerService and in the Google backup transport are still enabled at this point. Change-Id: I10abfa565bbd1097dd3631051b6aca163e4af33a
* Merge change Ibe2085be into eclairAndroid (Google) Code Review2009-09-301-14/+23
|\ | | | | | | | | * changes: Fix issue 2153835: AudioFlinger: setParameters() can remain stuck if output thread is terminated.
| * Fix issue 2153835: AudioFlinger: setParameters() can remain stuck if output ↵Eric Laurent2009-09-301-14/+23
| | | | | | | | | | | | | | | | thread is terminated. Wait for the parameter set completed condition with a time out in ThreadBase::setParameters(). Also lock AudioFlinger mutex before accessing thread list in AudioFlinger::setParameters() and keep a strong reference on the thread being used in case it is exited while processing the request.
* | attempt to work around [2155085, 2150246] stuck in closeTransaction()Mathias Agopian2009-09-301-1/+8
| |
* | Merge changes I8851617a,Ie1b6f244,I70cab912,Ibd23e30d into eclairAndroid (Google) Code Review2009-09-304-45/+75
|\ \ | | | | | | | | | | | | | | | | | | | | | * changes: fix [2152247] Windows sometimes drawn scaled up. invalidate the surface when the physical changes introduce the notion of the requested size in the Layer state remove unused code
| * | fix [2152247] Windows sometimes drawn scaled up.Mathias Agopian2009-09-301-4/+34
| | |
| * | invalidate the surface when the physical changesMathias Agopian2009-09-302-7/+10
| | |
| * | introduce the notion of the requested size in the Layer stateMathias Agopian2009-09-293-19/+29
| | |
| * | remove unused codeMathias Agopian2009-09-293-16/+3
| | |
* | | Merge change I45094a34 into eclairAndroid (Google) Code Review2009-09-301-6/+0
|\ \ \ | |/ / | | / | |/ |/| * changes: remove dead code
| * remove dead codeMathias Agopian2009-09-291-6/+0
| |
* | Reduce the log spew from AudioFlinger due to a certain device that can't ↵Dave Sparks2009-09-301-4/+16
|/ | | | meet latency timing. Bug 2142215.
* absf() -> fabsf() instead of fabs()Romain Guy2009-09-291-1/+1
| | | | Change-Id: I5571a635757295aa1514aeaff72e80cc3dd8752c
* Merge change I5235cf3f into eclairAndroid (Google) Code Review2009-09-289-14/+49
|\ | | | | | | | | * changes: Fix but processing raster state pragma. rename stateFragmentStore to stateStore
| * Fix but processing raster state pragma.Jason Sams2009-09-289-14/+49
| | | | | | | | rename stateFragmentStore to stateStore
* | Change FLASH_MODE_VIDEO_LIGHT to FLASH_MODE_TORCH.Wu-cheng Li2009-09-281-1/+1
| |
* | don't emit GL commands when sf is in freeze modeMathias Agopian2009-09-271-9/+1
| | | | | | | | | | | | | | | | We were emitting GL commands, calling composition complete and releasing clients without ever calling eglSwapBuffers(), which is completely wrong on non-direct renders. This could cause transient drawing artifacts when unfreezing the screen (upon orientaion change for instance) and could also block the clients for ever as they are waiting for their previous buffer to be rendered.
* | Merge change 27375 into eclairAndroid (Google) Code Review2009-09-271-0/+4
|\ \ | | | | | | | | | | | | * changes: Allways dump the list of allocated buffers when an allocation fails.
| * | Allways dump the list of allocated buffers when an allocation fails.Mathias Agopian2009-09-271-0/+4
| | | | | | | | | | | | Hopefully this will help us understand cases of failures such as [2148405]