OSDN Git Service

EGL14.eglCreateWindowSurface should set producerControlledByApp
authorTakahiro Aizawa <takahiro.aizawa@sonymobile.com>
Wed, 11 Dec 2013 10:22:26 +0000 (19:22 +0900)
committerAndy McFadden <fadden@android.com>
Thu, 6 Mar 2014 22:18:44 +0000 (14:18 -0800)
Interface of Surface class changed.
To reflect the change for EGL14, add producerControlledByApp flag.
Similar change can be seen in 0fa257fe53bf520bdde93996a1901ce6bc3e1788

Bug 13226025
(cherry-pick from AOSP Ic8911d3131e033747cfdabe59ac2fea1e90bb4a0)

Change-Id: I853484c38f065d71b365bb48b2a794ca4787e70a

core/jni/android_opengl_EGL14.cpp

index 1fe4b08..5b0a4b2 100644 (file)
@@ -630,7 +630,7 @@ not_valid_surface:
     if (producer == NULL)
         goto not_valid_surface;
 
-    window = new android::Surface(producer);
+    window = new android::Surface(producer, true);
 
     if (window == NULL)
         goto not_valid_surface;