SurfaceTexture: Fully refactored from BufferQueue
gl_env uses a dummy BufferQueue instead of SurfaceTexture
Change-Id: I6f50b372a376186a8455e34dad598b5800ba86a3
diff --git a/mca/filterfw/native/core/gl_env.cpp b/mca/filterfw/native/core/gl_env.cpp
index b72605c..e21fb78 100644
--- a/mca/filterfw/native/core/gl_env.cpp
+++ b/mca/filterfw/native/core/gl_env.cpp
@@ -160,8 +160,8 @@
}
// Create dummy surface using a SurfaceTexture
- sp<SurfaceTexture> st = new SurfaceTexture(0, false);
- window_ = new SurfaceTextureClient(st);
+ sp<ISurfaceTexture> bq = new BufferQueue(false);
+ window_ = new SurfaceTextureClient(bq);
surfaces_[0] = SurfaceWindowPair(eglCreateWindowSurface(display(), config, window_.get(), NULL), NULL);
if (CheckEGLError("eglCreateWindowSurface")) return false;