OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright 2013 Google Inc. | 2 * Copyright 2013 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #ifndef SkBitmapScaler_DEFINED | 8 #ifndef SkBitmapScaler_DEFINED |
9 #define SkBitmapScaler_DEFINED | 9 #define SkBitmapScaler_DEFINED |
10 | 10 |
(...skipping 11 matching lines...) Expand all Loading... | |
22 RESIZE_BOX, | 22 RESIZE_BOX, |
23 RESIZE_TRIANGLE, | 23 RESIZE_TRIANGLE, |
24 RESIZE_LANCZOS3, | 24 RESIZE_LANCZOS3, |
25 RESIZE_HAMMING, | 25 RESIZE_HAMMING, |
26 RESIZE_MITCHELL, | 26 RESIZE_MITCHELL, |
27 | 27 |
28 RESIZE_FirstMethod = RESIZE_BOX, | 28 RESIZE_FirstMethod = RESIZE_BOX, |
29 RESIZE_LastMethod = RESIZE_MITCHELL, | 29 RESIZE_LastMethod = RESIZE_MITCHELL, |
30 }; | 30 }; |
31 | 31 |
32 static bool Resize(const SkPixmap& dst, const SkPixmap& src, ResizeMethod me thod); | |
caryclark
2016/01/13 20:22:53
At a casual glance, I would expect that this does
robertphillips
2016/01/13 20:41:38
I agree - it seems odd.
| |
33 | |
32 static bool Resize(SkBitmap* result, const SkPixmap& src, ResizeMethod metho d, | 34 static bool Resize(SkBitmap* result, const SkPixmap& src, ResizeMethod metho d, |
33 int dest_width, int dest_height, SkBitmap::Allocator* = n ullptr); | 35 int dest_width, int dest_height, SkBitmap::Allocator* = n ullptr); |
34 | 36 |
35 /** Platforms can also optionally overwrite the convolution functions | 37 /** Platforms can also optionally overwrite the convolution functions |
36 if we have SIMD versions of them. | 38 if we have SIMD versions of them. |
37 */ | 39 */ |
38 | 40 |
39 static void PlatformConvolutionProcs(SkConvolutionProcs*); | 41 static void PlatformConvolutionProcs(SkConvolutionProcs*); |
40 }; | 42 }; |
41 | 43 |
42 #endif | 44 #endif |
OLD | NEW |