summaryrefslogtreecommitdiffstats
path: root/libs
Commit message (Collapse)AuthorAgeFilesLines
* Merge "Initialize bwr.read_buffer in IPCThreadState::talkWithDriver." into ↵Ben Cheng2011-12-011-0/+1
|\ | | | | | | ics-mr1
| * Initialize bwr.read_buffer in IPCThreadState::talkWithDriver.Ben Cheng2011-12-011-0/+1
| | | | | | | | | | | | | | | | | | I/valgrind( 1309): ==1310== Syscall param ioctl(BINDER_WRITE_READ).read_buffer points to uninitialised byte(s) I/valgrind( 1309): ==1310== at 0x480E670: __ioctl (__ioctl.S:10) I/valgrind( 1309): ==1310== Address 0xbda651b4 is on thread 1's stack Change-Id: I02893df7b5786b6b2dbd9659f5706d7171295ab2
* | Add support for handling a bitcode wrapper to librs.Stephen Hines2011-12-011-1/+19
|/ | | | | | BUG=5425905 Change-Id: I75676060703df6d9043b287fea900c4379455ee2
* SurfaceTexture: add EGL_KHR_fence_sync optionJamie Gennis2011-11-291-166/+233
| | | | | | | | This change adds a compile-time option for SurfaceTexture to use the EGL_KHR_fence_sync extension to synchronize access to Gralloc buffers. Bug: 5122031 Change-Id: I7e973a358631fff5308acf377581b811911fe790
* SurfaceTexture: add a blit-to-FBO testJamie Gennis2011-11-291-0/+111
| | | | | | | This change adds a test for blitting (via GL rendering) from a SurfaceTexture to an FBO. Change-Id: Ib3386fcc3f37153277f3e37a26347441bb80ab58
* Merge "Fix crash in existing applications Bug #5659476" into ics-mr1Romain Guy2011-11-281-2/+10
|\
| * Fix crash in existing applicationsRomain Guy2011-11-281-2/+10
| | | | | | | | | | | | | | | | | | Bug #5659476 The FontRenderer was not cleaning up its temporary state, leading to crashes when invoking renderDropShadow. Change-Id: I43b24820dd5625af8c080bbe11b64de2f74164b2
* | Fix flashing wifi dialog after rotating back from landscape.Chet Haase2011-11-281-2/+4
|/ | | | | | | | | | | | | | There was an error in some of the OpenGL layer logic such that we would occasionally set up a layer for rendering and then not clean up when it was done. This caused future OpenGL rendering to go into that layer instead of to the buffers being displayed on the screen, resulting in artifacts including flashes and displaying of stale content. This happened specifically when using the wifi settings dialog with the InputMethod keyboard displayed, but it was probably visible in other situations as well. Issue #5628248: Flickering/flashing after entering password for WiFi Change-Id: I38139f620b310f4309570fa7224552d2ee633999
* Merge "Draw in the correct FBO after invoking a GL functor Bug #5650514" ↵Romain Guy2011-11-222-2/+3
|\ | | | | | | into ics-mr1
| * Draw in the correct FBO after invoking a GL functorRomain Guy2011-11-212-2/+3
| | | | | | | | | | | | | | | | | | | | | | Bug #5650514 After invoking a GL functor, libhwui restores a few OpenGL states including the current FBO. The renderer was however making the wrong assumption that the FBO to restore to was the base layer instead of the FBO associated with the current canvas state. Change-Id: Ie565500832ebffd673f6a43b83422d6cc05470a0
* | Merge "don't report an error when disconnecting from an abandoned ↵Mathias Agopian2011-11-211-2/+3
|\ \ | | | | | | | | | surfacetexture" into ics-mr1
| * | don't report an error when disconnecting from an abandoned surfacetextureMathias Agopian2011-11-181-2/+3
| |/ | | | | | | | | | | | | this happens often with CPU Surfaces, which disconnect long after their surfacetexture has been abandoned. Change-Id: If49da03b72f99130e01b2b9bcbd444bb38f7ed4e
* | Merge "enable ALLOW_DEQUEUE_CURRENT_BUFFER for tegra devices" into ics-mr1Mathias Agopian2011-11-212-3/+11
|\ \
| * | enable ALLOW_DEQUEUE_CURRENT_BUFFER for tegra devicesMathias Agopian2011-11-182-3/+11
| |/ | | | | | | | | | | | | | | | | | | | | this flag should be enabled for all targets, but currently some have issues with it, so we're turning it on only for tested targets. this will hopefully resolve some performance issues. Bug: 5553562, 5631630 Change-Id: I54c7a9e2068586898ab13e405d95534669260537
* | SurfaceTexture: fix a couple testsJamie Gennis2011-11-211-2/+28
| | | | | | | | | | | | | | | | | | | | This change fixes some robustness issues with the EglDestroySurfaceUnrefsBuffers and EglDestroySurfaceAfterAbandonUnrefsBuffers tests. The tests previously depended upon GL implementation details that should not have been relied upon. Change-Id: I37fd43b56568efe1dbe69d85e892be8a1cf44d20
* | EGL: default to swap interval 1Jamie Gennis2011-11-212-0/+30
| | | | | | | | | | | | | | This change explicitly sets swap interval 1 on the window when an EGLSurface is created to render to it. Change-Id: I91eb29dbee3ae4a55076b921f084d503fbe94e03
* | SurfaceTexture: clean up some testsJamie Gennis2011-11-211-242/+255
|/ | | | | | | | | | | | | This change cleans a few things up in the SurfaceTexture tests: - Wraps a few long lines. - Refactors the multithreading portions of SurfaceTextureGLToGLTest into a new test fixture called SurfaceTextureGLThreadToGLTest. - Changes some of the tests that were creating their own EGLSurface to use the SurfaceTextureGLToGLTest fixture. - Reorders the test functions so that they are immediately below to the test fixture that they use. Change-Id: I0491ce3528a7ff2b4f1e83602ba290269c087297
* Merge "attempt to fix bug 5313580" into ics-mr1Mathias Agopian2011-11-181-0/+6
|\
| * attempt to fix bug 5313580Mathias Agopian2011-11-171-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | the working theory here is that a Surface object has become non-promotable because it lost its last reference; later Surface::readFromParcel is called the previous surface is found in the cache, but can't be promoted. this causes a new Surface object to be created which will promptly try to connect to the CPU_API -- this in turn will fail because the previous (now dead) surface is still connected. To fix this, we make sure to disconnect from the SurfaceTexture when Surface[TextureClient] is destroyed. Change-Id: I422234868a05d7b7d283e9d5a85f7ab79e65d8a9
* | Merge "SurfaceTexture: fix a bug with buffer reallocation" into ics-mr1Jamie Gennis2011-11-171-0/+5
|\ \ | |/ |/|
| * SurfaceTexture: fix a bug with buffer reallocationJamie Gennis2011-11-171-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | This change fixes an issue involving buffer reallocation and the ALLOW_DEQUEUE_CURRENT_BUFFER mode in SurfaceTexture. The bug happened when the buffer slot currently attached to the GL texture was selected for dequeuing, but the dequeue operation caused the buffer to be reallocated. Because the buffer is new, the image producer could fill the buffer and queue it before an updateTexImage call, which would result in the "slot %d is current" error in queueBuffer. Bug: 5631630 Change-Id: Icdd8bc5cad3c7db43953446d9be2603aaea11a8d
* | Merge "Revert "enable ALLOW_DEQUEUE_CURRENT_BUFFER for tegra devices"" into ↵Mathias Agopian2011-11-162-11/+3
|\ \ | | | | | | | | | ics-mr1
| * | Revert "enable ALLOW_DEQUEUE_CURRENT_BUFFER for tegra devices"Mathias Agopian2011-11-162-11/+3
| | | | | | | | | | | | | | | | | | | | | | | | This reverts commit e7758be6da85728df6b4215f413660c67c5a9740. Seemed to cause failures un SurfaceTexture. Bug: 5627450
* | | Merge "SurfaceTexture: Fix to return the oldest of free buffers to Client on ↵Jamie Gennis2011-11-161-5/+17
|\ \ \ | |/ / |/| | | | | Dequeue call" into ics-mr1
| * | SurfaceTexture: Fix to return the oldest of free buffers to Client on ↵Sunita Nadampalli2011-11-151-5/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Dequeue call Surface Texture dequeue logic is modified to return the oldest of the free buffers to Client on dequeue call. Currently dequeue method is returning the first buffer index which is free. The parsing is done in ascending order of the buffer slot indices. This leads to returning the buffer which has been just queued to composer, and hence display, and this defeats the purpose of having minimum dequeue count as 2 in asynchrnouse mode. This is fixed by checking all the free slots and returning the oldest buffer. Change-Id: Ibbac10593c3994c278c601af0480b171635ecdd4 Signed-off-by: Sunita Nadampalli <sunitan@ti.com>
* | | Merge "Eliminate hw.keyboards system properties." into ics-mr1Jeff Brown2011-11-152-55/+0
|\ \ \ | |_|/ |/| |
| * | Eliminate hw.keyboards system properties.Jeff Brown2011-11-152-55/+0
| |/ | | | | | | | | | | | | | | | | | | | | | | Stop using system properties to publish information about the key character map path. Instead, we can retrieve it on demand by asking the window manager. It was possible to exhaust the supply of system properties when repeatedly adding and removing input devices. Bug: 5532806 Change-Id: Idd361a24ad7db2edc185c8546db7fb05f9c28669
* | enable ALLOW_DEQUEUE_CURRENT_BUFFER for tegra devicesMathias Agopian2011-11-142-3/+11
|/ | | | | | | | | | | this flag should be enabled for all targets, but currently some have issues with it, so we're turning it on only for tested targets. this will hopefully resolve some performance issues. Bug: 5553562 Change-Id: I939992b4cd0debea980dec0127c72be2dff33af8
* Merge "Revert "Discard framebuffer rendering queues when discarding layers"" ↵Dave Burke2011-11-145-34/+3
|\ | | | | | | into ics-mr1
| * Revert "Discard framebuffer rendering queues when discarding layers"Dave Burke2011-11-145-34/+3
| | | | | | | | This reverts commit da96f8ac2c1c35a54f3f36e6d776cb386a251d03.
* | Merge "Define, document, and test the behavior of very large ↵Mathias Agopian2011-11-141-0/+32
|\ \ | |/ |/| | | SurfaceTextures" into ics-mr1
| * Define, document, and test the behavior of very large SurfaceTexturesMathias Agopian2011-11-111-0/+32
| | | | | | | | | | | | | | | | | | updateTexImage() now throws a runtime exception when its native counterpart fails Bug: 5506633 Change-Id: I151a6f685d465966e7df4df624412ab2da62e95f
* | Discard framebuffer rendering queues when discarding layersRomain Guy2011-11-105-3/+34
|/ | | | | | Bug #5581817 Change-Id: If612846ec5f7793710fc4df152791fb32c506551
* Terminate EGL when an app goes in the backgroundRomain Guy2011-11-102-10/+47
| | | | | | | | This does not happen on high end gfx devices. This happens only if only one EGL context is initialized in the current process. Change-Id: Ibd1737efdf84eef8a84108b05795440d1ae9964e
* am 5462bc63: Fix a leak in Parcel::writeBlob.Jeff Brown2011-11-051-9/+4
|\ | | | | | | | | * commit '5462bc6318b4b70e7a58c66994e2bd79f59d9739': Fix a leak in Parcel::writeBlob.
| * Fix a leak in Parcel::writeBlob.Jeff Brown2011-11-041-9/+4
| | | | | | | | | | | | | | | | | | | | Was mistakenly assuming that Parcel::writeFileDescriptor took ownership of the fd that was passed in. It does not! Added some comments and a default parameter to allow the caller to specify whether it wishes the Parcel to take ownership. Bug: 5563374 Change-Id: I5a12f51d582bf246ce90133cce7690bb9bca93f6
* | Merge "Memory optimizations for libhwui Bug #5566149" into ics-mr1Romain Guy2011-11-046-27/+127
|\ \
| * | Memory optimizations for libhwuiRomain Guy2011-11-046-27/+127
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug #5566149 Lazily initialize font renderers Keep 60% of the texture cache when an app goes to the background Delete least used font renderer when going to the background Delete all font renderers on full memory trim Change-Id: I3c2454d46dc1107ec0f0f72a9ce69cbbcc8825e7
* | | Merge "SurfaceTexture: various logging improvements" into ics-mr1Jamie Gennis2011-11-031-16/+32
|\ \ \
| * | | SurfaceTexture: various logging improvementsJamie Gennis2011-11-011-16/+32
| |/ / | | | | | | | | | Change-Id: I1f7216276547a1e9f9343c88c6cc1c24efcdcdbc
* | | Merge changes Ibc99cb1c,Ie1f4f6f8 into ics-mr1Jamie Gennis2011-11-032-4/+302
|\ \ \ | | | | | | | | | | | | | | | | | | | | * changes: BlobCache: implement cache serialization BlobCache: remove the mutex locking
| * | | BlobCache: implement cache serializationJamie Gennis2011-10-312-2/+302
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This change adds serialization and deserialization functionality to BlobCache, conforming to the Flattenable interface. Change-Id: Ibc99cb1c3d015f363d57d0713eabccec07ff975e
| * | | BlobCache: remove the mutex lockingJamie Gennis2011-10-311-2/+0
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change removes the mutex from the BlobCache class. The caller must be responsible for thread synchronization in order to properly implement the Flattenable interface, which is coming soon. Otherwise would be the potential for the cache contents to change between the call to the getFlattenedSize and flatten methods. Because the caller must do this synchronization anyway there's no reason to also some synchronization inside BlobCache. Change-Id: Ie1f4f6f82b78744f46a41ce863cac0cad276a20e
* | | am af675222: Merge "Fix potential segfault in RS watchdog." into ics-mr0Stephen Hines2011-11-011-0/+1
|\ \ \ | |/ / |/| / | |/ | | * commit 'af675222f6340a8a9edbe9e8635014a18521e5e0': Fix potential segfault in RS watchdog.
| * Fix potential segfault in RS watchdog.Stephen Hines2011-10-311-0/+1
| | | | | | | | | | | | | | | | | | BUG=5544671 This initializes the watchdog structure properly. Without this fix, it is possible to call LOGE with a garbage string value. Change-Id: Ie05eb65f83eca938f18ac962794407d58c3f277f
* | Merge "Removing changes not meant for MR1" into ics-mr1Alex Sakhartchouk2011-10-311-195/+0
|\ \
| * | Removing changes not meant for MR1Alex Sakhartchouk2011-10-271-195/+0
| | | | | | | | | | | | Change-Id: I75136be33f12a87c2b5f21b064c06065a4145d70
* | | resolved conflicts for merge of 2d280f75 to ics-mr1Jeff Brown2011-10-301-1/+1
|\ \ \ | | |/ | |/| | | | Change-Id: I459e1cb0b60fb94dfb12862fedb9f8d949c226a7
| * | Improve the slow query instrumentation.Jeff Brown2011-10-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On user-debug and eng builds, you can set the "db.log.slow_query_threshold" system property to queries that take longer than the specified number of milliseconds. Set it to 0 to log all queries. This property has been around for a while but it was implemented poorly. In particular, it *changed* the behavior of the query by calling getCount() while holding the Db connection. In normal operation, the query will not actually run until later. By putting the timing logic into fillWindow() instead, we ensure that we only measure queries that actually ran. We also capture cases where the cursor window gets filled multiple times. Bug: 5520301 Change-Id: I174f5e1ea15831a1d22a36e9a804d7755f230b38
* | | am 28e4f87f: Fix bug where CPU could be stuck spinning Required the ↵Jason Sams2011-10-271-0/+2
|\ \ \ | |/ / | | / | |/ |/| | | | | wallpaper be animating and the system to have run slowly during the last frame when rendering stopped. * commit '28e4f87f38cae799b494e160467d732e988bad89': Fix bug where CPU could be stuck spinning Required the wallpaper be animating and the system to have run slowly during the last frame when rendering stopped.