Index: src/core/SkColorSpaceXform.h |
diff --git a/src/core/SkColorSpaceXform.h b/src/core/SkColorSpaceXform.h |
index 6c996a9c09d30d51892a0dd79c705510ee6f3037..307cc709cd2d70f0dfd48a1c87448d1245113312 100644 |
--- a/src/core/SkColorSpaceXform.h |
+++ b/src/core/SkColorSpaceXform.h |
@@ -22,8 +22,7 @@ public: |
* @param dstSpace The destination color space. |
* |
*/ |
- static std::unique_ptr<SkColorSpaceXform> New(const sk_sp<SkColorSpace>& srcSpace, |
- const sk_sp<SkColorSpace>& dstSpace); |
+ static std::unique_ptr<SkColorSpaceXform> New(SkColorSpace* srcSpace, SkColorSpace* dstSpace); |
enum ColorFormat : uint8_t { |
kRGBA_8888_ColorFormat, |
@@ -79,8 +78,8 @@ public: |
static constexpr int kDstGammaTableSize = 1024; |
private: |
- SkColorSpaceXform_Base(const sk_sp<SkColorSpace>& srcSpace, const SkMatrix44& srcToDst, |
- const sk_sp<SkColorSpace>& dstSpace); |
+ SkColorSpaceXform_Base(SkColorSpace* srcSpace, const SkMatrix44& srcToDst, |
+ SkColorSpace* dstSpace); |
sk_sp<SkColorLookUpTable> fColorLUT; |
@@ -92,10 +91,10 @@ private: |
float fSrcToDst[16]; |
friend class SkColorSpaceXform; |
- friend std::unique_ptr<SkColorSpaceXform> SlowIdentityXform(const sk_sp<SkColorSpace>& space); |
+ friend std::unique_ptr<SkColorSpaceXform> SlowIdentityXform(SkColorSpace* space); |
}; |
// For testing. Bypasses opts for when src and dst color spaces are equal. |
-std::unique_ptr<SkColorSpaceXform> SlowIdentityXform(const sk_sp<SkColorSpace>& space); |
+std::unique_ptr<SkColorSpaceXform> SlowIdentityXform(SkColorSpace* space); |
#endif |