| 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 23 matching lines...) Expand all Loading... |
| 34 * specified resize-method and write the results into the pixels pointed to
by dst. | 34 * specified resize-method and write the results into the pixels pointed to
by dst. |
| 35 */ | 35 */ |
| 36 static bool Resize(const SkPixmap& dst, const SkPixmap& src, ResizeMethod me
thod); | 36 static bool Resize(const SkPixmap& dst, const SkPixmap& src, ResizeMethod me
thod); |
| 37 | 37 |
| 38 /** | 38 /** |
| 39 * Helper function that manages allocating a bitmap to hold the dst pixels,
and then calls | 39 * Helper function that manages allocating a bitmap to hold the dst pixels,
and then calls |
| 40 * the pixmap version of Resize. | 40 * the pixmap version of Resize. |
| 41 */ | 41 */ |
| 42 static bool Resize(SkBitmap* result, const SkPixmap& src, ResizeMethod metho
d, | 42 static bool Resize(SkBitmap* result, const SkPixmap& src, ResizeMethod metho
d, |
| 43 int dest_width, int dest_height, SkBitmap::Allocator* = n
ullptr); | 43 int dest_width, int dest_height, SkBitmap::Allocator* = n
ullptr); |
| 44 | |
| 45 /** Platforms can also optionally overwrite the convolution functions | |
| 46 if we have SIMD versions of them. | |
| 47 */ | |
| 48 | |
| 49 static void PlatformConvolutionProcs(SkConvolutionProcs*); | |
| 50 }; | 44 }; |
| 51 | 45 |
| 52 #endif | 46 #endif |
| OLD | NEW |