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

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: 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') | ui/display/display.h » ('J')
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 a19684296d47d212b74f11595977d049fb0e9f4a..9cdce0d5911a379d7a3bd76716117c02cd3eda02 100644
--- a/content/browser/renderer_host/render_widget_host_view_android.cc
+++ b/content/browser/renderer_host/render_widget_host_view_android.cc
@@ -1971,8 +1971,8 @@ void RenderWidgetHostViewBase::GetDefaultScreenInfo(
results->orientationType =
RenderWidgetHostViewBase::GetOrientationTypeForMobile(display);
gfx::DeviceDisplayInfo info;
- results->depth = info.GetBitsPerPixel();
- results->depthPerComponent = info.GetBitsPerComponent();
+ results->depth = display.bits_per_pixel();
+ results->depthPerComponent = display.bits_per_component();
results->isMonochrome = (results->depthPerComponent == 0);
}
« no previous file with comments | « no previous file | ui/display/android/screen_android.cc » ('j') | ui/display/display.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698