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

Unified Diff: ui/android/display_android_manager.cc

Issue 2953393002: android WCG support: Add missing plumbing (Closed)
Patch Set: Fix build again Created 3 years, 6 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/web_contents/web_contents_view_android.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/android/display_android_manager.cc
diff --git a/ui/android/display_android_manager.cc b/ui/android/display_android_manager.cc
index 6feec773212be85ca49438a6366c0d2851ba0eac..936e2541dfb2256a24aad6d5f8f5be111a95aaaa 100644
--- a/ui/android/display_android_manager.cc
+++ b/ui/android/display_android_manager.cc
@@ -13,6 +13,7 @@
#include "ui/android/screen_android.h"
#include "ui/android/window_android.h"
#include "ui/display/display.h"
+#include "ui/gfx/icc_profile.h"
namespace ui {
@@ -91,6 +92,10 @@ void DisplayAndroidManager::UpdateDisplay(
display::Display display(sdkDisplayId, bounds_in_dip);
if (!Display::HasForceDeviceScaleFactor())
display.set_device_scale_factor(dipScale);
+ // TODO(ccameron): Know the ideal color profile to use here.
+ // https://crbug.com/735658
+ if (!gfx::ICCProfile::HasForcedProfile())
+ display.set_color_space(gfx::ColorSpace::CreateSRGB());
display.set_size_in_pixels(bounds_in_pixels.size());
display.SetRotationAsDegree(rotationDegrees);
« no previous file with comments | « content/browser/web_contents/web_contents_view_android.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698