| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2006 The Android Open Source Project | 2 * Copyright 2006 The Android Open Source Project |
| 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 #ifndef SkTypes_DEFINED | 8 #ifndef SkTypes_DEFINED |
| 9 #define SkTypes_DEFINED | 9 #define SkTypes_DEFINED |
| 10 | 10 |
| 11 // IWYU pragma: begin_exports |
| 11 #include "SkPreConfig.h" | 12 #include "SkPreConfig.h" |
| 12 #include "SkUserConfig.h" | 13 #include "SkUserConfig.h" |
| 13 #include "SkPostConfig.h" | 14 #include "SkPostConfig.h" |
| 15 #include <stddef.h> |
| 14 #include <stdint.h> | 16 #include <stdint.h> |
| 15 #include <sys/types.h> | 17 #include <sys/types.h> |
| 16 | 18 |
| 17 #if defined(SK_ARM_HAS_NEON) | 19 #if defined(SK_ARM_HAS_NEON) |
| 18 #include <arm_neon.h> | 20 #include <arm_neon.h> |
| 19 #elif SK_CPU_SSE_LEVEL >= SK_CPU_SSE_LEVEL_SSE2 | 21 #elif SK_CPU_SSE_LEVEL >= SK_CPU_SSE_LEVEL_SSE2 |
| 20 #include <immintrin.h> | 22 #include <immintrin.h> |
| 21 #endif | 23 #endif |
| 24 // IWYU pragma: end_exports |
| 25 |
| 26 #include <stdlib.h> |
| 27 #include <string.h> |
| 22 | 28 |
| 23 /** \file SkTypes.h | 29 /** \file SkTypes.h |
| 24 */ | 30 */ |
| 25 | 31 |
| 26 /** See SkGraphics::GetVersion() to retrieve these at runtime | 32 /** See SkGraphics::GetVersion() to retrieve these at runtime |
| 27 */ | 33 */ |
| 28 #define SKIA_VERSION_MAJOR 1 | 34 #define SKIA_VERSION_MAJOR 1 |
| 29 #define SKIA_VERSION_MINOR 0 | 35 #define SKIA_VERSION_MINOR 0 |
| 30 #define SKIA_VERSION_PATCH 0 | 36 #define SKIA_VERSION_PATCH 0 |
| 31 | 37 |
| (...skipping 643 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 675 private: | 681 private: |
| 676 void* fPtr; | 682 void* fPtr; |
| 677 size_t fSize; // can be larger than the requested size (see kReuse) | 683 size_t fSize; // can be larger than the requested size (see kReuse) |
| 678 uint32_t fStorage[(kSize + 3) >> 2]; | 684 uint32_t fStorage[(kSize + 3) >> 2]; |
| 679 }; | 685 }; |
| 680 // Can't guard the constructor because it's a template class. | 686 // Can't guard the constructor because it's a template class. |
| 681 | 687 |
| 682 #endif /* C++ */ | 688 #endif /* C++ */ |
| 683 | 689 |
| 684 #endif | 690 #endif |
| OLD | NEW |