From: Adeel Kazmi Date: Tue, 5 Mar 2019 14:15:02 +0000 (+0000) Subject: Ensure we only show the EGL information at init rather than every time we change... X-Git-Tag: dali_1.4.10~4^2 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git;a=commitdiff_plain;h=refs%2Fchanges%2F10%2F200910%2F1 Ensure we only show the EGL information at init rather than every time we change the context Change-Id: I657ee0409ac22f73e170c58f46cba4161efae483 --- diff --git a/dali/internal/graphics/gles/egl-implementation.cpp b/dali/internal/graphics/gles/egl-implementation.cpp index 1e6ce24..dca3bd0 100755 --- a/dali/internal/graphics/gles/egl-implementation.cpp +++ b/dali/internal/graphics/gles/egl-implementation.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018 Samsung Electronics Co., Ltd. + * Copyright (c) 2019 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -126,6 +126,17 @@ bool EglImplementation::InitializeGles( EGLNativeDisplayType display, bool isOwn mIsOwnSurface = isOwnSurface; } + // We want to display this information all the time, so use the LogMessage directly + Integration::Log::LogMessage(Integration::Log::DebugInfo, "EGL Information\n" + " Vendor: %s\n" + " Version: %s\n" + " Client APIs: %s\n" + " Extensions: %s\n", + eglQueryString( mEglDisplay, EGL_VENDOR ), + eglQueryString( mEglDisplay, EGL_VERSION ), + eglQueryString( mEglDisplay, EGL_CLIENT_APIS ), + eglQueryString( mEglDisplay, EGL_EXTENSIONS )); + return mGlesInitialized; } @@ -205,17 +216,6 @@ void EglImplementation::MakeContextCurrent( EGLSurface eglSurface, EGLContext eg DALI_ASSERT_ALWAYS(false && "MakeContextCurrent failed!"); } - - // We want to display this information all the time, so use the LogMessage directly - Integration::Log::LogMessage(Integration::Log::DebugInfo, "EGL Information\n" - " Vendor: %s\n" - " Version: %s\n" - " Client APIs: %s\n" - " Extensions: %s\n", - eglQueryString(mEglDisplay, EGL_VENDOR), - eglQueryString(mEglDisplay, EGL_VERSION), - eglQueryString(mEglDisplay, EGL_CLIENT_APIS), - eglQueryString(mEglDisplay, EGL_EXTENSIONS)); } void EglImplementation::MakeCurrent( EGLNativePixmapType pixmap, EGLSurface eglSurface )