From 59ee472c95373c15bb32e72d68433397efdf9da8 Mon Sep 17 00:00:00 2001 From: Craig Donner Date: Tue, 5 Apr 2016 15:18:31 -0700 Subject: [PATCH] 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 --- core/jni/android/graphics/SurfaceTexture.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/jni/android/graphics/SurfaceTexture.cpp b/core/jni/android/graphics/SurfaceTexture.cpp index 2018e76e9beea..6e9830ec3852e 100644 --- a/core/jni/android/graphics/SurfaceTexture.cpp +++ b/core/jni/android/graphics/SurfaceTexture.cpp @@ -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; }