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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user