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

Unified Diff: ui/display/types/display_snapshot.h

Issue 1129863003: Load ICC file for display color correction based on display product identifier (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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: ui/display/types/display_snapshot.h
diff --git a/ui/display/types/display_snapshot.h b/ui/display/types/display_snapshot.h
index e0dcc7b09771b97f1eb65d86db95fbe294631812..c59ecded646827b2c5d7e396bb723a72b4cf4d0b 100644
--- a/ui/display/types/display_snapshot.h
+++ b/ui/display/types/display_snapshot.h
@@ -44,6 +44,7 @@ class DISPLAY_TYPES_EXPORT DisplaySnapshot {
const DisplayMode* current_mode() const { return current_mode_; }
const DisplayMode* native_mode() const { return native_mode_; }
+ int64_t product_id() const { return product_id_; }
const std::vector<const DisplayMode*>& modes() const { return modes_; }
@@ -54,6 +55,9 @@ class DISPLAY_TYPES_EXPORT DisplaySnapshot {
// Returns a textual representation of this display state.
virtual std::string ToString() const = 0;
+ // Used when no product id known.
+ static const int64_t kInvalidProductID = -1;
dcheng 2015/05/06 18:27:46 Just curious: why is kInvalidProductID -1, and kDu
+
protected:
// Display id for this output.
int64_t display_id_;
@@ -79,6 +83,9 @@ class DISPLAY_TYPES_EXPORT DisplaySnapshot {
// "Best" mode supported by the output.
const DisplayMode* native_mode_;
+ // Combination of manufacturer and product code.
+ int64_t product_id_;
+
DISALLOW_COPY_AND_ASSIGN(DisplaySnapshot);
};

Powered by Google App Engine
This is Rietveld 408576698