OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (C) 2006 The Android Open Source Project | 2 * Copyright (C) 2006 The Android Open Source Project |
3 * | 3 * |
4 * Licensed under the Apache License, Version 2.0 (the "License"); | 4 * Licensed under the Apache License, Version 2.0 (the "License"); |
5 * you may not use this file except in compliance with the License. | 5 * you may not use this file except in compliance with the License. |
6 * You may obtain a copy of the License at | 6 * You may obtain a copy of the License at |
7 * | 7 * |
8 * http://www.apache.org/licenses/LICENSE-2.0 | 8 * http://www.apache.org/licenses/LICENSE-2.0 |
9 * | 9 * |
10 * Unless required by applicable law or agreed to in writing, software | 10 * Unless required by applicable law or agreed to in writing, software |
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
208 // Above we set the order for ARGB channels in registers. I suspect that, on | 208 // Above we set the order for ARGB channels in registers. I suspect that, on |
209 // big endian machines, you can keep this the same and everything will work. | 209 // big endian machines, you can keep this the same and everything will work. |
210 // The in-memory order will be different, of course, but as long as everything | 210 // The in-memory order will be different, of course, but as long as everything |
211 // is reading memory as words rather than bytes, it will all work. However, if | 211 // is reading memory as words rather than bytes, it will all work. However, if |
212 // you find that colours are messed up I thought that I would leave a helpful | 212 // you find that colours are messed up I thought that I would leave a helpful |
213 // locator for you. Also see the comments in | 213 // locator for you. Also see the comments in |
214 // base/gfx/bitmap_platform_device_linux.h | 214 // base/gfx/bitmap_platform_device_linux.h |
215 #error Read the comment at this location | 215 #error Read the comment at this location |
216 #endif | 216 #endif |
217 | 217 |
218 #elif defined(SK_BUILD_FOR_ANDROID) | |
h.joshi
2015/01/06 05:09:33
Can we combine this with "SK_BUILD_FOR_UNIX"?
Xianzhu
2015/01/06 17:21:12
Done.
I wonder if the SK_CPU_BENDIAN section stil
| |
219 | |
220 // See comments about SK_USE_FREETYPE_EMBOLDEN for SK_BUILD_FOR_UNIX | |
221 #define SK_USE_FREETYPE_EMBOLDEN | |
222 | |
218 #endif | 223 #endif |
219 | 224 |
220 // The default crash macro writes to badbeef which can cause some strange | 225 // The default crash macro writes to badbeef which can cause some strange |
221 // problems. Instead, pipe this through to the logging function as a fatal | 226 // problems. Instead, pipe this through to the logging function as a fatal |
222 // assertion. | 227 // assertion. |
223 #define SK_CRASH() SkDebugf_FileLine(__FILE__, __LINE__, true, "SK_CRASH") | 228 #define SK_CRASH() SkDebugf_FileLine(__FILE__, __LINE__, true, "SK_CRASH") |
224 | 229 |
225 #ifndef SK_ATOMICS_PLATFORM_H | 230 #ifndef SK_ATOMICS_PLATFORM_H |
226 # if defined(SK_BUILD_FOR_WIN) | 231 # if defined(SK_BUILD_FOR_WIN) |
227 # define SK_ATOMICS_PLATFORM_H "third_party/skia/src/ports/SkAtomics_win.h" | 232 # define SK_ATOMICS_PLATFORM_H "third_party/skia/src/ports/SkAtomics_win.h" |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
270 #endif | 275 #endif |
271 | 276 |
272 // If this goes well, we can have Skia respect DYNAMIC_ANNOTATIONS_ENABLED direc tly. | 277 // If this goes well, we can have Skia respect DYNAMIC_ANNOTATIONS_ENABLED direc tly. |
273 #if DYNAMIC_ANNOTATIONS_ENABLED | 278 #if DYNAMIC_ANNOTATIONS_ENABLED |
274 # define SK_DYNAMIC_ANNOTATIONS_ENABLED 1 | 279 # define SK_DYNAMIC_ANNOTATIONS_ENABLED 1 |
275 #endif | 280 #endif |
276 | 281 |
277 // ===== End Chrome-specific definitions ===== | 282 // ===== End Chrome-specific definitions ===== |
278 | 283 |
279 #endif | 284 #endif |
OLD | NEW |