diff options
author | 2015-10-17 07:43:27 -0700 | |
---|---|---|
committer | 2015-10-17 07:43:27 -0700 | |
commit | 77a2e52c7d5c77de73ecab5fec79072ee4460706 (patch) | |
tree | 165c7d8957b1e8415ecd98b57016db576e5b14a2 /src/effects | |
parent | 1ed348aea37e34dd0ad3bde33cd28bcbd1c2a587 (diff) |
Remove DrawingMgr shims from GrContext
BUG=skia:4094
Review URL: https://codereview.chromium.org/1413673002
Diffstat (limited to 'src/effects')
-rw-r--r-- | src/effects/SkGpuBlurUtils.cpp | 6 | ||||
-rw-r--r-- | src/effects/SkMorphologyImageFilter.cpp | 6 |
2 files changed, 7 insertions, 5 deletions
diff --git a/src/effects/SkGpuBlurUtils.cpp b/src/effects/SkGpuBlurUtils.cpp index ec37505d3e..f0c10c2871 100644 --- a/src/effects/SkGpuBlurUtils.cpp +++ b/src/effects/SkGpuBlurUtils.cpp @@ -275,7 +275,7 @@ GrTexture* GaussianBlur(GrContext* context, SkRect dstRect = SkRect::MakeWH(srcRect.width(), srcRect.height()); SkAutoTUnref<GrDrawContext> dstDrawContext( - context->drawContext(dstTexture->asRenderTarget())); + context->drawContext(dstTexture->asRenderTarget())); if (!dstDrawContext) { return nullptr; } @@ -309,7 +309,7 @@ GrTexture* GaussianBlur(GrContext* context, SkRect dstRect = SkRect::MakeWH(srcRect.width(), srcRect.height()); SkAutoTUnref<GrDrawContext> dstDrawContext( - context->drawContext(dstTexture->asRenderTarget())); + context->drawContext(dstTexture->asRenderTarget())); if (!dstDrawContext) { return nullptr; } @@ -347,7 +347,7 @@ GrTexture* GaussianBlur(GrContext* context, scale_rect(&dstRect, (float) scaleFactorX, (float) scaleFactorY); SkAutoTUnref<GrDrawContext> dstDrawContext( - context->drawContext(dstTexture->asRenderTarget())); + context->drawContext(dstTexture->asRenderTarget())); if (!dstDrawContext) { return nullptr; } diff --git a/src/effects/SkMorphologyImageFilter.cpp b/src/effects/SkMorphologyImageFilter.cpp index 6f6a1e15f7..416bd23567 100644 --- a/src/effects/SkMorphologyImageFilter.cpp +++ b/src/effects/SkMorphologyImageFilter.cpp @@ -564,7 +564,8 @@ bool apply_morphology(const SkBitmap& input, if (nullptr == scratch) { return false; } - SkAutoTUnref<GrDrawContext> dstDrawContext(context->drawContext(scratch->asRenderTarget())); + SkAutoTUnref<GrDrawContext> dstDrawContext( + context->drawContext(scratch->asRenderTarget())); if (!dstDrawContext) { return false; } @@ -587,7 +588,8 @@ bool apply_morphology(const SkBitmap& input, if (nullptr == scratch) { return false; } - SkAutoTUnref<GrDrawContext> dstDrawContext(context->drawContext(scratch->asRenderTarget())); + SkAutoTUnref<GrDrawContext> dstDrawContext( + context->drawContext(scratch->asRenderTarget())); if (!dstDrawContext) { return false; } |