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 |
20 /* SkTypes.h, the root of the public header files, does the following trick: | 24 /* SkTypes.h, the root of the public header files, does the following trick: |
21 | 25 |
22 #include <SkPreConfig.h> | 26 #include <SkPreConfig.h> |
23 #include <SkUserConfig.h> | 27 #include <SkUserConfig.h> |
24 #include <SkPostConfig.h> | 28 #include <SkPostConfig.h> |
25 | 29 |
26 SkPreConfig.h runs first, and it is responsible for initializing certain | 30 SkPreConfig.h runs first, and it is responsible for initializing certain |
27 skia defines. | 31 skia defines. |
28 | 32 |
29 SkPostConfig.h runs last, and its job is to just check that the final | 33 SkPostConfig.h runs last, and its job is to just check that the final |
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
254 #endif | 258 #endif |
255 | 259 |
256 #ifndef SK_SUPPORT_LEGACY_GETDEVICE | 260 #ifndef SK_SUPPORT_LEGACY_GETDEVICE |
257 #define SK_SUPPORT_LEGACY_GETDEVICE | 261 #define SK_SUPPORT_LEGACY_GETDEVICE |
258 #endif | 262 #endif |
259 | 263 |
260 #ifndef SK_SUPPORT_LEGACY_ALLOCPIXELS_BOOL | 264 #ifndef SK_SUPPORT_LEGACY_ALLOCPIXELS_BOOL |
261 #define SK_SUPPORT_LEGACY_ALLOCPIXELS_BOOL | 265 #define SK_SUPPORT_LEGACY_ALLOCPIXELS_BOOL |
262 #endif | 266 #endif |
263 | 267 |
264 // Turns SkPicture::clone() into a simple "return SkRef(this);" as a way to | |
265 // test the threadsafety of SkPicture playback. | |
266 #define SK_PICTURE_CLONE_NOOP 1 | |
267 | |
268 // Turns on new (nicer, hopefully faster) SkPicture backend. | |
269 #define SK_PICTURE_USE_SK_RECORD 1 | |
270 | |
271 // ===== End Chrome-specific definitions ===== | 268 // ===== End Chrome-specific definitions ===== |
272 | 269 |
273 #endif | 270 #endif |
OLD | NEW |