Chromium Code Reviews| 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 |