Index: src/effects/gradients/SkSweepGradient.cpp |
diff --git a/src/effects/gradients/SkSweepGradient.cpp b/src/effects/gradients/SkSweepGradient.cpp |
index 58bb8aa8ed54fcdbbbe7d36420acb76cb4f535a7..9ca207a5d5caafc39ef103222078c0ea97df325d 100644 |
--- a/src/effects/gradients/SkSweepGradient.cpp |
+++ b/src/effects/gradients/SkSweepGradient.cpp |
@@ -35,8 +35,9 @@ sk_sp<SkFlattenable> SkSweepGradient::CreateProc(SkReadBuffer& buffer) { |
return nullptr; |
} |
const SkPoint center = buffer.readPoint(); |
- return SkGradientShader::MakeSweep(center.x(), center.y(), desc.fColors, desc.fPos, |
- desc.fCount, desc.fGradFlags, desc.fLocalMatrix); |
+ return SkGradientShader::MakeSweep(center.x(), center.y(), desc.fColors, |
+ std::move(desc.fColorSpace), desc.fPos, desc.fCount, |
+ desc.fGradFlags, desc.fLocalMatrix); |
} |
void SkSweepGradient::flatten(SkWriteBuffer& buffer) const { |