| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2013 Google Inc. | 2 * Copyright 2013 Google Inc. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 #ifndef GrTypesPriv_DEFINED | 8 #ifndef GrTypesPriv_DEFINED |
| 9 #define GrTypesPriv_DEFINED | 9 #define GrTypesPriv_DEFINED |
| 10 | 10 |
| (...skipping 464 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 475 kBorrowed = false, | 475 kBorrowed = false, |
| 476 /** Holder destroys the backend object. */ | 476 /** Holder destroys the backend object. */ |
| 477 kOwned = true | 477 kOwned = true |
| 478 }; | 478 }; |
| 479 | 479 |
| 480 template <typename T> T * const * sk_sp_address_as_pointer_address(sk_sp<T> cons
t * sp) { | 480 template <typename T> T * const * sk_sp_address_as_pointer_address(sk_sp<T> cons
t * sp) { |
| 481 static_assert(sizeof(T*) == sizeof(sk_sp<T>), "sk_sp not expected size."); | 481 static_assert(sizeof(T*) == sizeof(sk_sp<T>), "sk_sp not expected size."); |
| 482 return reinterpret_cast<T * const *>(sp); | 482 return reinterpret_cast<T * const *>(sp); |
| 483 } | 483 } |
| 484 | 484 |
| 485 /* |
| 486 * Object for CPU-GPU synchronization |
| 487 */ |
| 488 typedef intptr_t GrFence; |
| 489 |
| 485 #endif | 490 #endif |
| OLD | NEW |