Pass sampling or nothing to surface.draw

Test: make

Bug: 178700363
Change-Id: I144c0a1bc2376259640d1a6920d9df4edd652849
This commit is contained in:
Mike Reed
2021-02-01 17:14:55 -05:00
parent 7c4ab8d9fd
commit 27bf51dc50
2 changed files with 2 additions and 2 deletions

View File

@@ -561,7 +561,7 @@ public:
return;
}
c->concat(invertedMatrix);
mLayerSurface->draw(c, deviceBounds.fLeft, deviceBounds.fTop, nullptr);
mLayerSurface->draw(c, deviceBounds.fLeft, deviceBounds.fTop);
} else {
c->drawDrawable(drawable.get());
}

View File

@@ -194,7 +194,7 @@ void GLFunctorDrawable::onDraw(SkCanvas* canvas) {
canvas->concat(invertedMatrix);
const SkIRect deviceBounds = canvas->getDeviceClipBounds();
tmpSurface->draw(canvas, deviceBounds.fLeft, deviceBounds.fTop, nullptr);
tmpSurface->draw(canvas, deviceBounds.fLeft, deviceBounds.fTop);
}
}