diff options
author | erg@chromium.org <erg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-09-25 21:32:21 +0000 |
---|---|---|
committer | erg@chromium.org <erg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-09-25 21:32:21 +0000 |
commit | c68f03565460122348c5a437b814f85f58ee04d5 (patch) | |
tree | e241a28fe68483d864277663c6dfd901a4ec9bab /chromeos/display/output_util.h | |
parent | 769e94ab4f20554bd0ae0c2be5ad2654a62ce16b (diff) | |
download | chromium_src-c68f03565460122348c5a437b814f85f58ee04d5.zip chromium_src-c68f03565460122348c5a437b814f85f58ee04d5.tar.gz chromium_src-c68f03565460122348c5a437b814f85f58ee04d5.tar.bz2 |
Reland linux_aura: Implement most of DesktopScreenX11.
[[Making changes to '_toolset=="target"' section in system.gyp to fix
cros compiling.]]
The linux_aura port didn't deal with multiple monitors very well because
it was treating the X root window as one big display. When xrandr is
present, get the screen areas from it, and exposes this data back to
chrome.
This patch also factors out the EDID parser than chromeos was using into
a common directory. Like chromeos, we use it to assign stable display
IDs.
BUG=287972
TBR=brettw@chromium.org, derat@chromium.org, sky@chromium.org
First Review URL: https://codereview.chromium.org/23536057
Review URL: https://codereview.chromium.org/24459002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@225254 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chromeos/display/output_util.h')
-rw-r--r-- | chromeos/display/output_util.h | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/chromeos/display/output_util.h b/chromeos/display/output_util.h index d2f1f01..3c7a49f 100644 --- a/chromeos/display/output_util.h +++ b/chromeos/display/output_util.h @@ -23,19 +23,6 @@ typedef _XRROutputInfo XRROutputInfo; namespace chromeos { -// Gets the EDID data from |output| and generates the display id through -// |GetDisplayIdFromEDID|. -CHROMEOS_EXPORT bool GetDisplayId(XID output, size_t index, - int64* display_id_out); - -// Generates the display id for the pair of |prop| with |nitems| length and -// |index|, and store in |display_id_out|. Returns true if the display id is -// successfully generated, or false otherwise. -CHROMEOS_EXPORT bool GetDisplayIdFromEDID(const unsigned char* prop, - unsigned long nitems, - size_t index, - int64* display_id_out); - // Generates the human readable string from EDID obtained for |output|. CHROMEOS_EXPORT std::string GetDisplayName(XID output); @@ -46,15 +33,6 @@ CHROMEOS_EXPORT std::string GetDisplayName(XID output); // false. CHROMEOS_EXPORT bool GetOutputOverscanFlag(XID output, bool* flag); -// Parses |prop| as EDID data and stores extracted data into |manufacturer_id| -// and |human_readable_name| and returns true. NULL can be passed for unwanted -// output parameters. Some devices (especially internal displays) may not have -// the field for |human_readable_name|, and it will return true in that case. -CHROMEOS_EXPORT bool ParseOutputDeviceData(const unsigned char* prop, - unsigned long nitems, - uint16* manufacturer_id, - std::string* human_readable_name); - // Parses |prop| as EDID data and stores the overscan flag to |flag|. Returns // true if the flag is found. This is exported for x11_util_unittest.cc. CHROMEOS_EXPORT bool ParseOutputOverscanFlag(const unsigned char* prop, |