%endif
Name: crosswalk
-Version: 7.35.143.0
+Version: 7.35.144.0
Release: 0
Summary: Crosswalk is an app runtime based on Chromium
License: (BSD-3-Clause and LGPL-2.1+)
GYP_EXTRA_FLAGS="${GYP_EXTRA_FLAGS} -Ddisable_fatal_linker_warnings=1"
%endif
+# For building for arm in OBS, we need :
+# -> to unset sysroot value.
+# sysroot variable is automatically set for cross compilation to use arm-sysroot provided by Chromium project
+# -> to force system ld binary.
+# Indeed the build is made on Emulated / Virtualized environment that correspond
+# to the target.
+# gold ld used is avaible only for 32/64 bits Intel Arch.
+# sysroot usage is not needed, we need to use arm libraries from the virtualized environment.
+#
+# Crosswalk build fails if the fpu selected in the gcc option is different from neon in case of arm7 compilation
+# So force it.
+%ifarch %{arm}
+GYP_EXTRA_FLAGS="${GYP_EXTRA_FLAGS} -Dsysroot= -Dlinux_use_gold_binary=0"
+export CFLAGS=`echo $CFLAGS | sed s,-mfpu=vfpv3,-mfpu=neon,g`
+export CXXFLAGS=`echo $CXXFLAGS | sed s,-mfpu=vfpv3,-mfpu=neon,g`
+export FFLAGS=`echo $FFLAGS | sed s,-mfpu=vfpv3,-mfpu=neon,g`
+%endif
+
# --no-parallel is added because chroot does not mount a /dev/shm, this will
# cause python multiprocessing.SemLock error.
export GYP_GENERATORS='ninja'
MAJOR=7
MINOR=35
-BUILD=143
+BUILD=144
PATCH=0
+shiliu.wang@intel.com
yongsheng.zhu@intel.com
girish.ramakrishnan@intel.com
+shiliu.wang@intel.com
shouqun.liu@intel.com
xingnan.wang@intel.com
yongsheng.zhu@intel.com
%endif
Name: crosswalk
-Version: 7.35.143.0
+Version: 7.35.144.0
Release: 0
Summary: Crosswalk is an app runtime based on Chromium
License: (BSD-3-Clause and LGPL-2.1+)
GYP_EXTRA_FLAGS="${GYP_EXTRA_FLAGS} -Ddisable_fatal_linker_warnings=1"
%endif
+# For building for arm in OBS, we need :
+# -> to unset sysroot value.
+# sysroot variable is automatically set for cross compilation to use arm-sysroot provided by Chromium project
+# -> to force system ld binary.
+# Indeed the build is made on Emulated / Virtualized environment that correspond
+# to the target.
+# gold ld used is avaible only for 32/64 bits Intel Arch.
+# sysroot usage is not needed, we need to use arm libraries from the virtualized environment.
+#
+# Crosswalk build fails if the fpu selected in the gcc option is different from neon in case of arm7 compilation
+# So force it.
+%ifarch %{arm}
+GYP_EXTRA_FLAGS="${GYP_EXTRA_FLAGS} -Dsysroot= -Dlinux_use_gold_binary=0"
+export CFLAGS=`echo $CFLAGS | sed s,-mfpu=vfpv3,-mfpu=neon,g`
+export CXXFLAGS=`echo $CXXFLAGS | sed s,-mfpu=vfpv3,-mfpu=neon,g`
+export FFLAGS=`echo $FFLAGS | sed s,-mfpu=vfpv3,-mfpu=neon,g`
+%endif
+
# --no-parallel is added because chroot does not mount a /dev/shm, this will
# cause python multiprocessing.SemLock error.
export GYP_GENERATORS='ninja'
girish.ramakrishnan@intel.com
+shiliu.wang@intel.com
shouqun.liu@intel.com
xingnan.wang@intel.com
yongsheng.zhu@intel.com
girish.ramakrishnan@intel.com
+shiliu.wang@intel.com
shouqun.liu@intel.com
xingnan.wang@intel.com
yongsheng.zhu@intel.com
girish.ramakrishnan@intel.com
+shiliu.wang@intel.com
shouqun.liu@intel.com
xingnan.wang@intel.com
yongsheng.zhu@intel.com
girish.ramakrishnan@intel.com
+shiliu.wang@intel.com
shouqun.liu@intel.com
xingnan.wang@intel.com
yongsheng.zhu@intel.com
girish.ramakrishnan@intel.com
+shiliu.wang@intel.com
shouqun.liu@intel.com
xingnan.wang@intel.com
yongsheng.zhu@intel.com
+shiliu.wang@intel.com
yongsheng.zhu@intel.com
namespace xwalk {
+// static
+bool SensorProvider::initialized_ = false;
+
SensorProvider* SensorProvider::GetInstance() {
- if (!instance_) {
+ if (!initialized_) {
instance_.reset(new TizenPlatformSensor());
if (!instance_->Initialize())
instance_.reset();
return last_rotation_;
}
+ static bool initialized_;
+
protected:
SensorProvider();
}
bool TizenPlatformSensor::Initialize() {
+ // If the sensors couldn't be able to connect normally for the first time,
+ // it indicates that the platform doesn't support these sensors.
+ // Set |initialized_| true to make this function is called only
+ // once and avoid connecting to platform sensors repeatedly.
+ initialized_ = true;
+
unsigned long rotation; // NOLINT
if (!sf_check_rotation(&rotation)) {
last_rotation_ = ToDisplayRotation(static_cast<int>(rotation));