Index: src/effects/SkXfermodeImageFilter.cpp |
diff --git a/src/effects/SkXfermodeImageFilter.cpp b/src/effects/SkXfermodeImageFilter.cpp |
index 345e6e504a9a00c523ca672b2ff4ba2e4978dfd6..010253861d502b90bccf7677755135a61b38cece 100644 |
--- a/src/effects/SkXfermodeImageFilter.cpp |
+++ b/src/effects/SkXfermodeImageFilter.cpp |
@@ -252,9 +252,11 @@ sk_sp<SkSpecialImage> SkXfermodeImageFilter::filterImageGPU(SkSpecialImage* sour |
matrix.setTranslate(SkIntToScalar(-bounds.left()), SkIntToScalar(-bounds.top())); |
drawContext->drawRect(GrNoClip(), paint, matrix, SkRect::Make(bounds)); |
+ // TODO: Get the colorSpace from the drawContext (once it has one) |
return SkSpecialImage::MakeFromGpu(SkIRect::MakeWH(bounds.width(), bounds.height()), |
kNeedNewImageUniqueID_SpecialImage, |
- drawContext->asTexture()); |
+ drawContext->asTexture(), |
+ sk_ref_sp(source->getColorSpace())); |
} |
#endif |