From: SeungSeop Park Date: Tue, 19 Jan 2016 02:47:04 +0000 (+0900) Subject: fixup! Implement device display info and get device scale factor. X-Git-Tag: submit/tizen/20201118.160233~338 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fa118a4522873f70d7ee9e5e521531eedacd43ab;p=platform%2Fframework%2Fweb%2Fchromium-efl.git fixup! Implement device display info and get device scale factor. 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 --- diff --git a/tizen_src/chromium_impl/ui/gfx/device_display_info_efl.cc b/tizen_src/chromium_impl/ui/gfx/device_display_info_efl.cc index 139267c..5844fff 100644 --- a/tizen_src/chromium_impl/ui/gfx/device_display_info_efl.cc +++ b/tizen_src/chromium_impl/ui/gfx/device_display_info_efl.cc @@ -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