SkLiteDL: Don't use move()d object

With 'image' being both a function parameter and a class member,
a reference to 'image' resolves to the function parameter.
However, we've already called std::move() on the function
parameter, so we want to use the class member here.  Thus, we
switch to 'this->image'.

Change-Id: Ie244b87b54b1c1ec3dc59bcd1f637ddd301c38a9
Reviewed-on: https://skia-review.googlesource.com/c/190562
Reviewed-by: Mike Klein <mtklein@google.com>
Commit-Queue: Mike Klein <mtklein@google.com>
This commit is contained in:
Greg Kaiser 2019-02-08 16:55:34 -08:00 committed by Skia Commit-Bot
parent 5c21113064
commit 0c85e78ddf

View File

@ -314,7 +314,7 @@ namespace {
DrawImageRect(sk_sp<const SkImage>&& image, const SkRect* src, const SkRect& dst,
const SkPaint* paint, SkCanvas::SrcRectConstraint constraint)
: image(std::move(image)), dst(dst), constraint(constraint) {
this->src = src ? *src : SkRect::MakeIWH(image->width(), image->height());
this->src = src ? *src : SkRect::MakeIWH(this->image->width(), this->image->height());
if (paint) { this->paint = *paint; }
}
sk_sp<const SkImage> image;