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.

Bug: 27926028

Change-Id: Ia791a989b92be17bc31f9221654168347d60eed9
This commit is contained in:
Craig Donner
2016-04-05 15:18:31 -07:00
parent 6c773c5daa
commit 59ee472c95

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;
}