| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2016 Google Inc. | 2 * Copyright 2016 Google Inc. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 #include "SkImageGeneratorCG.h" | 8 #include "SkImageGeneratorCG.h" |
| 9 #include "SkUnpremultiply.h" | |
| 10 | 9 |
| 11 #ifdef SK_BUILD_FOR_MAC | 10 #ifdef SK_BUILD_FOR_MAC |
| 12 #include <ApplicationServices/ApplicationServices.h> | 11 #include <ApplicationServices/ApplicationServices.h> |
| 13 #endif | 12 #endif |
| 14 | 13 |
| 15 #ifdef SK_BUILD_FOR_IOS | 14 #ifdef SK_BUILD_FOR_IOS |
| 16 #include <CoreGraphics/CoreGraphics.h> | 15 #include <CoreGraphics/CoreGraphics.h> |
| 17 #include <ImageIO/ImageIO.h> | 16 #include <ImageIO/ImageIO.h> |
| 18 #include <MobileCoreServices/MobileCoreServices.h> | 17 #include <MobileCoreServices/MobileCoreServices.h> |
| 19 #endif | 18 #endif |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 // kGray_8_SkColorType | 113 // kGray_8_SkColorType |
| 115 // kIndex_8_SkColorType | 114 // kIndex_8_SkColorType |
| 116 // Additionally, it would be interesting to compare the performance | 115 // Additionally, it would be interesting to compare the performance |
| 117 // of SkSwizzler with CG's built in swizzler. | 116 // of SkSwizzler with CG's built in swizzler. |
| 118 if (!SkCopyPixelsFromCGImage(info, rowBytes, pixels, image)) { | 117 if (!SkCopyPixelsFromCGImage(info, rowBytes, pixels, image)) { |
| 119 return false; | 118 return false; |
| 120 } | 119 } |
| 121 | 120 |
| 122 return true; | 121 return true; |
| 123 } | 122 } |
| OLD | NEW |