From 3f564b21c864388e873de4849c08661f038f51bb Mon Sep 17 00:00:00 2001 From: HeeJu Kang Date: Wed, 26 Dec 2012 13:25:20 +0900 Subject: [PATCH] Added time measure codes Change-Id: Ibc90d62629f844e1685d9307e03e43770d4b798d Signed-off-by: HeeJu Kang --- src/FShell_LiveboxPopup.cpp | 16 +++++++++++++++- src/FShell_LiveboxPopupView.cpp | 15 ++++++++------- 2 files changed, 23 insertions(+), 8 deletions(-) diff --git a/src/FShell_LiveboxPopup.cpp b/src/FShell_LiveboxPopup.cpp index 56b8ccf..bcd95d0 100644 --- a/src/FShell_LiveboxPopup.cpp +++ b/src/FShell_LiveboxPopup.cpp @@ -25,6 +25,7 @@ #include #include #include +#include #include #include "FUi_UiKeyEvent.h" #include "FUi_IUiEventManager.h" @@ -38,7 +39,8 @@ using namespace std; using namespace Tizen::Base; -using namespace Tizen::Graphics; +using namespace Tizen::Graphics; +using namespace Tizen::System; using namespace Tizen::Ui; using namespace Tizen::Ui::Animations; using namespace Tizen::Ui::Controls; @@ -89,6 +91,10 @@ _LiveboxPopupLayer::RegisterTouchEventListener(void) int _LiveboxPopupLayer::AcquirePixmap(void) { + long long ticks = 0; + SystemTime::GetTicks(ticks); + SysLog(NID_UI_CTRL, "%lld", ticks); + int pixmapId = -1; const _Window* pWindow = GetWindow(); @@ -99,6 +105,9 @@ _LiveboxPopupLayer::AcquirePixmap(void) result r = _LiveboxManagerImpl::GetInstance()->RequestSharedMemoryIdForPD(GetProviderId(), bounds.width, bounds.height, pixmapId); SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, -1, r, "[%s] Propagating.", GetErrorMessage(r)); + SystemTime::GetTicks(ticks); + SysLog(NID_UI_CTRL, "%lld", ticks); + SysLog(NID_UI_CTRL, "pixmapId(%d) bounds(%d %d %d %d)", pixmapId, bounds.x, bounds.y, bounds.width, bounds.height); return pixmapId; @@ -169,6 +178,11 @@ _LiveboxPopup::CreateLiveboxPopupN(void) result _LiveboxPopup::Initialize(const Tizen::Graphics::Dimension& size) { + long long ticks = 0; + SystemTime::GetTicks(ticks); + + SysLog(NID_UI_CTRL, "(%d %d) %lld", size.width, size.height, ticks); + result r = E_SUCCESS; _VisualElement* pVisualElement = null; diff --git a/src/FShell_LiveboxPopupView.cpp b/src/FShell_LiveboxPopupView.cpp index e876bc8..f15bb80 100644 --- a/src/FShell_LiveboxPopupView.cpp +++ b/src/FShell_LiveboxPopupView.cpp @@ -27,6 +27,7 @@ #include #include #include +#include #include #include #include @@ -43,7 +44,8 @@ using namespace std; using namespace Tizen::Base; using namespace Tizen::Base::Runtime; -using namespace Tizen::Graphics; +using namespace Tizen::Graphics; +using namespace Tizen::System; using namespace Tizen::Ui; using namespace Tizen::Ui::Controls; using namespace Tizen::Ui::Animations; @@ -299,6 +301,11 @@ _LiveboxPopupView::OnDraw(void) void _LiveboxPopupView::OnLiveboxUpdated(const Tizen::Graphics::Bitmap& bitmap, const Tizen::Graphics::Dimension& size) { + long long ticks = 0; + SystemTime::GetTicks(ticks); + + SysLog(NID_UI_CTRL, "(%d %d) %lld", size.width, size.height, ticks); + SetSize(size); __pBitmap.reset(const_cast(&bitmap)); @@ -310,12 +317,6 @@ _LiveboxPopupView::OnLiveboxUpdated(const Tizen::Graphics::Bitmap& bitmap, const } else { - if (__pBitmap.get() == null) - { - SysLog(NID_UI_CTRL, "Bitmap is invalid."); - return; - } - Invalidate(false); } } -- 2.7.4