1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef UI_DISPLAY_UTIL_X11_EDID_PARSER_X11_H_
6 #define UI_DISPLAY_UTIL_X11_EDID_PARSER_X11_H_
12 #include "ui/display/types/display_constants.h"
13 #include "ui/display/util/display_util_export.h"
15 typedef unsigned long XID
;
18 // Xrandr utility functions to help get EDID information.
22 // Gets the EDID data from |output| and generates the display id through
23 // |GetDisplayIdFromEDID|.
24 DISPLAY_UTIL_EXPORT
bool GetDisplayId(XID output
,
26 int64_t* display_id_out
);
28 // Generate the human readable string from EDID obtained from |output|.
29 DISPLAY_UTIL_EXPORT
std::string
GetDisplayName(RROutput output
);
31 // Gets the overscan flag from |output| and stores to |flag|. Returns true if
32 // the flag is found. Otherwise returns false and doesn't touch |flag|. The
33 // output will produce overscan if |flag| is set to true, but the output may
34 // still produce overscan even though it returns true and |flag| is set to
36 DISPLAY_UTIL_EXPORT
bool GetOutputOverscanFlag(RROutput output
, bool* flag
);
40 #endif // UI_DISPLAY_UTIL_X11_EDID_PARSER_X11_H_