diff options
author | joshualitt <joshualitt@chromium.org> | 2014-12-17 15:50:11 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-12-17 15:50:11 -0800 |
commit | 5531d51ce7426bdae7563547326fcf0bf926a083 (patch) | |
tree | 111625235b55e016756b32d9904d6d3bf059c73c /src/effects/SkGpuBlurUtils.cpp | |
parent | 1b28a3a4890e3b84b43181b3fe3690ac565930dc (diff) |
remove view matrix from context
BUG=skia:
Review URL: https://codereview.chromium.org/808703006
Diffstat (limited to 'src/effects/SkGpuBlurUtils.cpp')
-rw-r--r-- | src/effects/SkGpuBlurUtils.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/effects/SkGpuBlurUtils.cpp b/src/effects/SkGpuBlurUtils.cpp index 8c2e1ce433..a58972aba1 100644 --- a/src/effects/SkGpuBlurUtils.cpp +++ b/src/effects/SkGpuBlurUtils.cpp @@ -58,7 +58,7 @@ static void convolve_gaussian_1d(GrContext* context, texture, direction, radius, sigma, useBounds, bounds)); paint.reset(); paint.addColorProcessor(conv); - context->drawRectToRect(paint, dstRect, srcRect); + context->drawRectToRect(paint, SkMatrix::I(), dstRect, srcRect); } static void convolve_gaussian_2d(GrContext* context, @@ -81,7 +81,7 @@ static void convolve_gaussian_2d(GrContext* context, true, sigmaX, sigmaY)); paint.reset(); paint.addColorProcessor(conv); - context->drawRectToRect(paint, dstRect, srcRect); + context->drawRectToRect(paint, SkMatrix::I(), dstRect, srcRect); } static void convolve_gaussian(GrContext* context, @@ -150,9 +150,6 @@ GrTexture* GaussianBlur(GrContext* context, GrContext::AutoRenderTarget art(context); - GrContext::AutoMatrix am; - am.setIdentity(context); - SkIRect clearRect; int scaleFactorX, radiusX; int scaleFactorY, radiusY; @@ -220,7 +217,7 @@ GrTexture* GaussianBlur(GrContext* context, } scale_rect(&dstRect, i < scaleFactorX ? 0.5f : 1.0f, i < scaleFactorY ? 0.5f : 1.0f); - context->drawRectToRect(paint, dstRect, srcRect); + context->drawRectToRect(paint, SkMatrix::I(), dstRect, srcRect); srcRect = dstRect; srcTexture = dstTexture; SkTSwap(dstTexture, tempTexture); @@ -299,7 +296,7 @@ GrTexture* GaussianBlur(GrContext* context, SkRect dstRect(srcRect); scale_rect(&dstRect, (float) scaleFactorX, (float) scaleFactorY); - context->drawRectToRect(paint, dstRect, srcRect); + context->drawRectToRect(paint, SkMatrix::I(), dstRect, srcRect); srcRect = dstRect; srcTexture = dstTexture; SkTSwap(dstTexture, tempTexture); |