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

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

Issue 2325773003: cc: Plumb the monitor color profile to renderer for rasterization (Closed)
Patch Set: Unrevert Created 4 years, 3 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/BUILD.gn ('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 9d6562d0c1dd441552d8e74238328ff676a1975b..015d68cd4848a310125d559df280bbfa8d32b9be 100644
--- a/ui/display/android/screen_android.cc
+++ b/ui/display/android/screen_android.cc
@@ -49,6 +49,7 @@ class ScreenAndroid : public Screen {
display.SetRotationAsDegree(device_info.GetRotationDegrees());
display.set_color_depth(device_info.GetBitsPerPixel());
display.set_depth_per_component(device_info.GetBitsPerComponent());
+ display.set_is_monochrome(device_info.GetBitsPerComponent() == 0);
return display;
}
« no previous file with comments | « ui/display/BUILD.gn ('k') | ui/display/display.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698