summaryrefslogtreecommitdiffstats
path: root/libs/gui/tests
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2013-07-18 15:55:03 -0700
committerMathias Agopian <mathias@google.com>2013-07-18 22:28:18 -0700
commita3fbda3cef04d51a35a3eb64b2f744a989800856 (patch)
tree6291dcc9a67f5c140c14dea94190e51d1ab9b125 /libs/gui/tests
parent595264f1af12e25dce57d7c5b1d52ed86ac0d0c9 (diff)
downloadframeworks_native-a3fbda3cef04d51a35a3eb64b2f744a989800856.zip
frameworks_native-a3fbda3cef04d51a35a3eb64b2f744a989800856.tar.gz
frameworks_native-a3fbda3cef04d51a35a3eb64b2f744a989800856.tar.bz2
BuffferQueue disconnect is now always asynchrnous
we tag queued buffers with the "bufferqueue cannot block" flag and use that bit to discard a buffer in the queue by new ones comming in. this allows us to remove the buffer queue drain in disconnect while maintaining the right behaviour if it gets connected again (since each buffer remembers how it was enqueued). Change-Id: I1e703d363a687b70b19ba49cef32213116e8bd3f
Diffstat (limited to 'libs/gui/tests')
-rw-r--r--libs/gui/tests/Surface_test.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/libs/gui/tests/Surface_test.cpp b/libs/gui/tests/Surface_test.cpp
index c55b02a..953f6f9 100644
--- a/libs/gui/tests/Surface_test.cpp
+++ b/libs/gui/tests/Surface_test.cpp
@@ -83,9 +83,7 @@ TEST_F(SurfaceTest, QueuesToWindowComposerIsTrueWhenPurgatorized) {
}
// This test probably doesn't belong here.
-// DISABLED because it hangs when disconnecting because of draining the queue.
-// will be fixed in a subsequent BQ change
-TEST_F(SurfaceTest, DISABLED_ScreenshotsOfProtectedBuffersSucceed) {
+TEST_F(SurfaceTest, ScreenshotsOfProtectedBuffersSucceed) {
sp<ANativeWindow> anw(mSurface);
// Verify the screenshot works with no protected buffers.