summaryrefslogtreecommitdiffstats
path: root/libs
Commit message (Collapse)AuthorAgeFilesLines
* am 923f2cf0: am a89a059e: am 04104665: Merge change I911458a0 into eclairMarco Nelissen2009-10-291-1/+1
|\ | | | | | | | | | | | | Merge commit '923f2cf0dc15ac2bafa8013b31a722b85a64176b' * commit '923f2cf0dc15ac2bafa8013b31a722b85a64176b': Fix x offset for boxed textures
| * am 04104665: Merge change I911458a0 into eclairMarco Nelissen2009-10-291-1/+1
| |\ | | | | | | | | | | | | | | | | | | Merge commit '04104665271248719cb3659e42938fa4bec0261e' into eclair-mr2 * commit '04104665271248719cb3659e42938fa4bec0261e': Fix x offset for boxed textures
| | * Fix x offset for boxed texturesMarco Nelissen2009-10-281-1/+1
| | |
* | | am cad9a4b0: am 66e06205: Another gcc 4.0.3 workaround.Andy McFadden2009-10-291-0/+2
|\ \ \ | |/ / | | | | | | | | | | | | | | | Merge commit 'cad9a4b0468eb9611cc9b7d7b380d8af3fff8588' * commit 'cad9a4b0468eb9611cc9b7d7b380d8af3fff8588': Another gcc 4.0.3 workaround.
| * | Another gcc 4.0.3 workaround.Andy McFadden2009-10-291-0/+2
| |/ | | | | | | | | Temporarily make a function public that doesn't need to be. When host gcc-4.0.3 is gone from the build servers we can undo this.
* | am 64d3f44c: am 893cb4da: am 73e17015: Merge change I8d2de438 into eclairMathias Agopian2009-10-299-192/+117
|\ \ | |/ | | | | | | | | | | Merge commit '64d3f44c7bf5a6e80be419df5850ef60fec216b5' * commit '64d3f44c7bf5a6e80be419df5850ef60fec216b5': fix [2143798] Need to figure out how to do video
| * Merge change I8d2de438 into eclairAndroid (Google) Code Review2009-10-289-192/+117
| |\ | | | | | | | | | | | | * changes: fix [2143798] Need to figure out how to do video
| | * fix [2143798] Need to figure out how to do videoMathias Agopian2009-10-279-192/+117
| | | | | | | | | | | | | | | | | | | | | | | | | | | Use EGLImageKHR instead of copybit directly. We now have the basis to use streaming YUV textures (well, in fact we already are). When/if we use the GPU instead of the MDP we'll need to make sure it supports the appropriate YUV format. Also make sure we compile if EGL_ANDROID_image_native_buffer is not supported
* | | am 3c249da7: am 21e799ed: am e9e50b57: Merge change I7136220b into eclairJason Sams2009-10-292-3/+60
|\ \ \ | |/ / | | | | | | | | | | | | | | | Merge commit '3c249da7eaceaffae87657aeb7179ffc4a5e1570' * commit '3c249da7eaceaffae87657aeb7179ffc4a5e1570': Fix egl cleanup code on context teardown.
| * | Fix egl cleanup code on context teardown.Jason Sams2009-10-272-3/+60
| |/
* | Fix dirty state tracking of allocation attached to ProgramVertex objects ↵Jason Sams2009-10-266-25/+42
|/ | | | when being updated while not attached.
* Merge change Icf10db28 into eclairAndroid (Google) Code Review2009-10-244-34/+73
|\ | | | | | | | | * changes: Fix issue 2192181: AudioFlinger must provide separated methods to set VOICE_CALL stream volume and down link audio volume.
| * Fix issue 2192181: AudioFlinger must provide separated methods to set ↵Eric Laurent2009-10-214-34/+73
| | | | | | | | | | | | | | VOICE_CALL stream volume and down link audio volume. Added setVoiceVolume() method to AudioSystem, AudioFlinger, IAudioFlinger, AudioPolicyService. Removed call to AudioHardwareInterface::setVoiceVolume() from AudioFlinger::setStreamVolume().
* | fix [2211532] improves sholes graphics performanceMathias Agopian2009-10-233-64/+146
|/ | | | | | | Instead of using glTex{Sub}Image2D() to refresh the textures, we're using an EGLImageKHR object backed up by a gralloc buffer. The data is updated using memcpy(). This is faster than glTex{Sub}Image2D() because the texture is not swizzled. It also uses less memory because EGLImageKHW is not limited to power-of-two dimensions.
* Merge change Ia8ac904d into eclairAndroid (Google) Code Review2009-10-161-0/+7
|\ | | | | | | | | * changes: fix [2182249] [MR1] valgrind error in surface flinger
| * fix [2182249] [MR1] valgrind error in surface flingerMathias Agopian2009-10-151-0/+7
| |
* | 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.