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

Unified Diff: content/browser/renderer_host/render_widget_host_view_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 | « no previous file | ui/display/android/screen_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/render_widget_host_view_android.cc
diff --git a/content/browser/renderer_host/render_widget_host_view_android.cc b/content/browser/renderer_host/render_widget_host_view_android.cc
index 52455090ad407c719873d138796bf59dda34136e..2cfc5a5fc38da6082136dbe889193d01dd6f3f48 100644
--- a/content/browser/renderer_host/render_widget_host_view_android.cc
+++ b/content/browser/renderer_host/render_widget_host_view_android.cc
@@ -1960,8 +1960,8 @@ void RenderWidgetHostViewBase::GetDefaultScreenInfo(
results->orientationType =
RenderWidgetHostViewBase::GetOrientationTypeForMobile(display);
gfx::DeviceDisplayInfo info;
- results->depth = info.GetBitsPerPixel();
- results->depthPerComponent = info.GetBitsPerComponent();
+ results->depth = display.color_depth();
+ results->depthPerComponent = display.depth_per_component();
results->isMonochrome = (results->depthPerComponent == 0);
}
« no previous file with comments | « no previous file | ui/display/android/screen_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698