fixup! Implement device display info and get device scale factor.
authorSeungSeop Park <sns.park@samsung.com>
Tue, 19 Jan 2016 02:47:04 +0000 (11:47 +0900)
committerYoungsoo Choi <kenshin.choi@samsung.com>
Tue, 10 Jul 2018 07:55:23 +0000 (07:55 +0000)
Fix following warning in tv build:
> 'int gfx::{anonymous}::GetDensityRange(int)' defined but not used \
> [-Werror=unused-function]

Bug: http://web.sec.samsung.net/bugzilla/show_bug.cgi?id=15496

Reviewed by: a1.gomes, msu.koo, sns.park

Change-Id: I4f01bd642ec2117015bc502b136df9bb979b63f9
Signed-off-by: SeungSeop Park <sns.park@samsung.com>
tizen_src/chromium_impl/ui/gfx/device_display_info_efl.cc

index 139267c..5844fff 100644 (file)
@@ -13,6 +13,7 @@ namespace {
 const double kBaselineDPIDensity = 160.0;
 const int kInvalidRotationDegrees = -1;
 
+#if defined(OS_TIZEN_MOBILE)
 int GetDensityRange(int dpi) {
   // Copied from Android platform and extended to support UHD displays,
   // (http://developer.android.com/reference/android/util/DisplayMetrics.html).
@@ -45,6 +46,7 @@ int GetDensityRange(int dpi) {
 
   return upper_bound;
 }
+#endif
 
 }  // namespace