aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/effects/GrCircleBlurFragmentProcessor.cpp
diff options
context:
space:
mode:
authorGravatar Robert Phillips <robertphillips@google.com>2017-07-21 14:12:29 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-07-21 19:05:25 +0000
commitc686ce39f06d556d55befd290e0eb82851c7d33b (patch)
treed2d9cd464240a5a037ece559748ecedbb4293d0b /src/effects/GrCircleBlurFragmentProcessor.cpp
parent219f3622ba32a1cb6380212a2ec1947513fbfeb9 (diff)
Smaller fragment from "Reduce dependence on GrSurface's origin field"
TBR=bsalomon@google.com Change-Id: I996226ffaf84ca357740a6da9bb80a3b8febb379 Reviewed-on: https://skia-review.googlesource.com/25745 Reviewed-by: Robert Phillips <robertphillips@google.com> Commit-Queue: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'src/effects/GrCircleBlurFragmentProcessor.cpp')
-rw-r--r--src/effects/GrCircleBlurFragmentProcessor.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/effects/GrCircleBlurFragmentProcessor.cpp b/src/effects/GrCircleBlurFragmentProcessor.cpp
index 135b00e4d9..fb12afbaeb 100644
--- a/src/effects/GrCircleBlurFragmentProcessor.cpp
+++ b/src/effects/GrCircleBlurFragmentProcessor.cpp
@@ -178,6 +178,7 @@ static sk_sp<GrTextureProxy> create_profile_texture(GrResourceProvider* resource
if (!blurProfile) {
static constexpr int kProfileTextureWidth = 512;
GrSurfaceDesc texDesc;
+ texDesc.fOrigin = kTopLeft_GrSurfaceOrigin;
texDesc.fWidth = kProfileTextureWidth;
texDesc.fHeight = 1;
texDesc.fConfig = kAlpha_8_GrPixelConfig;
@@ -197,6 +198,7 @@ static sk_sp<GrTextureProxy> create_profile_texture(GrResourceProvider* resource
return nullptr;
}
+ SkASSERT(blurProfile->origin() == kTopLeft_GrSurfaceOrigin);
resourceProvider->assignUniqueKeyToProxy(key, blurProfile.get());
}