Merge "SurfaceTexture: fix a test deadlock"
This commit is contained in:
@@ -974,8 +974,6 @@ TEST_F(SurfaceTextureGLTest, TexturingFromGLFilledRGBABufferPow2) {
|
|||||||
|
|
||||||
eglSwapBuffers(mEglDisplay, stcEglSurface);
|
eglSwapBuffers(mEglDisplay, stcEglSurface);
|
||||||
|
|
||||||
eglDestroySurface(mEglDisplay, stcEglSurface);
|
|
||||||
|
|
||||||
// Do the consumer side of things
|
// Do the consumer side of things
|
||||||
EXPECT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface,
|
EXPECT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface,
|
||||||
mEglContext));
|
mEglContext));
|
||||||
@@ -985,6 +983,10 @@ TEST_F(SurfaceTextureGLTest, TexturingFromGLFilledRGBABufferPow2) {
|
|||||||
|
|
||||||
mST->updateTexImage();
|
mST->updateTexImage();
|
||||||
|
|
||||||
|
// We must wait until updateTexImage has been called to destroy the
|
||||||
|
// EGLSurface because we're in synchronous mode.
|
||||||
|
eglDestroySurface(mEglDisplay, stcEglSurface);
|
||||||
|
|
||||||
glClearColor(0.2, 0.2, 0.2, 0.2);
|
glClearColor(0.2, 0.2, 0.2, 0.2);
|
||||||
glClear(GL_COLOR_BUFFER_BIT);
|
glClear(GL_COLOR_BUFFER_BIT);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user