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

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

Issue 2944063002: exo: Fix cursor scaling for 1.25 DSF (Closed)
Patch Set: Restore DCHECK Created 3 years, 6 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 0a2863aaa30718c652fea8b8e501aacb488d6fdb..e52e05e248c4e6a540f4da41187bd83f661b40d6 100644
--- a/ui/display/manager/managed_display_info.h
+++ b/ui/display/manager/managed_display_info.h
@@ -227,6 +227,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