| 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 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 242 # else | 242 # else |
| 243 # define SK_MUTEX_PLATFORM_H "third_party/skia/src/ports/SkMutex_pthread.h" | 243 # define SK_MUTEX_PLATFORM_H "third_party/skia/src/ports/SkMutex_pthread.h" |
| 244 # endif | 244 # endif |
| 245 #endif | 245 #endif |
| 246 | 246 |
| 247 // These flags are no longer defined in Skia, but we have them (temporarily) | 247 // These flags are no longer defined in Skia, but we have them (temporarily) |
| 248 // until we update our call-sites (typically these are for API changes). | 248 // until we update our call-sites (typically these are for API changes). |
| 249 // | 249 // |
| 250 // Remove these as we update our sites. | 250 // Remove these as we update our sites. |
| 251 // | 251 // |
| 252 #ifndef SK_SUPPORT_LEGACY_GETTOPDEVICE | 252 #ifndef SK_SUPPORT_LEGACY_GETTOPDEVICE |
| 253 #define SK_SUPPORT_LEGACY_GETTOPDEVICE | 253 # define SK_SUPPORT_LEGACY_GETTOPDEVICE |
| 254 #endif | 254 #endif |
| 255 | 255 |
| 256 #ifndef SK_SUPPORT_LEGACY_GETDEVICE | 256 #ifndef SK_SUPPORT_LEGACY_GETDEVICE |
| 257 #define SK_SUPPORT_LEGACY_GETDEVICE | 257 # define SK_SUPPORT_LEGACY_GETDEVICE |
| 258 #endif | 258 #endif |
| 259 | 259 |
| 260 #ifndef SK_SUPPORT_LEGACY_PUBLIC_IMAGEINFO_FIELDS |
| 261 # define SK_SUPPORT_LEGACY_PUBLIC_IMAGEINFO_FIELDS |
| 262 #endif |
| 263 |
| 264 #ifndef SK_IGNORE_PROPER_FRACTIONAL_SCALING |
| 265 # define SK_IGNORE_PROPER_FRACTIONAL_SCALING |
| 266 #endif |
| 267 |
| 268 #ifndef SK_SUPPORT_LEGACY_PICTURE_CLONE |
| 269 # define SK_SUPPORT_LEGACY_PICTURE_CLONE |
| 270 #endif |
| 271 |
| 272 #ifndef SK_IGNORE_ETC1_SUPPORT |
| 273 # define SK_IGNORE_ETC1_SUPPORT |
| 274 #endif |
| 275 |
| 276 #ifndef SK_IGNORE_GPU_DITHER |
| 277 # define SK_IGNORE_GPU_DITHER |
| 278 #endif |
| 279 |
| 280 #ifndef SK_SUPPORT_LEGACY_IMAGECACHE_NAME |
| 281 # define SK_SUPPORT_LEGACY_IMAGECACHE_NAME |
| 282 #endif |
| 283 |
| 284 #ifndef SK_LEGACY_PICTURE_SIZE_API |
| 285 # define SK_LEGACY_PICTURE_SIZE_API |
| 286 #endif |
| 287 |
| 288 #ifndef SK_LEGACY_PICTURE_DRAW_API |
| 289 # define SK_LEGACY_PICTURE_DRAW_API |
| 290 #endif |
| 291 |
| 292 |
| 260 // Turns SkPicture::clone() into a simple "return SkRef(this);" as a way to | 293 // Turns SkPicture::clone() into a simple "return SkRef(this);" as a way to |
| 261 // test the threadsafety of SkPicture playback. | 294 // test the threadsafety of SkPicture playback. |
| 262 #define SK_PICTURE_CLONE_NOOP 1 | 295 #define SK_PICTURE_CLONE_NOOP 1 |
| 263 | 296 |
| 264 // Turns on new (nicer, hopefully faster) SkPicture backend. | 297 // Turns on new (nicer, hopefully faster) SkPicture backend. |
| 265 #define SK_PICTURE_USE_SK_RECORD 1 | 298 #define SK_PICTURE_USE_SK_RECORD 1 |
| 266 | 299 |
| 267 // Run a few optimization passes over the SkRecord after recording. | 300 // Run a few optimization passes over the SkRecord after recording. |
| 268 #define SK_PICTURE_OPTIMIZE_SK_RECORD 1 | 301 #define SK_PICTURE_OPTIMIZE_SK_RECORD 1 |
| 269 | 302 |
| 270 // ===== End Chrome-specific definitions ===== | 303 // ===== End Chrome-specific definitions ===== |
| 271 | 304 |
| 272 #endif | 305 #endif |
| OLD | NEW |