From d92f5b814d01c474a0fb52e32e10a997b2c9b5bf Mon Sep 17 00:00:00 2001 From: humper Date: Sat, 28 Jun 2014 20:12:45 -0700 Subject: add a second interface to the resizer to exactly match what Chrome expects. Will make the migration much cleaner BUG=skia: R=mtklein@google.com Author: humper@google.com Review URL: https://codereview.chromium.org/353163005 --- src/core/SkBitmapScaler.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/core/SkBitmapScaler.h') diff --git a/src/core/SkBitmapScaler.h b/src/core/SkBitmapScaler.h index ef559df606..ec4c8170bc 100644 --- a/src/core/SkBitmapScaler.h +++ b/src/core/SkBitmapScaler.h @@ -85,6 +85,11 @@ public: float dest_width, float dest_height, SkBitmap::Allocator* allocator = NULL); + static SkBitmap Resize(const SkBitmap& source, + ResizeMethod method, + float dest_width, float dest_height, + SkBitmap::Allocator* allocator = NULL); + /** Platforms can also optionally overwrite the convolution functions if we have SIMD versions of them. */ -- cgit v1.2.3