diff options
author | Brian Salomon <bsalomon@google.com> | 2018-05-14 16:17:43 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-05-14 20:54:09 +0000 |
commit | 0cdfc32058dc8ce5e9c74326c2a5745671cb5a48 (patch) | |
tree | 12fa1d1a68a6f504657e4835525dcae32d6d9041 /src/gpu/SkGpuDevice.cpp | |
parent | 8fb2e5c3993fabfe25ba3f7c5ce2b92786c18c97 (diff) |
Make drawBitmap[Rect]() use GrTextureOp
Change-Id: If2a81bd0fdef9a91475828a6abf5c3d3ba456b5d
Reviewed-on: https://skia-review.googlesource.com/128140
Commit-Queue: Brian Salomon <bsalomon@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
Auto-Submit: Brian Salomon <bsalomon@google.com>
Reviewed-by: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'src/gpu/SkGpuDevice.cpp')
-rw-r--r-- | src/gpu/SkGpuDevice.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gpu/SkGpuDevice.cpp b/src/gpu/SkGpuDevice.cpp index a08c0e5600..27daab6479 100644 --- a/src/gpu/SkGpuDevice.cpp +++ b/src/gpu/SkGpuDevice.cpp @@ -832,8 +832,8 @@ void SkGpuDevice::drawBitmap(const SkBitmap& bitmap, } } GrBitmapTextureMaker maker(fContext.get(), bitmap); - this->drawTextureProducer(&maker, nullptr, nullptr, SkCanvas::kStrict_SrcRectConstraint, - viewMatrix, paint); + this->drawTextureMaker(&maker, bitmap.width(), bitmap.height(), nullptr, nullptr, + SkCanvas::kStrict_SrcRectConstraint, viewMatrix, paint); } // This method outsets 'iRect' by 'outset' all around and then clamps its extents to @@ -1189,7 +1189,8 @@ void SkGpuDevice::drawBitmapRect(const SkBitmap& bitmap, } } GrBitmapTextureMaker maker(fContext.get(), bitmap); - this->drawTextureProducer(&maker, src, dst, constraint, this->ctm(), paint); + this->drawTextureMaker(&maker, bitmap.width(), bitmap.height(), src, dst, constraint, + this->ctm(), paint); } sk_sp<SkSpecialImage> SkGpuDevice::makeSpecial(const SkBitmap& bitmap) { |