diff options
author | Brian Salomon <bsalomon@google.com> | 2017-10-24 12:52:33 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-10-24 20:43:02 +0000 |
commit | f3569f0f6d312570c7344b345f8b3a03a892f751 (patch) | |
tree | 2da4cd0b0bac2b4b47d6ce91e7db53fa3b5dcad7 /src/core/SkSpecialSurface.cpp | |
parent | 6dd0d8a2659d5976fdd2b6528f787ac7f0b0005b (diff) |
Add GrColorSpaceInfo and use in place of GrRenderTargetContext in paint conversion.
This moves us closer to making GrAtlasTextContext and related classes usable without a GrRenderTargetContext.
Change-Id: Ife52d69a3f925e23da88043acb4d8dc9f672a025
Reviewed-on: https://skia-review.googlesource.com/63304
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'src/core/SkSpecialSurface.cpp')
-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 a1b1988ca7..ef78a3e0ad 100644 --- a/src/core/SkSpecialSurface.cpp +++ b/src/core/SkSpecialSurface.cpp @@ -147,12 +147,12 @@ public: return nullptr; } sk_sp<SkSpecialImage> tmp(SkSpecialImage::MakeDeferredFromGpu( - fCanvas->getGrContext(), - this->subset(), - kNeedNewImageUniqueID_SpecialImage, - fRenderTargetContext->asTextureProxyRef(), - fRenderTargetContext->refColorSpace(), - &this->props())); + fCanvas->getGrContext(), + this->subset(), + kNeedNewImageUniqueID_SpecialImage, + fRenderTargetContext->asTextureProxyRef(), + fRenderTargetContext->colorSpaceInfo().refColorSpace(), + &this->props())); fRenderTargetContext = nullptr; return tmp; } |