OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2006 The Android Open Source Project | 3 * Copyright 2006 The Android Open Source Project |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 | 8 |
9 | 9 |
10 #include "SkGraphics.h" | 10 #include "SkGraphics.h" |
(...skipping 10 matching lines...) Expand all Loading... |
21 #include "SkRefCnt.h" | 21 #include "SkRefCnt.h" |
22 #include "SkRTConf.h" | 22 #include "SkRTConf.h" |
23 #include "SkScalerContext.h" | 23 #include "SkScalerContext.h" |
24 #include "SkShader.h" | 24 #include "SkShader.h" |
25 #include "SkStream.h" | 25 #include "SkStream.h" |
26 #include "SkTSearch.h" | 26 #include "SkTSearch.h" |
27 #include "SkTime.h" | 27 #include "SkTime.h" |
28 #include "SkUtils.h" | 28 #include "SkUtils.h" |
29 #include "SkXfermode.h" | 29 #include "SkXfermode.h" |
30 | 30 |
| 31 #include <stdlib.h> |
| 32 |
31 void SkGraphics::GetVersion(int32_t* major, int32_t* minor, int32_t* patch) { | 33 void SkGraphics::GetVersion(int32_t* major, int32_t* minor, int32_t* patch) { |
32 if (major) { | 34 if (major) { |
33 *major = SKIA_VERSION_MAJOR; | 35 *major = SKIA_VERSION_MAJOR; |
34 } | 36 } |
35 if (minor) { | 37 if (minor) { |
36 *minor = SKIA_VERSION_MINOR; | 38 *minor = SKIA_VERSION_MINOR; |
37 } | 39 } |
38 if (patch) { | 40 if (patch) { |
39 *patch = SKIA_VERSION_PATCH; | 41 *patch = SKIA_VERSION_PATCH; |
40 } | 42 } |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 if (nextEqual) { | 102 if (nextEqual) { |
101 val = (size_t) atoi(nextEqual + 1); | 103 val = (size_t) atoi(nextEqual + 1); |
102 } | 104 } |
103 (gFlags[i].fFunc)(val); | 105 (gFlags[i].fFunc)(val); |
104 break; | 106 break; |
105 } | 107 } |
106 } | 108 } |
107 flags = nextSemi + 1; | 109 flags = nextSemi + 1; |
108 } while (nextSemi); | 110 } while (nextSemi); |
109 } | 111 } |
OLD | NEW |