From 958defcdd303a77678456433ac00ab143d599a30 Mon Sep 17 00:00:00 2001 From: Yunchan Cho Date: Wed, 23 Jan 2013 18:16:08 +0900 Subject: [PATCH] Apply GL backend setting to WebProcess [Issue#] N/A [Problem] WebProcess is crashed when processing WebGL [Cause] WRT forked WebProcess, not applying ENV variables regarding gl backend. [Solution] GL backend setting is moved in front of forking WebProcess in main function [SCMRequest] N/A Change-Id: I24e359807d94868d23487ae9e42b161a0c771896 --- src/wrt-client/wrt-client.cpp | 33 +++++++++++++++++---------------- 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/src/wrt-client/wrt-client.cpp b/src/wrt-client/wrt-client.cpp index d3af09a..e69a1f3 100755 --- a/src/wrt-client/wrt-client.cpp +++ b/src/wrt-client/wrt-client.cpp @@ -689,6 +689,23 @@ int main(int argc, // Set log tagging DPL::Log::LogSystemSingleton::Instance().SetTag("WRT"); + // set evas backend type + if (!getenv("ELM_ENGINE")) { + if (!setenv("ELM_ENGINE", "gl", 1)) { + LogDebug("Enable backend"); + } + } + else { + LogDebug("ELM_ENGINE : " << getenv("ELM_ENGINE")); + } + + #ifndef TIZEN_PUBLIC + setenv("COREGL_FASTPATH", "1", 1); + #endif + setenv("CAIRO_GL_COMPOSITOR", "msaa", 1); + setenv("CAIRO_GL_LAZY_FLUSHING", "yes", 1); + setenv("ELM_IMAGE_CACHE", "0", 1); + // This code is to fork a web process without exec. std::string tizenId = WrtClient::getTizenIdFromArgument(argc, argv); @@ -711,22 +728,6 @@ int main(int argc, // the output may not be flushed). setlinebuf(stdout); - // set evas backend type - if (!getenv("ELM_ENGINE")) { - if (!setenv("ELM_ENGINE", "gl", 1)) { - LogDebug("Enable backend"); - } - } - else { - LogDebug("ELM_ENGINE : " << getenv("ELM_ENGINE")); - } - - #ifndef TIZEN_PUBLIC - setenv("COREGL_FASTPATH", "1", 1); - #endif - setenv("CAIRO_GL_COMPOSITOR", "msaa", 1); - setenv("CAIRO_GL_LAZY_FLUSHING", "yes", 1); - setenv("ELM_IMAGE_CACHE", "0", 1); WrtClient app(argc, argv); -- 2.7.4