Bug 1082598 - Part 6: Fix layers for Skia update. r=jrmuizel

This commit is contained in:
Lee Salzman 2015-12-18 13:53:25 -05:00
parent 71c0c0d673
commit 7c3422f7ec
2 changed files with 4 additions and 4 deletions

View File

@ -254,9 +254,9 @@ Transform(DataSourceSurface* aDest,
SkPaint paint;
paint.setXfermodeMode(SkXfermode::kSrc_Mode);
paint.setAntiAlias(true);
paint.setFilterLevel(SkPaint::kLow_FilterLevel);
paint.setFilterQuality(kLow_SkFilterQuality);
SkRect destRect = SkRect::MakeXYWH(0, 0, srcSize.width, srcSize.height);
destCanvas.drawBitmapRectToRect(src, nullptr, destRect, &paint);
destCanvas.drawBitmapRect(src, destRect, &paint);
}
#else
static pixman_transform

View File

@ -742,9 +742,9 @@ Transform(const gfxImageSurface* aDest,
SkPaint paint;
paint.setXfermodeMode(SkXfermode::kSrc_Mode);
paint.setAntiAlias(true);
paint.setFilterLevel(SkPaint::kLow_FilterLevel);
paint.setFilterQuality(kLow_SkFilterQuality);
SkRect destRect = SkRect::MakeXYWH(0, 0, srcSize.width, srcSize.height);
destCanvas.drawBitmapRectToRect(src, nullptr, destRect, &paint);
destCanvas.drawBitmapRect(src, destRect, &paint);
}
#else
static pixman_transform