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

Unified Diff: ui/display/util/edid_parser.h

Issue 1285183008: Ozone integration. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: add missing license header Created 5 years, 4 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/types/native_display_delegate.h ('k') | ui/display/util/edid_parser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/display/util/edid_parser.h
diff --git a/ui/display/util/edid_parser.h b/ui/display/util/edid_parser.h
index 4f12d40aaa21074b3bc5e7e59f4e9e8e5d5a8d01..385abe99f7a1404638d9f4a7145a619aa8e26545 100644
--- a/ui/display/util/edid_parser.h
+++ b/ui/display/util/edid_parser.h
@@ -12,26 +12,36 @@
#include "ui/display/util/display_util_export.h"
+namespace gfx {
+class Size;
+}
+
// EDID (Extended Display Identification Data) is a format for monitor
// metadata. This provides a parser for the data.
namespace ui {
-// Generates the display id for the pair of |edid| and |index|, and store in
-// |display_id_out|. Returns true if the display id is successfully generated,
-// or false otherwise.
+// Generates the display id and product id for the pair of |edid| and |index|,
+// and store in |display_id_out| and |product_id_out|. Returns true if the
+// display id is successfully generated, or false otherwise.
DISPLAY_UTIL_EXPORT bool GetDisplayIdFromEDID(const std::vector<uint8_t>& edid,
uint8_t index,
- int64_t* display_id_out);
-
-// Parses |edid| 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.
+ int64_t* display_id_out,
+ int64_t* product_id_out);
+
+// Parses |edid| as EDID data and stores extracted data into |manufacturer_id|,
+// |product_code|, |human_readable_name|, |active_pixel_out| and
+// |physical_display_size_out|, then returns true. nullptr 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.
DISPLAY_UTIL_EXPORT bool ParseOutputDeviceData(
const std::vector<uint8_t>& edid,
uint16_t* manufacturer_id,
- std::string* human_readable_name);
+ uint16_t* product_code,
+ std::string* human_readable_name,
+ gfx::Size* active_pixel_out,
+ gfx::Size* physical_display_size_out);
DISPLAY_UTIL_EXPORT bool ParseOutputOverscanFlag(
const std::vector<uint8_t>& edid,
« no previous file with comments | « ui/display/types/native_display_delegate.h ('k') | ui/display/util/edid_parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698