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

Unified Diff: ui/display/manager/managed_display_info.h

Issue 2965113002: [M60] exo: Fix cursor scaling for 1.25 DSF (Closed)
Patch Set: Created 3 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/exo/pointer.cc ('k') | ui/display/manager/managed_display_info.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/display/manager/managed_display_info.h
diff --git a/ui/display/manager/managed_display_info.h b/ui/display/manager/managed_display_info.h
index c40b3c81e17420f3d5e1da7b6e3c6b7b040cb15a..65909fd3e8ed3629093ec2f115de88dc2b997ed5 100644
--- a/ui/display/manager/managed_display_info.h
+++ b/ui/display/manager/managed_display_info.h
@@ -232,6 +232,10 @@ class DISPLAY_MANAGER_EXPORT ManagedDisplayInfo {
// Returns the rotation set by a given |source|.
Display::Rotation GetRotation(Display::RotationSource source) const;
+ // Returns a measure of density relative to a display with 1.0 DSF. Unlike the
+ // effective DSF, this is independent from the UI scale.
+ float GetDensityRatio() const;
+
// Returns the ui scale and device scale factor actually used to create
// display that chrome sees. This can be different from one obtained
// from dispaly or one specified by a user in following situation.
« no previous file with comments | « components/exo/pointer.cc ('k') | ui/display/manager/managed_display_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698