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

Unified Diff: ash/display/multi_display_manager.cc

Issue 11140006: Fix code around display overscan settings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 | ash/display/multi_display_manager_unittest.cc » ('j') | ui/gfx/display.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/display/multi_display_manager.cc
diff --git a/ash/display/multi_display_manager.cc b/ash/display/multi_display_manager.cc
index 5cb7cfd0bbc06a46693aeb70983573c86bd65757..3280583162fda61de4f5130cbd9e5f2a9d22a88d 100644
--- a/ash/display/multi_display_manager.cc
+++ b/ash/display/multi_display_manager.cc
@@ -197,11 +197,8 @@ void MultiDisplayManager::OnNativeDisplaysChanged(
iter != new_displays.end(); ++iter) {
std::map<int64, gfx::Insets>::const_iterator overscan_insets =
overscan_mapping_.find(iter->id());
- if (overscan_insets != overscan_mapping_.end()) {
- gfx::Rect bounds = iter->bounds_in_pixel();
- bounds.Inset(overscan_insets->second.Scale(iter->device_scale_factor()));
- iter->SetScaleAndBounds(iter->device_scale_factor(), bounds);
- }
+ if (overscan_insets != overscan_mapping_.end())
+ iter->SetOverscanInsets(overscan_insets->second);
}
std::sort(displays_.begin(), displays_.end(), DisplaySortFunctor());
« no previous file with comments | « no previous file | ash/display/multi_display_manager_unittest.cc » ('j') | ui/gfx/display.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698