diff options
author | 2016-09-20 09:56:23 -0700 | |
---|---|---|
committer | 2016-09-20 09:56:23 -0700 | |
commit | 3e6cf87b5cf48323efbf146e734bbadc7efb5078 (patch) | |
tree | 4031fc33b029a5602d1b80a61569a3e3169051e9 /src/core | |
parent | 9d54afc38b171c01a03b34e773d154fcf83d97dc (diff) |
Cleanup some sRGB TODOs, mostly around setting GrPaint flags correctly
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2358433004
Review-Url: https://codereview.chromium.org/2358433004
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/SkSpecialSurface.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/core/SkSpecialSurface.cpp b/src/core/SkSpecialSurface.cpp index 4c482dfffb..85bb61a3e3 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; } |