Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(607)

Side by Side Diff: ash/display/display_info.h

Issue 578553002: Use DSF instead of UI scale if the native DSF is 1.25 and UI Scale is 0.8x (dsf=1.25 equivalent) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove upgrade Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef ASH_DISPLAY_DISPLAY_INFO_H_ 5 #ifndef ASH_DISPLAY_DISPLAY_INFO_H_
6 #define ASH_DISPLAY_DISPLAY_INFO_H_ 6 #define ASH_DISPLAY_DISPLAY_INFO_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 87
88 DisplayInfo(); 88 DisplayInfo();
89 DisplayInfo(int64 id, const std::string& name, bool has_overscan); 89 DisplayInfo(int64 id, const std::string& name, bool has_overscan);
90 ~DisplayInfo(); 90 ~DisplayInfo();
91 91
92 // When this is set to true, Chrome switches High DPI when lower UI scale 92 // When this is set to true, Chrome switches High DPI when lower UI scale
93 // (<1.0f) is specified on 1x device to make UI sharp, e.g, upgrade 0.6 93 // (<1.0f) is specified on 1x device to make UI sharp, e.g, upgrade 0.6
94 // scale on 1x DSF to 1.2 scale on 2x DSF. 94 // scale on 1x DSF to 1.2 scale on 2x DSF.
95 static void SetAllowUpgradeToHighDPI(bool enable); 95 static void SetAllowUpgradeToHighDPI(bool enable);
96 96
97 // When this is set to true on the device whose internal display has
98 // 1.25 dsf, Chrome uses 1.0f as a default scale factor, and uses
99 // dsf 1.25 when UI scaling is set to 0.8f.
100 static void SetUse125DSFForUIScaling(bool enable);
101
97 int64 id() const { return id_; } 102 int64 id() const { return id_; }
98 103
99 // The name of the display. 104 // The name of the display.
100 const std::string& name() const { return name_; } 105 const std::string& name() const { return name_; }
101 106
102 // True if the display EDID has the overscan flag. This does not create the 107 // True if the display EDID has the overscan flag. This does not create the
103 // actual overscan automatically, but used in the message. 108 // actual overscan automatically, but used in the message.
104 bool has_overscan() const { return has_overscan_; } 109 bool has_overscan() const { return has_overscan_; }
105 110
106 void set_rotation(gfx::Display::Rotation rotation) { rotation_ = rotation; } 111 void set_rotation(gfx::Display::Rotation rotation) { rotation_ = rotation; }
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 // The current profile of the color calibration. 268 // The current profile of the color calibration.
264 ui::ColorCalibrationProfile color_profile_; 269 ui::ColorCalibrationProfile color_profile_;
265 270
266 // The list of available variations for the color calibration. 271 // The list of available variations for the color calibration.
267 std::vector<ui::ColorCalibrationProfile> available_color_profiles_; 272 std::vector<ui::ColorCalibrationProfile> available_color_profiles_;
268 }; 273 };
269 274
270 } // namespace ash 275 } // namespace ash
271 276
272 #endif // ASH_DISPLAY_DISPLAY_INFO_H_ 277 #endif // ASH_DISPLAY_DISPLAY_INFO_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698