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

Unified Diff: ui/display/util/display_util.h

Issue 1456623002: Add support for virtual displays (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use std::max as suggested by oshima@ Created 5 years 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 | « ui/display/types/display_constants.h ('k') | ui/display/util/display_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/display/util/display_util.h
diff --git a/ui/display/util/display_util.h b/ui/display/util/display_util.h
index 012269d1038062fe189eb2e4416fe9c6930faff6..1eb4750c09e9735e0e368313154bff6e5009fa34 100644
--- a/ui/display/util/display_util.h
+++ b/ui/display/util/display_util.h
@@ -21,6 +21,17 @@ DISPLAY_UTIL_EXPORT float GetScaleFactor(
const gfx::Size& physical_size_in_mm,
const gfx::Size& screen_size_in_pixels);
+// Returns 64-bit persistent ID for the specified manufacturer's ID and
+// product_code_hash, and the index of the output it is connected to.
+// |output_index| is used to distinguish the displays of the same type. For
+// example, swapping two identical display between two outputs will not be
+// treated as swap. The 'serial number' field in EDID isn't used here because
+// it is not guaranteed to have unique number and it may have the same fixed
+// value (like 0).
+DISPLAY_UTIL_EXPORT int64_t GenerateDisplayID(uint16_t manufacturer_id,
+ uint32_t product_code_hash,
+ uint8_t output_index);
+
} // namespace ui
#endif // UI_DISPLAY_UTIL_DISPLAY_UTIL_H_
« no previous file with comments | « ui/display/types/display_constants.h ('k') | ui/display/util/display_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698