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

Side by Side Diff: include/c/sk_types.h

Issue 2209533004: spin off easy stuff from Herb's windows GN CL (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 4 years, 4 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 | « gn/win_stamp.py ('k') | include/core/SkPreConfig.h » ('j') | 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 2014 Google Inc. 2 * Copyright 2014 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 // EXPERIMENTAL EXPERIMENTAL EXPERIMENTAL EXPERIMENTAL 8 // EXPERIMENTAL EXPERIMENTAL EXPERIMENTAL EXPERIMENTAL
9 // DO NOT USE -- FOR INTERNAL TESTING ONLY 9 // DO NOT USE -- FOR INTERNAL TESTING ONLY
10 10
11 #ifndef sk_types_DEFINED 11 #ifndef sk_types_DEFINED
12 #define sk_types_DEFINED 12 #define sk_types_DEFINED
13 13
14 #include <stdint.h> 14 #include <stdint.h>
15 #include <stddef.h> 15 #include <stddef.h>
16 16
17 #ifdef __cplusplus 17 #ifdef __cplusplus
18 #define SK_C_PLUS_PLUS_BEGIN_GUARD extern "C" { 18 #define SK_C_PLUS_PLUS_BEGIN_GUARD extern "C" {
19 #define SK_C_PLUS_PLUS_END_GUARD } 19 #define SK_C_PLUS_PLUS_END_GUARD }
20 #else 20 #else
21 #include <stdbool.h> 21 #include <stdbool.h>
22 #define SK_C_PLUS_PLUS_BEGIN_GUARD 22 #define SK_C_PLUS_PLUS_BEGIN_GUARD
23 #define SK_C_PLUS_PLUS_END_GUARD 23 #define SK_C_PLUS_PLUS_END_GUARD
24 #endif 24 #endif
25 25
26 #if !defined(SK_API) 26 #if !defined(SK_API)
27 #if defined(SKIA_DLL) 27 #if defined(SKIA_DLL)
28 #if defined(SK_BUILD_FOR_WIN32) 28 #if defined(_MSC_VER)
29 #if SKIA_IMPLEMENTATION 29 #if SKIA_IMPLEMENTATION
30 #define SK_API __declspec(dllexport) 30 #define SK_API __declspec(dllexport)
31 #else 31 #else
32 #define SK_API __declspec(dllimport) 32 #define SK_API __declspec(dllimport)
33 #endif 33 #endif
34 #else 34 #else
35 #define SK_API __attribute__((visibility("default"))) 35 #define SK_API __attribute__((visibility("default")))
36 #endif 36 #endif
37 #else 37 #else
38 #define SK_API 38 #define SK_API
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 SATURATION_SK_XFERMODE_MODE, 208 SATURATION_SK_XFERMODE_MODE,
209 COLOR_SK_XFERMODE_MODE, 209 COLOR_SK_XFERMODE_MODE,
210 LUMINOSITY_SK_XFERMODE_MODE, 210 LUMINOSITY_SK_XFERMODE_MODE,
211 } sk_xfermode_mode_t; 211 } sk_xfermode_mode_t;
212 212
213 //////////////////////////////////////////////////////////////////////////////// ////////// 213 //////////////////////////////////////////////////////////////////////////////// //////////
214 214
215 SK_C_PLUS_PLUS_END_GUARD 215 SK_C_PLUS_PLUS_END_GUARD
216 216
217 #endif 217 #endif
OLDNEW
« no previous file with comments | « gn/win_stamp.py ('k') | include/core/SkPreConfig.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698