aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrBlurUtils.cpp
diff options
context:
space:
mode:
authorGravatar brianosman <brianosman@google.com>2016-07-25 12:31:51 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-07-25 12:31:51 -0700
commit8fe485b793f6b3c286700988138e1395b0d33487 (patch)
treed133e684291ea67085f486c23a2e237a5cb8f6a1 /src/gpu/GrBlurUtils.cpp
parent20a272d024572efa50afb436c4770341abe9e1c1 (diff)
Just pass the draw context to paint conversion
Concentrate on using draw context functionality to answer gamma and color related queries in more places. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2182603003 Review-Url: https://codereview.chromium.org/2182603003
Diffstat (limited to 'src/gpu/GrBlurUtils.cpp')
-rw-r--r--src/gpu/GrBlurUtils.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gpu/GrBlurUtils.cpp b/src/gpu/GrBlurUtils.cpp
index 27d7dffad9..48aa28be70 100644
--- a/src/gpu/GrBlurUtils.cpp
+++ b/src/gpu/GrBlurUtils.cpp
@@ -287,8 +287,7 @@ void GrBlurUtils::drawPathWithMaskFilter(GrContext* context,
SkDEBUGCODE(prePathMatrix = (const SkMatrix*)0x50FF8001;)
GrPaint grPaint;
- if (!SkPaintToGrPaint(context, paint, viewMatrix, drawContext->isGammaCorrect(),
- drawContext->getColorSpace(), &grPaint)) {
+ if (!SkPaintToGrPaint(context, drawContext, paint, viewMatrix, &grPaint)) {
return;
}