Make GrFragmentProcessor be non-refcounted and use std::unique_ptr.
Change-Id: I985e54a071338e99292a5aa2f42c92bc115b4008
Reviewed-on: https://skia-review.googlesource.com/32760
Commit-Queue: Brian Salomon <bsalomon@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
diff --git a/include/private/GrTypesPriv.h b/include/private/GrTypesPriv.h
index 05c1341..2bed765 100644
--- a/include/private/GrTypesPriv.h
+++ b/include/private/GrTypesPriv.h
@@ -603,9 +603,10 @@
kOwned = true
};
-template <typename T> T * const * sk_sp_address_as_pointer_address(sk_sp<T> const * sp) {
- static_assert(sizeof(T*) == sizeof(sk_sp<T>), "sk_sp not expected size.");
- return reinterpret_cast<T * const *>(sp);
+template <typename T>
+T* const* unique_ptr_address_as_pointer_address(std::unique_ptr<T> const* up) {
+ static_assert(sizeof(T*) == sizeof(std::unique_ptr<T>), "unique_ptr not expected size.");
+ return reinterpret_cast<T* const*>(up);
}
/*