summaryrefslogtreecommitdiffstats
path: root/core/jni/com_google_android_gles_jni_EGLImpl.cpp
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2013-08-02 01:38:38 -0700
committerMathias Agopian <mathias@google.com>2013-08-06 13:07:42 -0700
commit52a9a10b6b8c7b7a9f97777541841b94d4fd9754 (patch)
treeaaf72e50f157c69abc8be70991c16e93bef47fc4 /core/jni/com_google_android_gles_jni_EGLImpl.cpp
parent0dff7064897afd4e07993bac28ae877aaeb1b5e3 (diff)
downloadframeworks_base-52a9a10b6b8c7b7a9f97777541841b94d4fd9754.zip
frameworks_base-52a9a10b6b8c7b7a9f97777541841b94d4fd9754.tar.gz
frameworks_base-52a9a10b6b8c7b7a9f97777541841b94d4fd9754.tar.bz2
Clearly separate consumer and producer interfaces
Bug: 9265647 Change-Id: Ic68e91788d0a05251e1d2fb9f9d4de403c7099bf
Diffstat (limited to 'core/jni/com_google_android_gles_jni_EGLImpl.cpp')
-rw-r--r--core/jni/com_google_android_gles_jni_EGLImpl.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/core/jni/com_google_android_gles_jni_EGLImpl.cpp b/core/jni/com_google_android_gles_jni_EGLImpl.cpp
index b0c73a2..a3ce2a5 100644
--- a/core/jni/com_google_android_gles_jni_EGLImpl.cpp
+++ b/core/jni/com_google_android_gles_jni_EGLImpl.cpp
@@ -352,9 +352,8 @@ not_valid_surface:
return 0;
}
- sp<GLConsumer> glConsumer(SurfaceTexture_getSurfaceTexture(_env, native_window));
-
- window = new Surface(glConsumer->getBufferQueue());
+ sp<IGraphicBufferProducer> producer(SurfaceTexture_getProducer(_env, native_window));
+ window = new Surface(producer);
if (window == NULL)
goto not_valid_surface;