//private function declaration here
static void _ewk_init_web_engine(void);
static void _ewk_shutdown_web_engine(void);
+static void _ewk_force_acceleration() __attribute__((constructor));
extern std::string g_homeDirectory;
EwkGlobalData::Delete();
}
+void _ewk_force_acceleration()
+{
+ // Chromium-efl port does not support s/w mode. So we need to set h/w mode
+ // before creating elm_window. To do this, make constructor function which is
+ // called at library loading time and set "ELM_ACCEL=hw" here. If not, native
+ // app which does not call elm_config_accel_preference_set() function will
+ // fail to execute.
+ setenv("ELM_ACCEL", "hw", 1);
+}
+