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

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

Issue 1182063002: Add support for more advanced color correction (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@qcms-fixed-point-gamma
Patch Set: Rebase after quirks changes Created 4 years, 9 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/chromeos/x11/native_display_delegate_x11.cc ('k') | ui/display/types/display_snapshot.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/display/types/display_snapshot.h
diff --git a/ui/display/types/display_snapshot.h b/ui/display/types/display_snapshot.h
index 7f6591686e5d1fff52b55dd375552cc66e90c8ca..d7106916bc0a7564fd397ab576ff521bf49aa2d8 100644
--- a/ui/display/types/display_snapshot.h
+++ b/ui/display/types/display_snapshot.h
@@ -29,6 +29,7 @@ class DISPLAY_TYPES_EXPORT DisplaySnapshot {
DisplayConnectionType type,
bool is_aspect_preserving_scaling,
bool has_overscan,
+ bool has_color_correction_matrix,
std::string display_name,
const base::FilePath& sys_path,
const std::vector<const DisplayMode*>& modes,
@@ -60,6 +61,11 @@ class DISPLAY_TYPES_EXPORT DisplaySnapshot {
void set_origin(const gfx::Point& origin) { origin_ = origin; }
void add_mode(const DisplayMode* mode) { modes_.push_back(mode); }
+ // Whether this display has advanced color correction available.
+ bool has_color_correction_matrix() const {
+ return has_color_correction_matrix_;
+ }
+
// Returns a textual representation of this display state.
virtual std::string ToString() const = 0;
@@ -81,6 +87,8 @@ class DISPLAY_TYPES_EXPORT DisplaySnapshot {
bool has_overscan_;
+ bool has_color_correction_matrix_;
+
std::string display_name_;
base::FilePath sys_path_;
« no previous file with comments | « ui/display/chromeos/x11/native_display_delegate_x11.cc ('k') | ui/display/types/display_snapshot.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698