aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/effects
diff options
context:
space:
mode:
authorGravatar Robert Phillips <robertphillips@google.com>2018-01-16 10:54:33 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-01-16 17:02:44 +0000
commit20df20cfe822f613d6035baf5f5415a3a977e709 (patch)
treeab2e03c0d68c4f5d6eed0bf79c929747f7c5ddb1 /src/effects
parentf9bec208cd1a708b603340369530cf6eacfda244 (diff)
Fix FPs
The generated FPs have been broken for a while Change-Id: I32bcb3f8c5510049f65a44e226fa78149e01587f Reviewed-on: https://skia-review.googlesource.com/94901 Commit-Queue: Robert Phillips <robertphillips@google.com> Reviewed-by: Greg Daniel <egdaniel@google.com>
Diffstat (limited to 'src/effects')
-rw-r--r--src/effects/GrCircleBlurFragmentProcessor.cpp5
-rw-r--r--src/effects/GrCircleBlurFragmentProcessor.fp4
2 files changed, 4 insertions, 5 deletions
diff --git a/src/effects/GrCircleBlurFragmentProcessor.cpp b/src/effects/GrCircleBlurFragmentProcessor.cpp
index d414e66aeb..5579f8845b 100644
--- a/src/effects/GrCircleBlurFragmentProcessor.cpp
+++ b/src/effects/GrCircleBlurFragmentProcessor.cpp
@@ -227,9 +227,8 @@ static sk_sp<GrTextureProxy> create_profile_texture(GrProxyProvider* proxyProvid
create_circle_profile(sigma * scale, circleR * scale, kProfileTextureWidth));
}
- // This will be an exact match texture
- blurProfile = proxyProvider->createTextureProxy(texDesc, SkBudgeted::kYes,
- profile.get(), 0);
+ blurProfile =
+ proxyProvider->createTextureProxy(texDesc, SkBudgeted::kYes, profile.get(), 0);
if (!blurProfile) {
return nullptr;
}
diff --git a/src/effects/GrCircleBlurFragmentProcessor.fp b/src/effects/GrCircleBlurFragmentProcessor.fp
index d09103e73d..6fc2e9e5d0 100644
--- a/src/effects/GrCircleBlurFragmentProcessor.fp
+++ b/src/effects/GrCircleBlurFragmentProcessor.fp
@@ -242,8 +242,8 @@ uniform half4 circleData;
kProfileTextureWidth));
}
- blurProfile = GrSurfaceProxy::MakeDeferred(proxyProvider,
- texDesc, SkBudgeted::kYes, profile.get(), 0);
+ blurProfile = proxyProvider->createTextureProxy(texDesc, SkBudgeted::kYes,
+ profile.get(), 0);
if (!blurProfile) {
return nullptr;
}