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 |
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
250 #endif | 250 #endif |
251 | 251 |
252 #ifndef SK_SUPPORT_LEGACY_GETDEVICE | 252 #ifndef SK_SUPPORT_LEGACY_GETDEVICE |
253 # define SK_SUPPORT_LEGACY_GETDEVICE | 253 # define SK_SUPPORT_LEGACY_GETDEVICE |
254 #endif | 254 #endif |
255 | 255 |
256 #ifndef SK_SUPPORT_LEGACY_PUBLIC_IMAGEINFO_FIELDS | 256 #ifndef SK_SUPPORT_LEGACY_PUBLIC_IMAGEINFO_FIELDS |
257 # define SK_SUPPORT_LEGACY_PUBLIC_IMAGEINFO_FIELDS | 257 # define SK_SUPPORT_LEGACY_PUBLIC_IMAGEINFO_FIELDS |
258 #endif | 258 #endif |
259 | 259 |
260 #ifndef SK_SUPPORT_LEGACY_PICTURE_CLONE | |
261 # define SK_SUPPORT_LEGACY_PICTURE_CLONE | |
262 #endif | |
263 | |
264 #ifndef SK_IGNORE_ETC1_SUPPORT | 260 #ifndef SK_IGNORE_ETC1_SUPPORT |
265 # define SK_IGNORE_ETC1_SUPPORT | 261 # define SK_IGNORE_ETC1_SUPPORT |
266 #endif | 262 #endif |
267 | 263 |
268 #ifndef SK_IGNORE_GPU_DITHER | 264 #ifndef SK_IGNORE_GPU_DITHER |
269 # define SK_IGNORE_GPU_DITHER | 265 # define SK_IGNORE_GPU_DITHER |
270 #endif | 266 #endif |
271 | 267 |
272 #ifndef SK_LEGACY_PICTURE_SIZE_API | |
273 # define SK_LEGACY_PICTURE_SIZE_API | |
274 #endif | |
275 | |
276 #ifndef SK_LEGACY_PICTURE_DRAW_API | 268 #ifndef SK_LEGACY_PICTURE_DRAW_API |
277 # define SK_LEGACY_PICTURE_DRAW_API | 269 # define SK_LEGACY_PICTURE_DRAW_API |
278 #endif | 270 #endif |
279 | 271 |
280 | 272 // If this goes well, we can have Skia respect DYNAMIC_ANNOTATIONS_ENABLED direc
tly. |
281 // Turns SkPicture::clone() into a simple "return SkRef(this);" as a way to | 273 #if DYNAMIC_ANNOTATIONS_ENABLED |
282 // test the threadsafety of SkPicture playback. | 274 # define SK_DYNAMIC_ANNOTATIONS_ENABLED 1 |
283 #define SK_PICTURE_CLONE_NOOP 1 | 275 #endif |
284 | |
285 // Turns on new (nicer, hopefully faster) SkPicture backend. | |
286 #define SK_PICTURE_USE_SK_RECORD 1 | |
287 | |
288 // Run a few optimization passes over the SkRecord after recording. | |
289 #define SK_PICTURE_OPTIMIZE_SK_RECORD 1 | |
290 | 276 |
291 // ===== End Chrome-specific definitions ===== | 277 // ===== End Chrome-specific definitions ===== |
292 | 278 |
293 #endif | 279 #endif |
OLD | NEW |