separate evas window construction and initialization
authorShao Changbin <changbin.shao@intel.com>
Tue, 22 Jan 2013 09:57:20 +0000 (04:57 -0500)
committerGerrit Code Review <gerrit2@kim11>
Wed, 30 Jan 2013 08:15:50 +0000 (17:15 +0900)
[Title] separate evas window construction and initialization
[Issue#] N/A
[Problem] For launch performance, it is better to create webpage ASAP.
          Therefore, after evas window created, we should create webpage imediately.
[Cause] N/A
[Solution] move window initialization later.

src/wrt-client/wrt-client.cpp

index e69a1f3..bd3defb 100755 (executable)
@@ -481,7 +481,7 @@ void WrtClient::launchStep()
     //        languageChangedCallback, this);
 
     ADD_PROFILING_POINT("CreateWindow", "start");
-    m_windowData.reset(new WindowData(static_cast<unsigned long>(getpid())));
+    m_windowData.reset(new WindowData(static_cast<unsigned long>(getpid()), true));
     ADD_PROFILING_POINT("CreateWindow", "stop");
 
     WRT::UserDelegatesPtr cbs(new WRT::UserDelegates);
@@ -504,6 +504,8 @@ void WrtClient::launchStep()
     //you can't show window with splash screen before PrepareView
     //ewk_view_add_with_context() in viewLogic breaks window
 
+    m_windowData->init();
+
     WrtDB::WidgetLocalizedInfo localizedInfo =
         W3CFileLocalization::getLocalizedInfo(m_dao);
     std:: string name = "";