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

Unified Diff: ash/display/display_info.cc

Issue 886873003: Make DisplayInfo::Copy() copy over DisplayInfo::is_aspect_preserving_scaling_ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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
« ash/display/display_info.h ('K') | « ash/display/display_info.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/display/display_info.cc
diff --git a/ash/display/display_info.cc b/ash/display/display_info.cc
index 4c64801c5e03dd23bb29bbb6bac6c38126b6af58..e812633bc2a6efeb0ee5f53df8422ff5a83487b8 100644
--- a/ash/display/display_info.cc
+++ b/ash/display/display_info.cc
@@ -266,13 +266,15 @@ void DisplayInfo::Copy(const DisplayInfo& native_info) {
name_ = native_info.name_;
has_overscan_ = native_info.has_overscan_;
+ touch_support_ = native_info.touch_support_;
+ touch_device_id_ = native_info.touch_device_id_;
+ device_scale_factor_ = native_info.device_scale_factor_;
DCHECK(!native_info.bounds_in_native_.IsEmpty());
bounds_in_native_ = native_info.bounds_in_native_;
size_in_pixel_ = native_info.size_in_pixel_;
- device_scale_factor_ = native_info.device_scale_factor_;
+ is_aspect_preserving_scaling_ = native_info.is_aspect_preserving_scaling_;
display_modes_ = native_info.display_modes_;
- touch_support_ = native_info.touch_support_;
- touch_device_id_ = native_info.touch_device_id_;
+ available_color_profiles_ = native_info.available_color_profiles_;
pkotwicz 2015/01/29 20:37:59 I reordered these to match the order in the .h fil
// Rotation, ui_scale, color_profile and overscan are given by preference,
// or unit tests. Don't copy if this native_info came from
@@ -289,12 +291,6 @@ void DisplayInfo::Copy(const DisplayInfo& native_info) {
configured_ui_scale_ = native_info.configured_ui_scale_;
color_profile_ = native_info.color_profile();
}
-
- available_color_profiles_ = native_info.available_color_profiles();
-
- // Don't copy insets as it may be given by preference. |rotation_|
- // is treated as a native so that it can be specified in
- // |CreateFromSpec|.
}
void DisplayInfo::SetBounds(const gfx::Rect& new_bounds_in_native) {
« ash/display/display_info.h ('K') | « ash/display/display_info.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698