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

Unified Diff: ui/display/display.h

Issue 2151563002: Add the fields bits-per-pixel and bits-per-component to Display. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 5 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/android/screen_android.cc ('k') | ui/display/display.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/display/display.h
diff --git a/ui/display/display.h b/ui/display/display.h
index c3ae3092e519d3c7ddd24e931547612bd5a2bceb..e0b4cc87568e012f40b29d7bccbd504eb4561121 100644
--- a/ui/display/display.h
+++ b/ui/display/display.h
@@ -164,6 +164,16 @@ class DISPLAY_EXPORT Display final {
maximum_cursor_size_ = size;
}
+ int color_depth() const { return color_depth_; }
+ void set_color_depth(int color_depth) {
+ color_depth_ = color_depth;
+ }
+
+ int depth_per_component() const { return depth_per_component_; }
+ void set_depth_per_component(int depth_per_component) {
+ depth_per_component_ = depth_per_component;
+ }
+
private:
int64_t id_;
gfx::Rect bounds_;
@@ -172,6 +182,8 @@ class DISPLAY_EXPORT Display final {
Rotation rotation_;
TouchSupport touch_support_;
gfx::Size maximum_cursor_size_;
+ int color_depth_;
+ int depth_per_component_;
#if !defined(OS_IOS)
friend struct mojo::StructTraits<display::mojom::Display, display::Display>;
« no previous file with comments | « ui/display/android/screen_android.cc ('k') | ui/display/display.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698