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 // IWYU pragma: private, include "SkTypes.h" | 8 // IWYU pragma: private, include "SkTypes.h" |
9 | 9 |
10 #ifndef SkPostConfig_DEFINED | 10 #ifndef SkPostConfig_DEFINED |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 | 100 |
101 /////////////////////////////////////////////////////////////////////////////// | 101 /////////////////////////////////////////////////////////////////////////////// |
102 | 102 |
103 // TODO(mdempsky): Move elsewhere as appropriate. | 103 // TODO(mdempsky): Move elsewhere as appropriate. |
104 #include <new> | 104 #include <new> |
105 | 105 |
106 | 106 |
107 /////////////////////////////////////////////////////////////////////////////// | 107 /////////////////////////////////////////////////////////////////////////////// |
108 | 108 |
109 #ifdef SK_BUILD_FOR_WIN | 109 #ifdef SK_BUILD_FOR_WIN |
110 # ifndef WIN32_LEAN_AND_MEAN | |
111 # define WIN32_LEAN_AND_MEAN | |
112 # define WIN32_IS_MEAN_WAS_LOCALLY_DEFINED | |
113 # endif | |
114 # ifndef NOMINMAX | |
115 # define NOMINMAX | |
116 # define NOMINMAX_WAS_LOCALLY_DEFINED | |
117 # endif | |
118 # | |
119 # include <windows.h> | |
120 # | |
121 # ifdef WIN32_IS_MEAN_WAS_LOCALLY_DEFINED | |
122 # undef WIN32_IS_MEAN_WAS_LOCALLY_DEFINED | |
123 # undef WIN32_LEAN_AND_MEAN | |
124 # endif | |
125 # ifdef NOMINMAX_WAS_LOCALLY_DEFINED | |
126 # undef NOMINMAX_WAS_LOCALLY_DEFINED | |
127 # undef NOMINMAX | |
128 # endif | |
129 # | |
130 # ifndef SK_A32_SHIFT | 110 # ifndef SK_A32_SHIFT |
131 # define SK_A32_SHIFT 24 | 111 # define SK_A32_SHIFT 24 |
132 # define SK_R32_SHIFT 16 | 112 # define SK_R32_SHIFT 16 |
133 # define SK_G32_SHIFT 8 | 113 # define SK_G32_SHIFT 8 |
134 # define SK_B32_SHIFT 0 | 114 # define SK_B32_SHIFT 0 |
135 # endif | 115 # endif |
136 # | 116 # |
137 #endif | 117 #endif |
138 | 118 |
139 #if defined(GOOGLE3) | 119 #if defined(GOOGLE3) |
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
354 | 334 |
355 #ifndef SK_HISTOGRAM_BOOLEAN | 335 #ifndef SK_HISTOGRAM_BOOLEAN |
356 # define SK_HISTOGRAM_BOOLEAN(name, value) | 336 # define SK_HISTOGRAM_BOOLEAN(name, value) |
357 #endif | 337 #endif |
358 | 338 |
359 #ifndef SK_HISTOGRAM_ENUMERATION | 339 #ifndef SK_HISTOGRAM_ENUMERATION |
360 # define SK_HISTOGRAM_ENUMERATION(name, value, boundary_value) | 340 # define SK_HISTOGRAM_ENUMERATION(name, value, boundary_value) |
361 #endif | 341 #endif |
362 | 342 |
363 #endif // SkPostConfig_DEFINED | 343 #endif // SkPostConfig_DEFINED |
OLD | NEW |