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

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

Issue 2152883002: ui: Pass display size by const reference in AddVirtualDisplay (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 | « ui/display/chromeos/display_configurator.h ('k') | no next file » | 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 eb1c0a4a8c4fe385b3dca2a83ed0493d7287216b..23378703c26fcab9ac96ff61a868f4826852fc89 100644
--- a/ui/display/chromeos/display_configurator.cc
+++ b/ui/display/chromeos/display_configurator.cc
@@ -1116,7 +1116,7 @@ void DisplayConfigurator::NotifyPowerStateObservers() {
Observer, observers_, OnPowerStateChanged(current_power_state_));
}
-int64_t DisplayConfigurator::AddVirtualDisplay(gfx::Size display_size) {
+int64_t DisplayConfigurator::AddVirtualDisplay(const gfx::Size& display_size) {
if (last_virtual_display_id_ == 0xff) {
LOG(WARNING) << "Exceeded virtual display id limit";
return display::Display::kInvalidDisplayID;
« no previous file with comments | « ui/display/chromeos/display_configurator.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698