From 212d77c191778e1f4c659a03ef26d5ce5478785e Mon Sep 17 00:00:00 2001 From: JongHeon Choi Date: Thu, 9 Jun 2016 10:16:16 +0900 Subject: [PATCH] Show window after frame rendered --- runtime/browser/web_application.cc | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/runtime/browser/web_application.cc b/runtime/browser/web_application.cc index bd39f6d..af4580b 100644 --- a/runtime/browser/web_application.cc +++ b/runtime/browser/web_application.cc @@ -393,12 +393,6 @@ void WebApplication::Launch(std::unique_ptr appcontrol) { verbose_mode_ = true; } - // TODO(sngn.lee): check the below code location. - // in Wearable, webkit can render contents before show window - // but Mobile, webkit can't render contents before show window - window_->Show(); - window_->Active(); - launched_ = true; } @@ -798,6 +792,10 @@ void WebApplication::OnRendered(WebView* /*view*/) { STEP_PROFILE_END("Start -> Launch Completed"); LOGGER(DEBUG) << "Rendered"; splash_screen_->HideSplashScreen(SplashScreen::HideReason::RENDERED); + + // Show window after frame rendered. + window_->Show(); + window_->Active(); } void WebApplication::LaunchInspector(common::AppControl* appcontrol) { -- 2.7.4