diff options
author | Robert Phillips <robertphillips@google.com> | 2017-06-15 12:07:18 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-06-15 17:18:19 +0000 |
commit | fbcef6eb8abad142daf45418516550f7635b4a52 (patch) | |
tree | 1fb2b2a1df72ba87ec05a91bd1cd271e24b5544e /src/core/SkColorSpaceXformImageGenerator.cpp | |
parent | baaf439eb5d08097d794f13800e5bf7ce8885f95 (diff) |
Clean up GrResourceProvider usage
The only substantive changes are the removal of GrProxy instantiation in:
SkGpuBlurUtils::GaussianBlur
GrSimpleTextureEffect::Make*
Change-Id: I10970609693bd6ff5b3a3c21b41d82642bb277bc
Reviewed-on: https://skia-review.googlesource.com/19965
Reviewed-by: Greg Daniel <egdaniel@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'src/core/SkColorSpaceXformImageGenerator.cpp')
-rw-r--r-- | src/core/SkColorSpaceXformImageGenerator.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/SkColorSpaceXformImageGenerator.cpp b/src/core/SkColorSpaceXformImageGenerator.cpp index 5d97a024bc..79b4650625 100644 --- a/src/core/SkColorSpaceXformImageGenerator.cpp +++ b/src/core/SkColorSpaceXformImageGenerator.cpp @@ -71,8 +71,8 @@ sk_sp<GrTextureProxy> SkColorSpaceXformImageGenerator::onGenerateTexture(GrConte SkASSERT(ctx); - sk_sp<GrTextureProxy> proxy = - GrUploadBitmapToTextureProxy(ctx->resourceProvider(), fSrc, nullptr); + sk_sp<GrTextureProxy> proxy = GrUploadBitmapToTextureProxy(ctx->resourceProvider(), + fSrc, nullptr); sk_sp<SkColorSpace> srcSpace = fSrc.colorSpace() ? sk_ref_sp(fSrc.colorSpace()) : SkColorSpace::MakeSRGB(); @@ -89,8 +89,8 @@ sk_sp<GrTextureProxy> SkColorSpaceXformImageGenerator::onGenerateTexture(GrConte GrPaint paint; paint.setPorterDuffXPFactory(SkBlendMode::kSrc); - paint.addColorTextureProcessor(ctx->resourceProvider(), proxy, nullptr, - SkMatrix::MakeTrans(origin.fX, origin.fY)); + paint.addColorTextureProcessor(std::move(proxy), nullptr, + SkMatrix::MakeTrans(origin.fX, origin.fY)); paint.addColorFragmentProcessor(std::move(xform)); const SkRect rect = SkRect::MakeWH(info.width(), info.height()); |