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

Unified Diff: ui/gfx/image/image_unittest_util_mac.mm

Issue 2169633004: Fix GetPlatformImageColor on macOS Sierra. (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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/image/image_unittest_util_mac.mm
diff --git a/ui/gfx/image/image_unittest_util_mac.mm b/ui/gfx/image/image_unittest_util_mac.mm
index 243e7b3edea8d177223c22264b4f4a21844df74b..99aaf6aa82065ad3e07ab366e753541bc47fb9b7 100644
--- a/ui/gfx/image/image_unittest_util_mac.mm
+++ b/ui/gfx/image/image_unittest_util_mac.mm
@@ -17,7 +17,8 @@ SkColor GetPlatformImageColor(PlatformImage image, int x, int y) {
[image lockFocus];
NSColor* color = NSReadPixel(NSMakePoint(x, y));
[image unlockFocus];
- return skia::NSDeviceColorToSkColor(color);
+ return skia::NSDeviceColorToSkColor(
+ [color colorUsingColorSpace:[NSColorSpace deviceRGBColorSpace]]);
}
} // namespace test
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698