From b73396b3f89de9620ab6e3d37b25f7451584789c Mon Sep 17 00:00:00 2001 From: bohu Date: Fri, 19 Feb 2016 17:09:00 -0800 Subject: Emulator: Replace ro.kernel.qemu.gles with qemu.gles ro.kernel.qemu.gles is passed in by emulator and is read only; the actual gles version can only be decided at egl library loading time, and qemu.gles value will be set there and be queried here. bug: 27273457 Change-Id: I5ba228a2fa6649786dc87da09367d368e9e6d1e8 --- core/jni/android_view_DisplayListCanvas.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/jni/android_view_DisplayListCanvas.cpp b/core/jni/android_view_DisplayListCanvas.cpp index 03c94a683ec2..c87a7701786c 100644 --- a/core/jni/android_view_DisplayListCanvas.cpp +++ b/core/jni/android_view_DisplayListCanvas.cpp @@ -160,7 +160,7 @@ static jboolean android_view_DisplayListCanvas_isAvailable(JNIEnv* env, jobject } // In the emulator this property will be set > 0 when OpenGL ES 2.0 is // enabled, 0 otherwise. On old emulator versions it will be undefined. - property_get("ro.kernel.qemu.gles", prop, "0"); + property_get("qemu.gles", prop, "0"); return atoi(prop) > 0 ? JNI_TRUE : JNI_FALSE; } -- cgit v1.2.3-59-g8ed1b