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 |
11 * distributed under the License is distributed on an "AS IS" BASIS, | 11 * distributed under the License is distributed on an "AS IS" BASIS, |
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
13 * See the License for the specific language governing permissions and | 13 * See the License for the specific language governing permissions and |
14 * limitations under the License. | 14 * limitations under the License. |
15 */ | 15 */ |
16 | 16 |
17 #ifndef SkUserConfig_DEFINED | 17 #ifndef SkUserConfig_DEFINED |
18 #define SkUserConfig_DEFINED | 18 #define SkUserConfig_DEFINED |
19 | 19 |
20 // Turns SkPicture::clone() into a simple "return SkRef(this);" as a way to | |
21 // test the threadsafety of SkPicture playback. | |
22 #define SK_PICTURE_CLONE_NOOP 1 | |
23 | |
24 /* SkTypes.h, the root of the public header files, does the following trick: | 20 /* SkTypes.h, the root of the public header files, does the following trick: |
25 | 21 |
26 #include <SkPreConfig.h> | 22 #include <SkPreConfig.h> |
27 #include <SkUserConfig.h> | 23 #include <SkUserConfig.h> |
28 #include <SkPostConfig.h> | 24 #include <SkPostConfig.h> |
29 | 25 |
30 SkPreConfig.h runs first, and it is responsible for initializing certain | 26 SkPreConfig.h runs first, and it is responsible for initializing certain |
31 skia defines. | 27 skia defines. |
32 | 28 |
33 SkPostConfig.h runs last, and its job is to just check that the final | 29 SkPostConfig.h runs last, and its job is to just check that the final |
(...skipping 223 matching lines...) Loading... |
257 #define SK_SUPPORT_LEGACY_GETTOPDEVICE | 253 #define SK_SUPPORT_LEGACY_GETTOPDEVICE |
258 #endif | 254 #endif |
259 | 255 |
260 #ifndef SK_SUPPORT_LEGACY_GETDEVICE | 256 #ifndef SK_SUPPORT_LEGACY_GETDEVICE |
261 #define SK_SUPPORT_LEGACY_GETDEVICE | 257 #define SK_SUPPORT_LEGACY_GETDEVICE |
262 #endif | 258 #endif |
263 | 259 |
264 // ===== End Chrome-specific definitions ===== | 260 // ===== End Chrome-specific definitions ===== |
265 | 261 |
266 #endif | 262 #endif |
OLD | NEW |