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

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

Issue 416543002: Move logic from NativeImageSkia to GraphicsContext and SkiaUtils (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Test regressions fixed Created 6 years, 5 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/NativeImageSkia.cpp ('k') | Source/platform/graphics/skia/SkiaUtils.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/graphics/skia/SkiaUtils.h
diff --git a/Source/platform/graphics/skia/SkiaUtils.h b/Source/platform/graphics/skia/SkiaUtils.h
index 6f1444e4da53bceb637777b1bfa98e56bdb8a267..44a6897b2ad39fdfbde5ffd52dd626a38bcd4b34 100644
--- a/Source/platform/graphics/skia/SkiaUtils.h
+++ b/Source/platform/graphics/skia/SkiaUtils.h
@@ -91,6 +91,22 @@ bool PLATFORM_EXPORT SkPathContainsPoint(const SkPath&, const FloatPoint&, SkPat
SkMatrix PLATFORM_EXPORT affineTransformToSkMatrix(const AffineTransform&);
+bool nearlyIntegral(float value);
+
+InterpolationQuality limitInterpolationQuality(const GraphicsContext*, InterpolationQuality resampling);
+
+SkPaint::FilterLevel convertToSkiaFilterLevel(bool useBicubicFilter, InterpolationQuality resampling);
+
+InterpolationQuality computeInterpolationQuality(
+ const SkMatrix&,
+ float srcWidth,
+ float srcHeight,
+ float destWidth,
+ float destHeight,
+ bool isDataComplete = true);
+
+bool shouldDrawAntiAliased(const GraphicsContext*, const SkRect& destRect);
+
} // namespace blink
#endif // SkiaUtils_h
« no previous file with comments | « Source/platform/graphics/skia/NativeImageSkia.cpp ('k') | Source/platform/graphics/skia/SkiaUtils.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698