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

Unified Diff: ui/display/chromeos/display_configurator.cc

Issue 606913002: chromeos: Choose monitor native mode as best match mode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: formatting Created 6 years, 2 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 | « no previous file | ui/display/chromeos/display_configurator_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/display/chromeos/display_configurator.cc
diff --git a/ui/display/chromeos/display_configurator.cc b/ui/display/chromeos/display_configurator.cc
index 3194636b6279e587c57dae75ef662c0f8e2c7e14..866efdb2e3c6c29da10afcbcf1eb53b1677f1f39 100644
--- a/ui/display/chromeos/display_configurator.cc
+++ b/ui/display/chromeos/display_configurator.cc
@@ -129,6 +129,11 @@ const DisplayMode* DisplayConfigurator::FindDisplayModeMatchingSize(
if (mode->size() != size)
continue;
+ if (mode == display.native_mode()) {
+ best_mode = mode;
+ break;
+ }
+
if (!best_mode) {
best_mode = mode;
continue;
« no previous file with comments | « no previous file | ui/display/chromeos/display_configurator_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698