| Index: src/effects/SkMorphologyImageFilter.cpp
|
| diff --git a/src/effects/SkMorphologyImageFilter.cpp b/src/effects/SkMorphologyImageFilter.cpp
|
| index 4ac65686ff5838d08a92f5804501ab7a842da819..5d4b58c880fdf4911eac7ddb87ba6ae1b4a4fd52 100644
|
| --- a/src/effects/SkMorphologyImageFilter.cpp
|
| +++ b/src/effects/SkMorphologyImageFilter.cpp
|
| @@ -519,9 +519,11 @@ static sk_sp<SkSpecialImage> apply_morphology(GrContext* context,
|
| srcTexture = dstDrawContext->asTexture();
|
| }
|
|
|
| + // TODO: Get the colorSpace from the drawContext (once it has one)
|
| return SkSpecialImage::MakeFromGpu(SkIRect::MakeWH(rect.width(), rect.height()),
|
| kNeedNewImageUniqueID_SpecialImage,
|
| - std::move(srcTexture), &input->props());
|
| + std::move(srcTexture), sk_ref_sp(input->getColorSpace()),
|
| + &input->props());
|
| }
|
| #endif
|
|
|
|
|