aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/SkGr.cpp
diff options
context:
space:
mode:
authorGravatar Mike Reed <reed@google.com>2018-01-19 11:43:34 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-01-19 17:18:13 +0000
commite3429e62b0d020b27de3daa55893953eff581c4f (patch)
treeb75c1983db5f376305d1767c0f1c844136cb4574 /src/gpu/SkGr.cpp
parent59a1df225d1229f7aedd58cab4337892e390574e (diff)
rename inner AsFPArgs to stand-alone GrFPArgs
This prepares us to share this with other effects (most notably maskfilters) Bug: skia: Change-Id: I12530fdf10c4e5f2a9ab6d394bf9e87c54ea60c4 Reviewed-on: https://skia-review.googlesource.com/97062 Commit-Queue: Mike Reed <reed@google.com> Reviewed-by: Greg Daniel <egdaniel@google.com>
Diffstat (limited to 'src/gpu/SkGr.cpp')
-rw-r--r--src/gpu/SkGr.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gpu/SkGr.cpp b/src/gpu/SkGr.cpp
index 8faa9d4557..58dbb10df0 100644
--- a/src/gpu/SkGr.cpp
+++ b/src/gpu/SkGr.cpp
@@ -382,7 +382,7 @@ static inline bool skpaint_to_grpaint_impl(GrContext* context,
if (shaderProcessor) {
shaderFP = std::move(*shaderProcessor);
} else if (const auto* shader = as_SB(skPaint.getShader())) {
- shaderFP = shader->asFragmentProcessor(SkShaderBase::AsFPArgs(
+ shaderFP = shader->asFragmentProcessor(GrFPArgs(
context, &viewM, nullptr, skPaint.getFilterQuality(), &colorSpaceInfo));
}
}
@@ -559,7 +559,7 @@ bool SkPaintToGrPaintWithTexture(GrContext* context,
std::unique_ptr<GrFragmentProcessor> shaderFP;
if (textureIsAlphaOnly) {
if (const auto* shader = as_SB(paint.getShader())) {
- shaderFP = shader->asFragmentProcessor(SkShaderBase::AsFPArgs(
+ shaderFP = shader->asFragmentProcessor(GrFPArgs(
context, &viewM, nullptr, paint.getFilterQuality(), &colorSpaceInfo));
if (!shaderFP) {
return false;