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