* commit '892768fb3efa6bde3f24ffa09a013fa76cab855e': Constrain drawBitmap matrix-to-rect optimization
This commit is contained in:
@@ -255,7 +255,9 @@ void DisplayListCanvas::drawBitmap(const SkBitmap& bitmap, const SkMatrix& matri
|
||||
const SkPaint* paint) {
|
||||
if (matrix.isIdentity()) {
|
||||
drawBitmap(&bitmap, paint);
|
||||
} else if (!(matrix.getType() & ~(SkMatrix::kScale_Mask | SkMatrix::kTranslate_Mask))) {
|
||||
} else if (!(matrix.getType() & ~(SkMatrix::kScale_Mask | SkMatrix::kTranslate_Mask))
|
||||
&& MathUtils::isPositive(matrix.getScaleX())
|
||||
&& MathUtils::isPositive(matrix.getScaleY())) {
|
||||
// SkMatrix::isScaleTranslate() not available in L
|
||||
SkRect src;
|
||||
SkRect dst;
|
||||
|
||||
Reference in New Issue
Block a user