aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLingfeng Yang <lfy@google.com>2020-04-27 13:02:26 -0700
committerLingfeng Yang <lfy@google.com>2020-05-13 18:35:48 -0700
commit1c8e820afbf672d6102fe5bb0ec6f9b0980f0fca (patch)
treea16263482d55615115986603c2e9134dcbd7391e
parentc3b9921d3eed902935c161526db7c3fbfdbec5bf (diff)
downloadgoldfish-opengl-1c8e820afbf672d6102fe5bb0ec6f9b0980f0fca.tar.gz
Remove some eglMakeCurrent spam
Only spam on the first time the context is made current bug: 155106844 Change-Id: I9d442444823e7d8cb218c5fad9ac99da9ad161dc
-rw-r--r--system/egl/egl.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/system/egl/egl.cpp b/system/egl/egl.cpp
index 17506cd9..b3d38161 100644
--- a/system/egl/egl.cpp
+++ b/system/egl/egl.cpp
@@ -1716,7 +1716,6 @@ EGLBoolean eglMakeCurrent(EGLDisplay dpy, EGLSurface draw, EGLSurface read, EGLC
//Now make the local bind
if (context) {
- ALOGD("%s: %p: ver %d %d (tinfo %p)", __FUNCTION__, context, context->majorVersion, context->minorVersion, tInfo);
// This is a nontrivial context.
// The thread cannot be gralloc-only anymore.
hostCon->setGrallocOnly(false);
@@ -1733,6 +1732,9 @@ EGLBoolean eglMakeCurrent(EGLDisplay dpy, EGLSurface draw, EGLSurface read, EGLC
context->getClientState();
if (!hostCon->gl2Encoder()->isInitialized()) {
+ ALOGD("%s: %p: ver %d %d (tinfo %p) (first time)",
+ __FUNCTION__,
+ context, context->majorVersion, context->minorVersion, tInfo);
s_display.gles2_iface()->init();
hostCon->gl2Encoder()->setInitialized();
ClientAPIExts::initClientFuncs(s_display.gles2_iface(), 1);
@@ -1836,6 +1838,9 @@ EGLBoolean eglMakeCurrent(EGLDisplay dpy, EGLSurface draw, EGLSurface read, EGLC
}
else {
if (!hostCon->glEncoder()->isInitialized()) {
+ ALOGD("%s: %p: ver %d %d (tinfo %p) (first time)",
+ __FUNCTION__,
+ context, context->majorVersion, context->minorVersion, tInfo);
s_display.gles_iface()->init();
hostCon->glEncoder()->setInitialized();
ClientAPIExts::initClientFuncs(s_display.gles_iface(), 0);