Index: src/core/SkSpecialSurface.cpp |
diff --git a/src/core/SkSpecialSurface.cpp b/src/core/SkSpecialSurface.cpp |
index 4c482dfffb72ff72cdae014ed516265a9a336650..85bb61a3e3fe02f897cd18b7b7072b4a0f2950b0 100644 |
--- a/src/core/SkSpecialSurface.cpp |
+++ b/src/core/SkSpecialSurface.cpp |
@@ -137,12 +137,12 @@ public: |
~SkSpecialSurface_Gpu() override { } |
sk_sp<SkSpecialImage> onMakeImageSnapshot() override { |
- // TODO: Supply color space from fDrawContext, once it's present |
- sk_sp<SkSpecialImage> tmp(SkSpecialImage::MakeFromGpu(this->subset(), |
- kNeedNewImageUniqueID_SpecialImage, |
- fDrawContext->asTexture(), |
- nullptr, |
- &this->props())); |
+ sk_sp<SkSpecialImage> tmp(SkSpecialImage::MakeFromGpu( |
+ this->subset(), |
+ kNeedNewImageUniqueID_SpecialImage, |
+ fDrawContext->asTexture(), |
+ sk_ref_sp(fDrawContext->getColorSpace()), |
+ &this->props())); |
fDrawContext = nullptr; |
return tmp; |
} |