summaryrefslogtreecommitdiffstats
path: root/libs/gui
Commit message (Collapse)AuthorAgeFilesLines
* 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
* 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 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
* | | 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
| | * 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>
* | | am 556a406c: am 3aa684ec: Merge "enable ALLOW_DEQUEUE_CURRENT_BUFFER for ↵Mathias Agopian2011-11-152-3/+11
|\ \ \ | |/ / | | | | | | | | | | | | | | | tegra devices" into ics-mr1 * commit '556a406cf4dd8a7faa318e0d522d899f8b9da7dc': enable ALLOW_DEQUEUE_CURRENT_BUFFER for tegra devices
| * | 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
* | am 738d8cae: am c93a151f: Merge "Define, document, and test the behavior of ↵Mathias Agopian2011-11-141-0/+32
|\ \ | |/ | | | | | | | | | | very large SurfaceTextures" into ics-mr1 * commit '738d8cae2239d194429676f2889cfae3c8f7ba08': Define, document, and test the behavior of very large SurfaceTextures
| * 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
* | am c5ce130f: Merge "SurfaceTexture: various logging improvements" into ics-mr1Jamie Gennis2011-11-031-16/+32
|\ \ | |/ | | | | | | * commit 'c5ce130f658303299bf55091373951f7fd33ae36': SurfaceTexture: various logging improvements
| * SurfaceTexture: various logging improvementsJamie Gennis2011-11-011-16/+32
| | | | | | | | Change-Id: I1f7216276547a1e9f9343c88c6cc1c24efcdcdbc
* | Merge "Rename SensorChannel to BitTube"Mathias Agopian2011-10-264-24/+46
|\ \
| * | Rename SensorChannel to BitTubeMathias Agopian2011-10-204-24/+46
| |/
* | Rename (IF_)LOGV(_IF) to (IF_)ALOGV(_IF) DO NOT MERGESteve Block2011-10-263-36/+36
|/ | | | | | | See https://android-git.corp.google.com/g/#/c/143865 Bug: 5449033 Change-Id: I0122812ed6ff6f5b59fe4a43ab8bff0577adde0a
* Merge "SurfaceTexture: add tests for buffer leaks"Jesse Hall2011-10-201-1/+83
|\
| * SurfaceTexture: add tests for buffer leaksJamie Gennis2011-10-191-1/+83
| | | | | | | | | | | | | | | | This change adds two tests to ensure that eglDestroySurface does not cause Gralloc buffers to be leaked. Bug: 5472838 Change-Id: Id675d74e34b6479f2d68314d40de94aede69f142
* | am 827d069a: Merge "SurfaceTexture: free buffers when disconnect fails" into ↵Jamie Gennis2011-10-191-1/+1
|\ \ | |/ |/| | | | | | | | | ics-mr0 * commit '827d069afb297b6d96c995c03da9d4ee17e60679': SurfaceTexture: free buffers when disconnect fails
| * SurfaceTexture: free buffers when disconnect failsJamie Gennis2011-10-181-1/+1
| | | | | | | | | | | | | | | | | | This change makes SurfaceTextureClient free its references to all the buffers even when the disconnect binder call to the SurfaceTexture fails. Bug: 5384823 Change-Id: Iad787fbae5fda4769546fd52276e4e4030c62be6
* | am 9a0732af: Merge "SensorManager reconnects to sensor service when the ↵Mathias Agopian2011-10-171-30/+79
|\ \ | |/ | | | | | | | | | | later dies" into ics-mr0 * commit '9a0732af1bd96a7d8247dee124a7da389137a52f': SensorManager reconnects to sensor service when the later dies
| * Merge "SensorManager reconnects to sensor service when the later dies" into ↵Mathias Agopian2011-10-171-30/+79
| |\ | | | | | | | | | ics-mr0
| | * SensorManager reconnects to sensor service when the later diesMathias Agopian2011-10-161-30/+79
| | | | | | | | | | | | | | | | | | | | | | | | | | | if system process ever restarted, processes using a SensorManager would loose the ability to use it, resulting to a crash. we now listen for sensor service death and reconnected if necessary. Bug: 5445240 Change-Id: Ia47f8b26cdcecb729fa22bf11d55e10fcaef8cfc
* | | am 3a735078: Merge "SurfaceTexture: report binder transaction failures" into ↵Jamie Gennis2011-10-171-23/+56
|\ \ \ | |/ / | | | | | | | | | | | | | | | ics-mr0 * commit '3a73507801b56da83140fad14a1a3d4eced213d9': SurfaceTexture: report binder transaction failures
| * | Merge "SurfaceTexture: report binder transaction failures" into ics-mr0Jamie Gennis2011-10-171-23/+56
| |\ \ | | |/ | |/|
| | * SurfaceTexture: report binder transaction failuresJamie Gennis2011-10-141-23/+56
| | | | | | | | | | | | | | | | | | | | | | | | This change fixes the ISurfaceTexture error reporting for the case where the binder transaction fails. Bug: 5082219 Change-Id: I6517532992e3a76dc9eb5e4a36af43a562391aaa
* | | am fefffc68: Merge "add logging and defensive code when initializing ↵Mathias Agopian2011-10-171-3/+17
|\ \ \ | |/ / | | | | | | | | | | | | | | | sensors" into ics-mr0 * commit 'fefffc685ab703b44f6e32b5ec45292b22d370a3': add logging and defensive code when initializing sensors
| * | add logging and defensive code when initializing sensorsMathias Agopian2011-10-161-3/+17
| | | | | | | | | | | | | | | Bug: 5445240 Change-Id: I9dc7d27d3e8b4f15989488859831526d8c7ded3b
* | | SurfaceFlinger: make sync transactions explicitJamie Gennis2011-10-142-10/+29
|/ / | | | | | | | | | | | | This change enables a layer or orientation update transaction sent to SurfaceFlinger to explicitly request a synchronous transaction. Change-Id: I97cbba610c13679849f66114b216fa6dbf12f2a9
* | Surface: fix a protected buffer testJamie Gennis2011-10-121-25/+2
|/ | | | | | | | This change renames the ScreenshotsOfProtectedBuffersFail to ScreenshotsOfProtectedBuffersSucceed and changes the test to verify that the screenshot succeeds. Change-Id: I960bb8eed4211578cb4dc446b08392937da064b6
* SurfaceFlinger: update orientation via transactionsJamie Gennis2011-10-112-65/+29
| | | | | | | | | | | This change merges the ISurfaceComposer::setOrientation functionality into ISurfaceComposer::setTransactionState. It enables the window manager to atomically update both the display orientation and the position and size of the windows in a single transaction with SurfaceFlinger. Bug: 5439574 Change-Id: I18a8ccc564d7d760ef8afb2d015ccdb7a7963900