diff options
author | 2017-10-24 12:52:33 -0400 | |
---|---|---|
committer | 2017-10-24 20:43:02 +0000 | |
commit | f3569f0f6d312570c7344b345f8b3a03a892f751 (patch) | |
tree | 2da4cd0b0bac2b4b47d6ce91e7db53fa3b5dcad7 /src/gpu/GrBlurUtils.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/gpu/GrBlurUtils.cpp')
-rw-r--r-- | src/gpu/GrBlurUtils.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gpu/GrBlurUtils.cpp b/src/gpu/GrBlurUtils.cpp index c0856735b8..68fd9f3899 100644 --- a/src/gpu/GrBlurUtils.cpp +++ b/src/gpu/GrBlurUtils.cpp @@ -291,7 +291,8 @@ void GrBlurUtils::drawPathWithMaskFilter(GrContext* context, SkDEBUGCODE(prePathMatrix = (const SkMatrix*)0x50FF8001;) GrPaint grPaint; - if (!SkPaintToGrPaint(context, renderTargetContext, paint, viewMatrix, &grPaint)) { + if (!SkPaintToGrPaint(context, renderTargetContext->colorSpaceInfo(), paint, viewMatrix, + &grPaint)) { return; } GrAA aa = GrBoolToAA(paint.isAntiAlias()); |