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

Unified Diff: chromeos/display/real_output_configurator_delegate.cc

Issue 15067012: Move chromeos specific utility functions for display to chromeos/display (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: added test Created 7 years, 7 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 | « chromeos/display/output_util_unittest.cc ('k') | ui/base/x/x11_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/display/real_output_configurator_delegate.cc
diff --git a/chromeos/display/real_output_configurator_delegate.cc b/chromeos/display/real_output_configurator_delegate.cc
index 531a46d89cc36b98b1c5fb51be65fa87b9e4af82..a0bb007125ff3523883265b6b494c92ffc262d2c 100644
--- a/chromeos/display/real_output_configurator_delegate.cc
+++ b/chromeos/display/real_output_configurator_delegate.cc
@@ -17,6 +17,7 @@
#include "base/message_pump_aurax11.h"
#include "chromeos/dbus/dbus_thread_manager.h"
#include "chromeos/dbus/power_manager_client.h"
+#include "chromeos/display/output_util.h"
namespace chromeos {
@@ -28,8 +29,7 @@ const float kDpi96 = 96.0;
const float kPixelsToMmScale = kMmInInch / kDpi96;
bool IsInternalOutput(const XRROutputInfo* output_info) {
- return OutputConfigurator::IsInternalOutputName(
- std::string(output_info->name));
+ return IsInternalOutputName(std::string(output_info->name));
}
RRMode GetOutputNativeMode(const XRROutputInfo* output_info) {
@@ -121,6 +121,8 @@ RealOutputConfiguratorDelegate::GetOutputs() {
if (is_connected) {
OutputConfigurator::OutputSnapshot to_populate;
to_populate.output = this_id;
+ to_populate.has_display_id =
+ GetDisplayId(this_id, i, &to_populate.display_id);
(outputs.empty() ? one_info : two_info) = output_info;
// Now, look up the current CRTC and any related info.
@@ -147,7 +149,6 @@ RealOutputConfiguratorDelegate::GetOutputs() {
to_populate.is_aspect_preserving_scaling =
IsOutputAspectPreservingScaling(this_id);
to_populate.touch_device_id = None;
- to_populate.index = i;
VLOG(1) << "Found display #" << outputs.size()
<< " with output " << to_populate.output
« no previous file with comments | « chromeos/display/output_util_unittest.cc ('k') | ui/base/x/x11_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698