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

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: broken sort 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
« skia/ext/skia_utils_ios.h ('K') | « skia/ext/skia_utils_ios.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..0d146076f20f9bb7ea768c585c5039bf2add604d 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* ColorFromSkColor(SkColor color, CGFloat alpha) {
+ return [UIColor colorWithRed:SkColorGetR(color) / 255.0f
+ green:SkColorGetG(color) / 255.0f
+ blue:SkColorGetB(color) / 255.0f
+ alpha:alpha];
Justin Novosad 2015/10/30 18:18:13 SkColor stores an alpha value, which this method c
justincohen 2015/10/30 19:43:24 Probably not -- changed to use |color|'s alpha ins
+}
+
} // namespace gfx
« skia/ext/skia_utils_ios.h ('K') | « skia/ext/skia_utils_ios.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698