Index: ui/display/display.h |
diff --git a/ui/display/display.h b/ui/display/display.h |
index 17bb00bb49139ea5225a24b95ae561b05b19c3b9..2b43bd3a31f75cbd156e1ef97c6840c35b08c813 100644 |
--- a/ui/display/display.h |
+++ b/ui/display/display.h |
@@ -10,6 +10,7 @@ |
#include "base/compiler_specific.h" |
#include "ui/display/display_export.h" |
#include "ui/gfx/geometry/rect.h" |
+#include "ui/gfx/icc_profile.h" |
#if !defined(OS_IOS) |
#include "mojo/public/cpp/bindings/struct_traits.h" // nogncheck |
@@ -164,11 +165,20 @@ class DISPLAY_EXPORT Display final { |
maximum_cursor_size_ = size; |
} |
+ // The full ICC profile of the display. |
+ gfx::ICCProfile icc_profile() const { return icc_profile_; } |
+ void set_icc_profile(const gfx::ICCProfile& icc_profile) { |
+ icc_profile_ = icc_profile; |
+ } |
+ |
+ // The number of bits per pixel. |
int color_depth() const { return color_depth_; } |
ccameron
2016/09/08 22:05:03
These variables are:
- populated to something besi
|
void set_color_depth(int color_depth) { |
color_depth_ = color_depth; |
} |
+ // The number of bits per color component (all color components are assumed to |
+ // have the same number of bits). |
int depth_per_component() const { return depth_per_component_; } |
void set_depth_per_component(int depth_per_component) { |
depth_per_component_ = depth_per_component; |
@@ -182,6 +192,7 @@ class DISPLAY_EXPORT Display final { |
Rotation rotation_; |
TouchSupport touch_support_; |
gfx::Size maximum_cursor_size_; |
+ gfx::ICCProfile icc_profile_; |
int color_depth_; |
int depth_per_component_; |