diff options
author | Mathias Agopian <mathias@google.com> | 2013-07-18 15:55:03 -0700 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2013-07-18 22:28:18 -0700 |
commit | a3fbda3cef04d51a35a3eb64b2f744a989800856 (patch) | |
tree | 6291dcc9a67f5c140c14dea94190e51d1ab9b125 /libs/gui/tests | |
parent | 595264f1af12e25dce57d7c5b1d52ed86ac0d0c9 (diff) | |
download | frameworks_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.cpp | 4 |
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. |