| Index: src/core/SkBitmapScaler.h
|
| diff --git a/src/core/SkBitmapScaler.h b/src/core/SkBitmapScaler.h
|
| index fcb6bdc50fb3eb3635c000f60bc2157447ff57fb..b88fb9e7757c2f83d25a421754b670f44d8ed8af 100644
|
| --- a/src/core/SkBitmapScaler.h
|
| +++ b/src/core/SkBitmapScaler.h
|
| @@ -87,20 +87,22 @@ public:
|
| // will save work if you do not need the entire bitmap.
|
| //
|
| // The destination subset must be smaller than the destination image.
|
| - static SkBitmap Resize(const SkBitmap& source,
|
| - ResizeMethod method,
|
| - int dest_width, int dest_height,
|
| - const SkIRect& dest_subset,
|
| - SkConvolutionProcs *convolveProcs = NULL,
|
| - SkBitmap::Allocator* allocator = NULL);
|
| + static bool Resize(SkBitmap* result,
|
| + const SkBitmap& source,
|
| + ResizeMethod method,
|
| + int dest_width, int dest_height,
|
| + const SkIRect& dest_subset,
|
| + SkConvolutionProcs *convolveProcs = NULL,
|
| + SkBitmap::Allocator* allocator = NULL);
|
|
|
| // Alternate version for resizing and returning the entire bitmap rather than
|
| // a subset.
|
| - static SkBitmap Resize(const SkBitmap& source,
|
| - ResizeMethod method,
|
| - int dest_width, int dest_height,
|
| - SkConvolutionProcs *convolveProcs = NULL,
|
| - SkBitmap::Allocator* allocator = NULL);
|
| + static bool Resize(SkBitmap* result,
|
| + const SkBitmap& source,
|
| + ResizeMethod method,
|
| + int dest_width, int dest_height,
|
| + SkConvolutionProcs *convolveProcs = NULL,
|
| + SkBitmap::Allocator* allocator = NULL);
|
| };
|
|
|
| #endif
|
|
|