summaryrefslogtreecommitdiffstats
path: root/libs
Commit message (Collapse)AuthorAgeFilesLines
* am 55d3880e: am bb1e7d43: Merge changes I7e973a35,Ib3386fcc into ics-mr1Mathias Agopian2011-11-302-166/+344
|\ | | | | | | | | | | * commit '55d3880eed3450748eb7b97281e030902ee29c2a': SurfaceTexture: add EGL_KHR_fence_sync option SurfaceTexture: add a blit-to-FBO test
| * 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
* | Add support for sending VSYNC events to the frameworkMathias Agopian2011-11-294-0/+190
| | | | | | | | | | | | | | | | | | use gui/DisplayEvent to receive the events. Events are dispatched through a unix pipe, so the API is compatible with utils/Looper. see gui/DisplayEvent.h for more info. Bug: 1475048 Change-Id: Ia720f64d1b950328b47b22c6a86042e481d35f09
* | Fix build.Mathias Agopian2011-11-292-34/+0
| | | | | | | | | | | | | | | | Revert "Add support for sending VSYNC events to the framework" This reverts commit f3918c5bd4bc9f02f74da42995564150ca2dd382. Change-Id: I998e3e1aa3fa310829ae973b64fe11b01f6f468f
* | Merge changes If4126023,Iacda2386,I1eb691f7,Ib56139f8Mathias Agopian2011-11-297-0/+46
|\ \ | | | | | | | | | | | | | | | | | | | | | * changes: Add support for sending VSYNC events to the framework BitTube::read now handles EAGAIN split ComposerService out of SurfaceComposerClient.h rewrite SF's message loop on top of Looper
| * | Add support for sending VSYNC events to the frameworkMathias Agopian2011-11-292-0/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | use gui/DisplayEvent to receive the events. Events are dispatched through a unix pipe, so the API is compatible with utils/Looper. see gui/DisplayEvent.h for more info. Bug: 1475048 Change-Id: If4126023fc9c067e56087ec7d16a8fd542ce1794
| * | BitTube::read now handles EAGAINMathias Agopian2011-11-291-0/+5
| | | | | | | | | | | | Change-Id: Iacda2386342ba0727bbf278f6c597488d5467bb8
| * | split ComposerService out of SurfaceComposerClient.hMathias Agopian2011-11-284-0/+7
| | | | | | | | | | | | Change-Id: I1eb691f7ca263d5895d871ab675bb5826e0323c6
* | | am 02e88f23: am 46685db9: Merge "Fix crash in existing applications Bug ↵Romain Guy2011-11-281-2/+10
|\ \ \ | | |/ | |/| | | | | | | | | | | | | #5659476" into ics-mr1 * commit '02e88f23a65c602e83d7a46c0925e653b948e418': Fix crash in existing applications Bug #5659476
| * | 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
* | | | am 38928899: am 8990cb57: Merge "Fix flashing wifi dialog after rotating ↵Chet Haase2011-11-281-2/+4
|\ \ \ \ | |/ / / | | | / | |_|/ |/| | | | | | | | back from landscape." into ics-mr1 * commit '3892889952b0ad3fa0b095c96d8ae2ae110585e2': Fix flashing wifi dialog after rotating back from landscape.
| * | 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
* | Remove dead code.Logan Chien2011-11-272-4/+1
| | | | | | | | Change-Id: I2838a40026291e7345b07911af3ba17278b63ffe
* | Merge "Add a basic hashtable data structure, with tests!"Jeff Brown2011-11-235-1/+965
|\ \
| * | Add a basic hashtable data structure, with tests!Jeff Brown2011-11-225-1/+965
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The basic hashtable is intended to be used to support a variety of different datastructures such as map, set, multimap, multiset, linkedmap, generationcache, etc. Consequently its interface is fairly primitive. The basic hashtable supports copy-on-write style functionality using SharedBuffer. The change introduces a simple generic function in TypeHelpers for specifying hash functions. The idea is to add template specializations of hash_type<T> next to the relevant data structures such as String8, String16, sp<T>, etc. Change-Id: I2c479229e9d4527b4fbfe3b8b04776a2fd32c973
* | | Merge "Add support for handling a bitcode wrapper to librs."Stephen Hines2011-11-231-1/+19
|\ \ \ | |/ / |/| |
| * | Add support for handling a bitcode wrapper to librs.Stephen Hines2011-11-221-1/+19
| | | | | | | | | | | | | | | | | | BUG=5425905 Change-Id: I75676060703df6d9043b287fea900c4379455ee2
* | | Merge "add overview description for RS API reference"Robert Ly2011-11-221-0/+25
|\ \ \
| * | | add overview description for RS API referenceRobert Ly2011-11-221-0/+25
| | | | | | | | | | | | | | | | Change-Id: Id5554c607ad4c435f92bfa939e4ce4833a638f62
* | | | Fix script init error handling.Jason Sams2011-11-223-3/+10
| | | | | | | | | | | | | | | | Change-Id: I7ceb0af4dfd12db0274985ff658f678d7af829ff
* | | | Merge "Use libcorkscrew to format the stack trace."Jeff Brown2011-11-221-22/+10
|\ \ \ \
| * | | | Use libcorkscrew to format the stack trace.Jeff Brown2011-11-211-22/+10
| | |/ / | |/| | | | | | | | | | Change-Id: I3a5439ada76bc77c2dd491eaed2272e16a811cc7
* | | | am a2fabf4a: am 303a0695: Merge "Draw in the correct FBO after invoking a GL ↵Romain Guy2011-11-222-2/+3
|\ \ \ \ | | |_|/ | |/| | | | | | | | | | | | | | | | | | functor Bug #5650514" into ics-mr1 * commit 'a2fabf4a109d46f99ff7370aa05e48c1708c2838': Draw in the correct FBO after invoking a GL functor Bug #5650514
| * | | 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
* | | | | am cc4d02e0: am 07a2d831: Merge "don\'t report an error when disconnecting ↵Mathias Agopian2011-11-211-2/+3
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | from an abandoned surfacetexture" into ics-mr1 * commit 'cc4d02e0cbb99341a0508838c88eeef53180fdfd': don't report an error when disconnecting from an abandoned surfacetexture
| * | | | 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
* | | | | am 8390cf39: am 8646cd42: Merge "enable ALLOW_DEQUEUE_CURRENT_BUFFER for ↵Mathias Agopian2011-11-212-3/+11
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | tegra devices" into ics-mr1 * commit '8390cf39f8a4f74f7baa91d23cba06894a3fb9b5': enable ALLOW_DEQUEUE_CURRENT_BUFFER for tegra devices
| * | | | 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
* | | | | am c2597295: am 53cf2020: Merge changes I37fd43b5,I91eb29db,I0491ce35 into ↵Jamie Gennis2011-11-212-241/+310
|\ \ \ \ \ | |/ / / / | | | / / | |_|/ / |/| | | | | | | | | | | | | | | | | | | ics-mr1 * commit 'c25972950c2ea62fb085524dbe737c2bf0f08f4a': SurfaceTexture: fix a couple tests EGL: default to swap interval 1 SurfaceTexture: clean up some tests
| * | | 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
* | | am d0df44b5: am 4d71053b: Merge "attempt to fix bug 5313580" into ics-mr1Mathias Agopian2011-11-181-0/+6
|\ \ \ | |/ / | | | | | | | | | * commit 'd0df44b5c979e00a19187cea35768ba26557e447': attempt to fix bug 5313580
| * | 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
* | | | am 9da22d2c: am 2ba13186: Merge "SurfaceTexture: fix a bug with buffer ↵Jamie Gennis2011-11-181-0/+5
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | reallocation" into ics-mr1 * commit '9da22d2cc31069d86a92021d8540bb5a77c9591b': SurfaceTexture: fix a bug with buffer reallocation
| * | | 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 "Fixing FBO font rendering bug that resulted from using old surface size."Alex Sakhartchouk2011-11-176-6/+44
|\ \ \ \
| * | | | Fixing FBO font rendering bug that resulted from using old surface size.Alex Sakhartchouk2011-11-166-6/+44
| | | | | | | | | | | | | | | | | | | | Change-Id: I31d0967bb36ca6ffb6a4c8194597d3c523cfe954
* | | | | am abdade71: am 69c17a11: Merge "Revert "enable ALLOW_DEQUEUE_CURRENT_BUFFER ↵Mathias Agopian2011-11-172-11/+3
|\ \ \ \ \ | | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | for tegra devices"" into ics-mr1 * commit 'abdade71bc17153696fe2abe281c5a3b0c2e5abe': Revert "enable ALLOW_DEQUEUE_CURRENT_BUFFER for tegra devices"
| * | | | 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
* | | | | | am 7765fc65: am fd6b64f6: Merge "SurfaceTexture: Fix to return the oldest of ↵Jamie Gennis2011-11-171-5/+17
|\ \ \ \ \ \ | |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | free buffers to Client on Dequeue call" into ics-mr1 * commit '7765fc651a9519dd2f0ac9d3374a50e9865c5c99': SurfaceTexture: Fix to return the oldest of free buffers to Client on Dequeue call
| * | | | | Merge "SurfaceTexture: Fix to return the oldest of free buffers to Client on ↵Jamie Gennis2011-11-161-5/+17
| |\ \ \ \ \ | | |/ / / / | |/| | | | | | | | | | Dequeue call" into ics-mr1