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

Unified Diff: skia/ext/skia_utils_ios.mm

Issue 1413903008: Add LargeIconCache and LargeIconServiceFactory for iOS. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix nits for unit test Created 5 years, 2 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
Index: skia/ext/skia_utils_ios.mm
diff --git a/skia/ext/skia_utils_ios.mm b/skia/ext/skia_utils_ios.mm
index 5655d22a5627ef98a19b4d07739d2fa86447346d..ec76cd5c19c36ca22546716b0aa6beb1feb79abf 100644
--- a/skia/ext/skia_utils_ios.mm
+++ b/skia/ext/skia_utils_ios.mm
@@ -123,4 +123,11 @@ std::vector<SkBitmap> ImageDataToSkBitmaps(NSData* image_data) {
return frames;
}
+UIColor* UIColorFromSkColor(SkColor color) {
+ return [UIColor colorWithRed:SkColorGetR(color) / 255.0f
+ green:SkColorGetG(color) / 255.0f
+ blue:SkColorGetB(color) / 255.0f
+ alpha:SkColorGetA(color) / 255.0f];
+}
+
} // namespace gfx

Powered by Google App Engine
This is Rietveld 408576698