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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 RESIZE_FIRST_ALGORITHM_METHOD = RESIZE_BOX, | 78 RESIZE_FIRST_ALGORITHM_METHOD = RESIZE_BOX, |
79 RESIZE_LAST_ALGORITHM_METHOD = RESIZE_MITCHELL, | 79 RESIZE_LAST_ALGORITHM_METHOD = RESIZE_MITCHELL, |
80 }; | 80 }; |
81 | 81 |
82 static bool Resize(SkBitmap* result, | 82 static bool Resize(SkBitmap* result, |
83 const SkBitmap& source, | 83 const SkBitmap& source, |
84 ResizeMethod method, | 84 ResizeMethod method, |
85 float dest_width, float dest_height, | 85 float dest_width, float dest_height, |
86 SkBitmap::Allocator* allocator = NULL); | 86 SkBitmap::Allocator* allocator = NULL); |
87 | 87 |
88 static SkBitmap Resize(const SkBitmap& source, | |
89 ResizeMethod method, | |
90 float dest_width, float dest_height, | |
91 SkBitmap::Allocator* allocator = NULL); | |
92 | |
93 /** Platforms can also optionally overwrite the convolution functions | 88 /** Platforms can also optionally overwrite the convolution functions |
94 if we have SIMD versions of them. | 89 if we have SIMD versions of them. |
95 */ | 90 */ |
96 | 91 |
97 static void PlatformConvolutionProcs(SkConvolutionProcs*); | 92 static void PlatformConvolutionProcs(SkConvolutionProcs*); |
98 }; | 93 }; |
99 | 94 |
100 #endif | 95 #endif |
OLD | NEW |