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

Unified Diff: ui/display/android/screen_android.cc

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 | « content/browser/renderer_host/render_widget_host_view_android.cc ('k') | ui/display/display.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/display/android/screen_android.cc
diff --git a/ui/display/android/screen_android.cc b/ui/display/android/screen_android.cc
index 16e2357f36c9e05d015150dab761d31d976a5a55..9d6562d0c1dd441552d8e74238328ff676a1975b 100644
--- a/ui/display/android/screen_android.cc
+++ b/ui/display/android/screen_android.cc
@@ -47,6 +47,8 @@ class ScreenAndroid : public Screen {
if (!Display::HasForceDeviceScaleFactor())
display.set_device_scale_factor(device_scale_factor);
display.SetRotationAsDegree(device_info.GetRotationDegrees());
+ display.set_color_depth(device_info.GetBitsPerPixel());
+ display.set_depth_per_component(device_info.GetBitsPerComponent());
return display;
}
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_android.cc ('k') | ui/display/display.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698