diff options
author | Eunki Hong <eunkiki.hong@samsung.com> | 2024-04-17 05:49:02 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@review> | 2024-04-17 05:49:02 +0000 |
commit | ffdf414e0d0375d763e4efd691a3c6122a3660bf (patch) | |
tree | 9ff38cd5d013a6c19931571cbc9bb577e09791e9 /dali | |
parent | 8bf07cd60a0e84bfbb4174c6b5c114d5458475a3 (diff) | |
parent | 8ea9fa78c719a4d311bda077e44c17b9a31031e5 (diff) | |
download | dali-adaptor-ffdf414e0d0375d763e4efd691a3c6122a3660bf.tar.gz dali-adaptor-ffdf414e0d0375d763e4efd691a3c6122a3660bf.tar.bz2 dali-adaptor-ffdf414e0d0375d763e4efd691a3c6122a3660bf.zip |
Merge "Print info log when we get screen size" into devel/master
Diffstat (limited to 'dali')
-rw-r--r-- | dali/internal/window-system/tizen-wayland/ecore-wl2/window-system-ecore-wl2.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/dali/internal/window-system/tizen-wayland/ecore-wl2/window-system-ecore-wl2.cpp b/dali/internal/window-system/tizen-wayland/ecore-wl2/window-system-ecore-wl2.cpp index 5fa143523..2b0711332 100644 --- a/dali/internal/window-system/tizen-wayland/ecore-wl2/window-system-ecore-wl2.cpp +++ b/dali/internal/window-system/tizen-wayland/ecore-wl2/window-system-ecore-wl2.cpp @@ -21,6 +21,8 @@ #include <dali/integration-api/adaptor-framework/scene-holder.h> #include <dali/integration-api/debug.h> +#include <dlog.h> + // INTERNAL HEADERS #include <dali/devel-api/adaptor-framework/keyboard.h> #include <dali/internal/adaptor/common/framework-factory.h> @@ -60,6 +62,7 @@ void Initialize() auto frameworkFactory = Dali::Internal::Adaptor::GetFrameworkFactory(); if(frameworkFactory == nullptr || (frameworkFactory && frameworkFactory->GetFrameworkBackend() == FrameworkBackend::DEFAULT)) { + print_log(DLOG_INFO, "DALI", "%s: %s(%d) > ecore_wl2_init()", __MODULE__, __func__, __LINE__); ecore_wl2_init(); } } @@ -69,6 +72,7 @@ void Shutdown() auto frameworkFactory = Dali::Internal::Adaptor::GetFrameworkFactory(); if(frameworkFactory == nullptr || (frameworkFactory && frameworkFactory->GetFrameworkBackend() == FrameworkBackend::DEFAULT)) { + print_log(DLOG_INFO, "DALI", "%s: %s(%d) > ecore_wl2_shutdown()", __MODULE__, __func__, __LINE__); ecore_wl2_shutdown(); } } @@ -87,9 +91,17 @@ void GetScreenSize(int32_t& width, int32_t& height) ecore_wl2_display_screen_size_get(display, &gScreenWidth, &gScreenHeight); FINISH_DURATION_CHECK("ecore_wl2_display_screen_size_get"); + // Since dali adaptor doesn't initialize this time, we should use dlog. + print_log(DLOG_INFO, "DALI", "%s: %s(%d) > GetScreenSize() for display(%p) return %d x %d", __MODULE__, __func__, __LINE__, display, gScreenWidth, gScreenHeight); + DALI_ASSERT_ALWAYS((gScreenWidth > 0) && "screen width is 0"); DALI_ASSERT_ALWAYS((gScreenHeight > 0) && "screen height is 0"); } + else + { + // Since dali adaptor doesn't initialize this time, we should use dlog. + print_log(DLOG_INFO, "DALI", "%s: %s(%d) > GetScreenSize() but display is null", __MODULE__, __func__, __LINE__); + } } } width = gScreenWidth; @@ -107,6 +119,14 @@ void UpdateScreenSize() START_DURATION_CHECK(); ecore_wl2_display_screen_size_get(display, &gScreenWidth, &gScreenHeight); FINISH_DURATION_CHECK("ecore_wl2_display_screen_size_get"); + + // Since dali adaptor doesn't initialize this time, we should use dlog. + print_log(DLOG_INFO, "DALI", "%s: %s(%d) > UpdateScreenSize() for display(%p) return %d x %d", __MODULE__, __func__, __LINE__, display, gScreenWidth, gScreenHeight); + } + else + { + // Since dali adaptor doesn't initialize this time, we should use dlog. + print_log(DLOG_INFO, "DALI", "%s: %s(%d) > UpdateScreenSize() but display is null", __MODULE__, __func__, __LINE__); } } } |