[M76 Migration][Rendering] Fix scale factor for wearable 64/222064/2
authorChandan Padhi <c.padhi@samsung.com>
Fri, 20 Dec 2019 08:50:51 +0000 (14:20 +0530)
committerDae-Hyun Ko <dhyuna.ko@samsung.com>
Fri, 10 Jan 2020 01:22:44 +0000 (01:22 +0000)
Currently, device scale factor for wearable profile is calculated
similar to that for mobile profile. But in case of wearable profile,
device scale factor should be "1.0".

Reference: https://review.tizen.org/gerrit/#/c/200822/

Change-Id: I43dd3a79aaed61834138f0a6f5604c5ccd6961de
Signed-off-by: Chandan Padhi <c.padhi@samsung.com>
(cherry picked from commit 8ac80870195691dbc4bae901db444358564015a6)

tizen_src/chromium_impl/ui/display/device_display_info_efl.cc

index f65fde8..8d522c0 100644 (file)
@@ -169,7 +169,7 @@ int DeviceDisplayInfoEfl::GetDisplayHeight() const {
 }
 
 double DeviceDisplayInfoEfl::ComputeDIPScale(int dpi) const {
-  if (IsMobileProfile() || IsWearableProfile()) {
+  if (IsMobileProfile()) {
     double dip_scale = static_cast<double>(GetDensityRange(dpi));
     DCHECK(dip_scale);
     dip_scale /= kBaselineDPIDensity;