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

Unified Diff: Source/platform/graphics/skia/NativeImageSkia.h

Issue 328453004: Replace ResamplingMode with InterpolationQuality. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: backpedal Created 6 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/GraphicsTypes.h ('k') | Source/platform/graphics/skia/NativeImageSkia.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/graphics/skia/NativeImageSkia.h
diff --git a/Source/platform/graphics/skia/NativeImageSkia.h b/Source/platform/graphics/skia/NativeImageSkia.h
index 52bf729e54d703d0e804a46cbe14e520c8482ded..aebf1d1a4b8c292b7697ee4948b0c33f386e2521 100644
--- a/Source/platform/graphics/skia/NativeImageSkia.h
+++ b/Source/platform/graphics/skia/NativeImageSkia.h
@@ -52,23 +52,6 @@ class FloatRect;
class FloatSize;
class GraphicsContext;
-// Used by computeResamplingMode to tell how bitmaps should be resampled.
-enum ResamplingMode {
- // Nearest neighbor resampling. Used when we detect that the page is
- // trying to make a pattern by stretching a small bitmap very large.
- NoResampling,
-
- // Default skia resampling. Used for large growing of images where high
- // quality resampling doesn't get us very much except a slowdown.
- LinearResampling,
-
- // LinearResampling for upscaling. Mipmapping for downscaling.
- LinearWithMipmapsResampling,
-
- // High quality resampling.
- AwesomeResampling,
-};
-
// This object is used as the "native image" in our port. When WebKit uses
// PassNativeImagePtr / NativeImagePtr, it is a smart pointer to this type.
// It has an SkBitmap, and also stores a cached resized image.
@@ -169,7 +152,7 @@ private:
// entire thing, it's best to just do it up front.
bool shouldCacheResampling(const SkISize& scaledImageSize, const SkIRect& scaledImageSubset) const;
- ResamplingMode computeResamplingMode(const SkMatrix&, float srcWidth, float srcHeight, float destWidth, float destHeight) const;
+ InterpolationQuality computeInterpolationQuality(const SkMatrix&, float srcWidth, float srcHeight, float destWidth, float destHeight) const;
SkBitmap extractScaledImageFragment(const SkRect& srcRect, float scaleX, float scaleY, SkRect* scaledSrcRect) const;
void drawResampledBitmap(GraphicsContext*, SkPaint&, const SkRect& srcRect, const SkRect& destRect) const;
« no previous file with comments | « Source/platform/graphics/GraphicsTypes.h ('k') | Source/platform/graphics/skia/NativeImageSkia.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698