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

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: 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 72f8b8cb5a73dcf721bfe7fd0f6b37f47cf7d931..7d00c0a76b6479261e265e69837bc80b000a6ef4 100644
--- a/ui/display/display.h
+++ b/ui/display/display.h
@@ -154,6 +154,16 @@ class DISPLAY_EXPORT Display final {
maximum_cursor_size_ = size;
}
+ int bits_per_pixel() const { return bits_per_pixel_; }
+ void set_bits_per_pixel(int bits_per_pixel) {
+ bits_per_pixel_ = bits_per_pixel;
+ }
+
+ int bits_per_component() const { return bits_per_component_; }
+ void set_bits_per_component(int bits_per_component) {
+ bits_per_component_ = bits_per_component;
+ }
+
private:
int64_t id_;
gfx::Rect bounds_;
@@ -162,6 +172,8 @@ class DISPLAY_EXPORT Display final {
Rotation rotation_;
TouchSupport touch_support_;
gfx::Size maximum_cursor_size_;
+ int bits_per_pixel_;
+ int bits_per_component_;
oshima 2016/07/14 14:09:37 In WebScreenInfo, they're depth depthPerComponent
gsennton 2016/07/14 14:34:07 I don't have a strong opinion about the naming her
};
} // namespace 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