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

Side by Side Diff: src/ports/SkImageGeneratorCG.cpp

Issue 1784663002: Don't build CG on Linux CMake (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 9 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 unified diff | Download patch
« no previous file with comments | « cmake/CMakeLists.txt ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « cmake/CMakeLists.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698