$(CAPI_SYSTEM_SYSTEM_SETTINGS_CFLAGS) \
$(CAPI_SYSTEM_INFO_CFLAGS) \
$(TTS_CFLAGS) \
- $(SENSOR_CFLAGS)
-
-LIBDALI_ADAPTOR_LA_LIBADD += $(CAPI_APPFW_APPLICATION_LIBS) \
- $(CAPI_SYSTEM_SYSTEM_SETTINGS_LIBS) \
- $(CAPI_SYSTEM_INFO_LIBS) \
- $(TTS_LIBS) \
- $(SENSOR_LIBS)
-if USE_APPFW_EFL_BASE
-LIBDALI_ADAPTOR_LA_CXXFLAGS += $(ELEMENTARY_CFLAGS)
-
-LIBDALI_ADAPTOR_LA_LIBADD += $(ELEMENTARY_LIBS)
-
-else
-LIBDALI_ADAPTOR_LA_CXXFLAGS += $(BUNDLE_CFLAGS) \
+ $(SENSOR_CFLAGS) \
+ $(BUNDLE_CFLAGS) \
$(CAPI_APPFW_COMMON_CFLAGS) \
$(CAPI_APPFW_CONTROL_CFLAGS) \
$(CAPI_APPFW_WIDGET_BASE_CFLAGS) \
$(ECORE_IMF_CFLAGS) \
- $(FRIBIDI_CFLAGS) \
- -DWIDGET_SUPPOERTED
+ $(FRIBIDI_CFLAGS)
-LIBDALI_ADAPTOR_LA_LIBADD += $(BUNDLE_LIBS) \
+LIBDALI_ADAPTOR_LA_LIBADD += $(CAPI_APPFW_APPLICATION_LIBS) \
+ $(CAPI_SYSTEM_SYSTEM_SETTINGS_LIBS) \
+ $(CAPI_SYSTEM_INFO_LIBS) \
+ $(TTS_LIBS) \
+ $(SENSOR_LIBS) \
+ $(BUNDLE_LIBS) \
$(CAPI_APPFW_COMMON_LIBS) \
$(CAPI_APPFW_CONTROL_LIBS) \
$(CAPI_APPFW_WIDGET_BASE_LIBS) \
$(ECORE_IMF_LIBS) \
$(FRIBIDI_LIBS)
-endif
+
else
LIBDALI_ADAPTOR_LA_CXXFLAGS += $(ELEMENTARY_CFLAGS)
AM_CONDITIONAL([WAYLAND], [test x$enable_wayland = xyes])
AM_CONDITIONAL([ECORE_WAYLAND2], [test x$enable_ecore_wayland2 = xyes])
AM_CONDITIONAL([USE_APPFW], [test x$enable_appfw = xyes])
-AM_CONDITIONAL([USE_APPFW_EFL_BASE], [test x$enable_tizen_major_version = x3])
AM_CONDITIONAL([ENABLE_CXX03_ABI], [test x$enable_cxx03_abi = xyes])
AM_CONDITIONAL([ENABLE_RENAME_SO], [test x$enable_rename_so = xyes])
#define DALI_WATCH_REFRESH_RATE "DALI_WATCH_REFRESH_RATE"
+#define DALI_WIDGET_REFRESH_RATE "DALI_WIDGET_REFRESH_RATE"
+
#define DALI_ENV_MULTI_SAMPLING_LEVEL "DALI_MULTI_SAMPLING_LEVEL"
#define DALI_ENV_MAX_TEXTURE_SIZE "DALI_MAX_TEXTURE_SIZE"
// INTERNAL INCLUDE
#include <dali/public-api/adaptor-framework/widget.h>
#include <dali/public-api/adaptor-framework/widget-impl.h>
+#include <dali/internal/system/common/environment-variables.h>
#include <dali/internal/system/tizen-wayland/widget-controller-tizen.h>
-#ifdef WIDGET_SUPPOERTED
+// EXTERNAL INCLUDES
#include <bundle.h>
#include <widget_base.h>
-#endif
namespace Dali
{
namespace Internal
{
-#ifdef WIDGET_SUPPOERTED
namespace
{
return 0;
}
-} // anonymous namespace
+unsigned int GetEnvWidgetRenderRefreshRate()
+{
+ const char* envVariable = std::getenv( DALI_WIDGET_REFRESH_RATE );
-#endif
+ return envVariable ? std::atoi( envVariable ) : 1u; // Default 60 fps
+}
+
+} // anonymous namespace
namespace Adaptor
{
-#ifdef WIDGET_SUPPOERTED
-
WidgetApplicationPtr WidgetApplicationTizen::New(
int* argc,
char **argv[],
}
}
-#endif
+void WidgetApplicationTizen::OnInit()
+{
+ WidgetApplication::OnInit();
+
+ Dali::Adaptor::Get().SetRenderRefreshRate( GetEnvWidgetRenderRefreshRate() );
+}
// factory function, must be implemented
namespace WidgetApplicationFactory
*/
Dali::Internal::Adaptor::WidgetApplicationPtr Create( int* argc, char **argv[], const std::string& stylesheet )
{
-#ifdef WIDGET_SUPPOERTED
return WidgetApplicationTizen::New( argc, argv, stylesheet );
-#else
- return nullptr;
-#endif
}
} // namespace Factory
*/
// EXTERNAL INCLUDES
-#ifdef WIDGET_SUPPOERTED
#include <widget_base.h>
-#endif
// INTERNAL INCLUDES
#include <dali/internal/adaptor/common/application-impl.h>
#include <dali/internal/system/common/widget-application-impl.h>
-#ifndef WIDGET_SUPPOERTED
-typedef void* widget_base_instance_h;
-#endif
-
namespace Dali
{
class Widget;
static WidgetApplicationPtr New( int* argc, char **argv[], const std::string& stylesheet );
public:
+ /**
+ * @copydoc Dali::Internal::Adaptor::Application::OnInit()
+ */
+ virtual void OnInit();
/**
* @copydoc Dali::WidgetApplication::RegisterWidgetCreator()
// EXTERNAL INCLUDES
#include <dali/public-api/signals/connection-tracker.h>
+#include <widget_base.h>
// INTERNAL INCLUDES
-#ifdef WIDGET_SUPPOERTED
-#include <widget_base.h>
-#endif
#include <dali/public-api/adaptor-framework/widget-impl.h>
#include <dali/internal/system/common/widget-controller.h>
{
public:
-#ifndef WIDGET_SUPPOERTED
- typedef void* widget_base_instance_h;
-#endif
-
/**
* Constructor
*/