Lines Matching refs:SkBitmapScaler
1 #include "SkBitmapScaler.h"
14 SkResizeFilter(SkBitmapScaler::ResizeMethod method,
52 SkResizeFilter::SkResizeFilter(SkBitmapScaler::ResizeMethod method,
59 SkASSERT((SkBitmapScaler::RESIZE_FIRST_ALGORITHM_METHOD <= method) &&
60 (method <= SkBitmapScaler::RESIZE_LAST_ALGORITHM_METHOD));
63 case SkBitmapScaler::RESIZE_BOX:
66 case SkBitmapScaler::RESIZE_TRIANGLE:
69 case SkBitmapScaler::RESIZE_MITCHELL:
72 case SkBitmapScaler::RESIZE_HAMMING:
75 case SkBitmapScaler::RESIZE_LANCZOS3:
205 static SkBitmapScaler::ResizeMethod ResizeMethodToAlgorithmMethod(
206 SkBitmapScaler::ResizeMethod method) {
208 if (method >= SkBitmapScaler::RESIZE_FIRST_ALGORITHM_METHOD &&
209 method <= SkBitmapScaler::RESIZE_LAST_ALGORITHM_METHOD) {
220 case SkBitmapScaler::RESIZE_GOOD:
221 return SkBitmapScaler::RESIZE_TRIANGLE;
228 case SkBitmapScaler::RESIZE_BETTER:
229 return SkBitmapScaler::RESIZE_HAMMING;
231 return SkBitmapScaler::RESIZE_MITCHELL;
236 bool SkBitmapScaler::Resize(SkBitmap* resultPtr,
269 SkASSERT((SkBitmapScaler::RESIZE_FIRST_ALGORITHM_METHOD <= method) &&
270 (method <= SkBitmapScaler::RESIZE_LAST_ALGORITHM_METHOD));
310 bool SkBitmapScaler::Resize(SkBitmap* resultPtr,