Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1344)

Unified Diff: third_party/WebKit/WebCore/platform/graphics/skia/ImageSkia.cpp

Issue 21201: Transparency (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/WebCore/platform/graphics/skia/ImageSkia.cpp
===================================================================
--- third_party/WebKit/WebCore/platform/graphics/skia/ImageSkia.cpp (revision 10194)
+++ third_party/WebKit/WebCore/platform/graphics/skia/ImageSkia.cpp (working copy)
@@ -225,6 +225,7 @@
{
SkPaint paint;
paint.setPorterDuffXfermode(compOp);
+ paint.setFilterBitmap(true);
skia::PlatformCanvas* canvas = platformContext->canvas();
@@ -233,7 +234,6 @@
SkScalarToFloat(destRect.width()),
SkScalarToFloat(destRect.height()));
if (resampling == RESAMPLE_AWESOME) {
- paint.setFilterBitmap(false);
drawResampledBitmap(*canvas, paint, bitmap, srcRect, destRect);
} else {
// No resampling necessary, we can just draw the bitmap. We want to
@@ -241,7 +241,6 @@
// is something interesting going on with the matrix (like a rotation).
// Note: for serialization, we will want to subset the bitmap first so
// we don't send extra pixels.
- paint.setFilterBitmap(resampling == RESAMPLE_LINEAR);
canvas->drawBitmapRect(bitmap, &srcRect, destRect, &paint);
}
}

Powered by Google App Engine
This is Rietveld 408576698