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

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: 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
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 4a6167c180844af48e74ea93e03217906720bd47..6fd528a2ede1653a6e0f4776edb93294f3550c3f 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,7 @@ RealOutputConfiguratorDelegate::GetOutputs() {
if (is_connected) {
OutputConfigurator::OutputSnapshot to_populate;
to_populate.output = this_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.

Powered by Google App Engine
This is Rietveld 408576698