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

Unified Diff: ui/display/display.h

Issue 2325773003: cc: Plumb the monitor color profile to renderer for rasterization (Closed)
Patch Set: Make public_deps instead of deps Created 4 years, 3 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/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_;
« ui/display/BUILD.gn ('K') | « ui/display/BUILD.gn ('k') | ui/display/mac/screen_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698