summaryrefslogtreecommitdiffstats
path: root/libs/gui/tests
Commit message (Collapse)AuthorAgeFilesLines
...
* libgui: have ST::updateTexImage check the GL ctxJamie Gennis2012-03-191-34/+66
| | | | | | | | This change adds a check to SurfaceTexture::updateTexImage to verify that the current GL context is the same as the one that was used for previous updateTexImage calls. Change-Id: If02d2f787bcfdb528046dc9ddf6665f8a90e1bf4
* libgui: add BQ consumer buffer free notificationsJamie Gennis2012-03-192-13/+46
| | | | | | | | | | | | | | | | | | | This change adds a new callback for BufferQueue consumers to be notified when the BufferQueue frees some or all of its buffers. This is needed to retain SurfaceTexture behavior where all buffers would be freed when the producer disconnects. This change also modifies the SurfaceTextureGLToGLTest.EglDestroySurfaceUnrefsBuffers test to catch when the buffers are not freed. The implementation is a little complicated because it needs to avoid circular sp<> references across what will be a binder interface (so wp<> can't be used directly). It also needs to avoid the possibility of locking the BufferQueue and consumer (e.g. SurfaceTexture) mutexes in the wrong order. This change also includes a few additional fixes and test cleanups. Change-Id: I27b77d0af15cb4b135f4b63573f634f5f0da2182
* fix libgui header locationMathias Agopian2012-02-272-6/+6
| | | | Change-Id: Iec71706cdd4f29c6904993648ce873e83ef9cafe
* am 55d3880e: am bb1e7d43: Merge changes I7e973a35,Ib3386fcc into ics-mr1Mathias Agopian2011-11-301-0/+111
|\ | | | | | | | | | | * commit '55d3880eed3450748eb7b97281e030902ee29c2a': SurfaceTexture: add EGL_KHR_fence_sync option SurfaceTexture: add a blit-to-FBO test
| * 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
* | split ComposerService out of SurfaceComposerClient.hMathias Agopian2011-11-281-0/+2
| | | | | | | | Change-Id: I1eb691f7ca263d5895d871ab675bb5826e0323c6
* | am c2597295: am 53cf2020: Merge changes I37fd43b5,I91eb29db,I0491ce35 into ↵Jamie Gennis2011-11-211-241/+305
|\ \ | |/ | | | | | | | | | | | | | | 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-211-0/+25
| | | | | | | | | | | | | | 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 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
* | Rename (IF_)LOGV(_IF) to (IF_)ALOGV(_IF) DO NOT MERGESteve Block2011-10-261-18/+18
|/ | | | | | | See https://android-git.corp.google.com/g/#/c/143865 Bug: 5449033 Change-Id: I0122812ed6ff6f5b59fe4a43ab8bff0577adde0a
* 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
* 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
* Merge "SurfaceTexture: fix a test deadlock"Jamie Gennis2011-09-051-2/+4
|\
| * SurfaceTexture: fix a test deadlockJamie Gennis2011-08-301-2/+4
| | | | | | | | | | | | | | This change fixes a test issue that resulted in a deadlock. Change-Id: I4729e8dd47c8f5fea49bfeff3cea58627ead6d04 Bug: 5174876
* | Integreate surfacetexture test into our continuous test framework.Xia Wang2011-08-301-6/+4
|/ | | | Change-Id: Ic481f3a431166851947676d676749543c7afbbf7
* Merge "SurfaceTexture: enable RGB external textures"Jamie Gennis2011-07-251-18/+14
|\
| * SurfaceTexture: enable RGB external texturesJamie Gennis2011-07-221-18/+14
| | | | | | | | | | | | | | | | This change removes support for conditionally using the GL_TEXTURE_2D target for SurfaceTexture textures with RGB buffers. It also enables and fixes the RGB-based SurfaceTexture tests. Change-Id: I9a251a981cf66af6b048b2e4c3fe7231e4774f4d
* | SurfaceTexture: add the abandon method.Jamie Gennis2011-07-221-0/+77
| | | | | | | | | | | | | | | | This change adds the 'abandon' method to the SurfaceTexture C++ class. This method may be used to put the SurfaceTexture in an abandoned state, causing all ISurfaceTexture methods to fail. Change-Id: Ibd261f7b73f44e2bec36a8508bf92113cfb7cf95
* | SurfaceTexture: add a deadlock scenario testJamie Gennis2011-07-221-4/+70
|/ | | | | | | | This change adds a test to ensure that a GL driver that's blocking on a call to dequeueBuffer does not block other GL threads from rendering and queueing buffers. Change-Id: Ifdd234effc534b6a9cf8522ca87f64da5bb0bbd6
* clean-up. get rid ofunused code and members in Surface[Control].cppMathias Agopian2011-07-201-5/+0
| | | | Change-Id: Ia7790ae28af2c2ac99eae01c2c5044ace4a490a4
* Merge "SurfaceTexture: add a multi-SurfaceTexture test"Jamie Gennis2011-07-181-0/+86
|\
| * SurfaceTexture: add a multi-SurfaceTexture testJamie Gennis2011-07-111-0/+86
| | | | | | | | | | | | | | This change adds a test that does simple, unverified GL rendering to multiple SurfaceTextures. Change-Id: I51a41d68ae5a27e01ae93842242897b0d3558ca6
* | Merge "SurfaceTexture: fix SurfaceTextureGLToGLTest"Jamie Gennis2011-07-151-5/+30
|\ \
| * | SurfaceTexture: fix SurfaceTextureGLToGLTestJamie Gennis2011-07-141-5/+30
| |/ | | | | | | | | | | | | | | | | | | | | This change fixes a couple different issues in the SurfaceTextureGLToGLTest test fixture: - incorrect use of conditions - move logging after the locks are acquired - call the parent class's TearDown method - clean up the SurfaceTexture before eglTerminate gets called Change-Id: I6960e5ab7f144225f01a2089d3f849c99fed0b38
* | Remove the simulator target from all makefiles.Jeff Brown2011-07-111-4/+0
|/ | | | | | Bug: 5010576 Change-Id: I04d722f258951a3078fe07899f5bbe8aac02a8e8
* Merge "SurfaceTexture: enable newly passing tests."Jamie Gennis2011-07-071-8/+4
|\
| * SurfaceTexture: enable newly passing tests.Jamie Gennis2011-07-061-8/+4
| | | | | | | | | | | | | | | | | | | | This change enables the following four SurfaceTextures tests: UpdateTexImageBeforeFrameFinishedWorks UpdateTexImageAfterFrameFinishedWorks RepeatedUpdateTexImageBeforeFrameFinishedWorks RepeatedUpdateTexImageAfterFrameFinishedWorks Change-Id: I7632630bc97873e50d4a765ffc44a86f16ae62f1
* | fix ScreenshotsOfProtectedBuffersFailMathias Agopian2011-07-011-5/+17
|/ | | | | | | | | | - put the test window at the front most screen position - use RGBA_8888 which is a mandatory format - handle devices that don't support the protected usage flags Bug: 4950464 Change-Id: I0005fb667cfe094e5978816e2924b294c5ef817e
* SF transactions are now O(1) wrt IPC instead of O(N).Mathias Agopian2011-06-292-4/+4
| | | | Change-Id: I57669852cbf6aabae244ea86940a08a5a27ffc43
* SurfaceTexture: add a CPU -> GL sync test.Jamie Gennis2011-06-281-0/+176
| | | | | | | | | | | This change adds a test to verify that proper synchronization is done when using SurfaceTexture to use CPU generated images as OpenGL ES textures in 'synchronous mode'. Synchronous mode is particularly tricky because SurfaceTexture will allow the buffer that's currently bound to the GL texture to be dequeued. We rely on Gralloc's lock function to block until this buffer is no longer being used by the OpenGL ES. Change-Id: I1c4e37f3e9d60ab9a0905a90a1f5060fda8e485c
* SurfaceTexture: make tests use a large framebuffer.Jamie Gennis2011-06-201-19/+25
| | | | | | | | | | This change makes the SurfaceTexture GL tests use a large (512x512) framebuffer. The tests now use glViewport to render to a region of the framebuffer with a size matching that of the texture being drawn. The Npot test pixel checks must be changed because now the rendered region is the same size as the texture. Change-Id: Icc41803189c25e33ba1da7d2470720f0a11f3e4b
* SurfaceTexture: enable a test that now passes.Jamie Gennis2011-06-151-1/+1
| | | | | | This change enables the QueryFormatAfterSettingWorks. Change-Id: Ic868011a36a6c86c8646880246cd5b6960a13364
* SurfaceTexture: enable a test that is now passing.Jamie Gennis2011-06-151-14/+10
| | | | | | This change enables the TexturingFromCpuFilledYV12BufferPow2 test. Change-Id: Ib356ee3d2f8979f34f849fd4090f598295e2e92e
* SurfaceTexture: increase the test's Surface layer.Jamie Gennis2011-06-141-1/+1
| | | | | | | | This change increases the Surface layer used for displaying the test results so that the tests will be visible over other windows in the system. Change-Id: I47f147f8743ff2a39d57d551811668371202bd31
* SurfaceTexture: add some RGBA_8888 tests.Jamie Gennis2011-06-141-21/+228
| | | | Change-Id: Id09915c98a00eca1209b7dab32039a06d260908e
* SurfaceTextureClient: minor test refactoring.Jamie Gennis2011-06-141-213/+179
| | | | Change-Id: Iabc6d27ca35d30d896c6aef65c4f1b5a1eed47b8
* Merge "SurfaceTexture: add a format querying test."Jamie Gennis2011-06-141-0/+25
|\
| * SurfaceTexture: add a format querying test.Jamie Gennis2011-06-131-0/+25
| | | | | | | | | | | | | | | | This change adds a test to verify that querying the format of a SurfaceTextureClient immediately after setting it returns the correct result. The test is currently disabled because it does not pass. Change-Id: I5bddb39c5bf96d6104624094383d410ed913e9f3
* | Merge changes I9b8e1962,I7bb843caMathias Agopian2011-06-131-3/+3
|\ \ | | | | | | | | | | | | | | | * changes: Temporarily don't return the current buffer in synchronous mode unify SurfaceTexture and Surface
| * | Temporarily don't return the current buffer in synchronous modeMathias Agopian2011-06-131-3/+3
| |/ | | | | | | activate synchronous mode by default.
* | SurfaceTexture: disable a deadlocking test.Jamie Gennis2011-06-131-1/+2
| | | | | | | | | | | | | | This change disables the UpdateTexImageAfterFrameFinishedWorks test because it's currently causing deadlocks on some devices. Change-Id: Ic9186db207e8d656f3af5d86fa138c7d96393c55
* | SurfaceTexture: add a pixel tolerance to the tests.Jamie Gennis2011-06-131-5/+9
|/ | | | | | | This change adds a default tolerance of 2 to all the pixel value checks in the SurfaceTexture tests. Change-Id: Id5a7cdffdfae16076e2daf4964a3326105b5ae2c
* SurfaceTexture: add some GL->GL tests.Jamie Gennis2011-06-131-0/+268
| | | | | | | | | | This change adds some tests to verify streaming images from one GL thread to another via SurfaceTexture. Currently the tests do not validate the correctness of the streamed images, but rather simply verify that this streaming does not cause a deadlock. 3 of the 4 tests are currently disabled because they do cause deadlocks on some devices. Change-Id: I5677942053190063b97f370dba96c116711bc3bb
* SurfaceTexture: add getTransformMatrix tests.Jamie Gennis2011-06-131-0/+108
| | | | | | | | | | | This change adds a test verifying that with no transform set on the SurfaceTextureClient, the SurfaceTexture will return an identity transform matrix. It also verifies this same effect in the presence of an additional call to native_window_set_buffer_count just before the call to getTransformMatrix. Bug: 4490420 Change-Id: Ic5adfa29b5696cc2b451433834e3758ef20c5edd
* SurfaceTexture: disable a failing test.Jamie Gennis2011-05-251-1/+3
| | | | | | | | The SurfaceTextureSyncModeWaitRetire test was disabled. It is failing because of the synchronization hacks that were added to SurfaceTexture to work around bugs in vendor device drivers. Change-Id: I09a74538bfe14a04833acb6847471e00826cc7fc
* SurfaceTexture: fix an error check in dequeueBuffer.Jamie Gennis2011-05-251-1/+8
| | | | | | | | | | | This change fixes the MIN_UNDEQUEUED_BUFFERS error check in dequeueBuffer. The check should only be performed if a buffer has been queued since the last time the buffer count was changed by the client. The check must be applied conditionally because video decoders require all the bufferes to be dequeued and registered before beginning the decode. Change-Id: I08d96b380544e395c2fcf0f3983a199bfd695b09
* SurfaceTexture: clean up some comments, tests, etc.Jamie Gennis2011-05-251-1/+3
| | | | | | | This change fixes up some stale comments, member variable names, log messages and disables a failing test. Change-Id: Ic1d3344b18066cf710e4a42838b2417c6b1f2f6c