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

Unified Diff: Source/platform/graphics/skia/SkiaUtils.cpp

Issue 1187473011: SP: Use a high-quality image filter regardless of CTM. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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
« no previous file with comments | « Source/platform/graphics/skia/SkiaUtils.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/graphics/skia/SkiaUtils.cpp
diff --git a/Source/platform/graphics/skia/SkiaUtils.cpp b/Source/platform/graphics/skia/SkiaUtils.cpp
index fb28dea9c101ba5b2b87879720b333019d833263..627b2a5cff9152cf251dcc4378ab450e1331cbbf 100644
--- a/Source/platform/graphics/skia/SkiaUtils.cpp
+++ b/Source/platform/graphics/skia/SkiaUtils.cpp
@@ -243,7 +243,6 @@ InterpolationQuality limitInterpolationQuality(const GraphicsContext* context, I
}
InterpolationQuality computeInterpolationQuality(
- const SkMatrix& matrix,
float srcWidth,
float srcHeight,
float destWidth,
@@ -322,12 +321,8 @@ InterpolationQuality computeInterpolationQuality(
if (!isDataComplete)
return InterpolationLow;
- // Everything else gets resampled.
- // High quality interpolation only enabled for scaling and translation.
- if (!(matrix.getType() & (SkMatrix::kAffine_Mask | SkMatrix::kPerspective_Mask)))
- return InterpolationHigh;
-
- return InterpolationLow;
+ // Everything else gets resampled at high quality.
+ return InterpolationHigh;
}
int clampedAlphaForBlending(float alpha)
« no previous file with comments | « Source/platform/graphics/skia/SkiaUtils.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698