Merge "Downgrades error messages about not being able to detect whether we are in protected mode or not to informational messages. If there is no GL context, then we are by definition not in protected mode, and still return false as advertised, thus there's no need for an error message." into nyc-dev

This commit is contained in:
Craig Donner
2016-04-05 22:29:00 +00:00
committed by Android (Google) Code Review

View File

@@ -65,12 +65,12 @@ static bool isProtectedContext() {
EGLContext ctx = eglGetCurrentContext();
if (dpy == EGL_NO_DISPLAY) {
ALOGE("isProtectedSurface: invalid current EGLDisplay");
ALOGI("isProtectedSurface: invalid current EGLDisplay");
return false;
}
if (ctx == EGL_NO_CONTEXT) {
ALOGE("isProtectedSurface: invalid current EGLContext");
ALOGI("isProtectedSurface: invalid current EGLContext");
return false;
}