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

Side by Side Diff: include/core/SkTypes.h

Issue 1313203003: Remove include of stdlib.h from SkTypes.h. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Clean up qsort conversion. Created 5 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 | « dm/DM.cpp ('k') | samplecode/SamplePath.cpp » ('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 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 // IWYU pragma: begin_exports
12 #include "SkPreConfig.h" 12 #include "SkPreConfig.h"
13 #include "SkUserConfig.h" 13 #include "SkUserConfig.h"
14 #include "SkPostConfig.h" 14 #include "SkPostConfig.h"
15 #include <stddef.h> 15 #include <stddef.h>
16 #include <stdint.h> 16 #include <stdint.h>
17 #include <sys/types.h> 17 #include <sys/types.h>
18 18
19 #if defined(SK_ARM_HAS_NEON) 19 #if defined(SK_ARM_HAS_NEON)
20 #include <arm_neon.h> 20 #include <arm_neon.h>
21 #elif SK_CPU_SSE_LEVEL >= SK_CPU_SSE_LEVEL_SSE2 21 #elif SK_CPU_SSE_LEVEL >= SK_CPU_SSE_LEVEL_SSE2
22 #include <immintrin.h> 22 #include <immintrin.h>
23 #endif 23 #endif
24 // IWYU pragma: end_exports 24 // IWYU pragma: end_exports
25 25
26 #include <stdlib.h>
27 #include <string.h> 26 #include <string.h>
28 27
29 /** \file SkTypes.h 28 /** \file SkTypes.h
30 */ 29 */
31 30
32 /** See SkGraphics::GetVersion() to retrieve these at runtime 31 /** See SkGraphics::GetVersion() to retrieve these at runtime
33 */ 32 */
34 #define SKIA_VERSION_MAJOR 1 33 #define SKIA_VERSION_MAJOR 1
35 #define SKIA_VERSION_MINOR 0 34 #define SKIA_VERSION_MINOR 0
36 #define SKIA_VERSION_PATCH 0 35 #define SKIA_VERSION_PATCH 0
(...skipping 628 matching lines...) Expand 10 before | Expand all | Expand 10 after
665 private: 664 private:
666 void* fPtr; 665 void* fPtr;
667 size_t fSize; // can be larger than the requested size (see kReuse) 666 size_t fSize; // can be larger than the requested size (see kReuse)
668 uint32_t fStorage[(kSize + 3) >> 2]; 667 uint32_t fStorage[(kSize + 3) >> 2];
669 }; 668 };
670 // Can't guard the constructor because it's a template class. 669 // Can't guard the constructor because it's a template class.
671 670
672 #endif /* C++ */ 671 #endif /* C++ */
673 672
674 #endif 673 #endif
OLDNEW
« no previous file with comments | « dm/DM.cpp ('k') | samplecode/SamplePath.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698