diff options
author | 2014-06-28 20:12:45 -0700 | |
---|---|---|
committer | 2014-06-28 20:12:45 -0700 | |
commit | d92f5b814d01c474a0fb52e32e10a997b2c9b5bf (patch) | |
tree | e7aa3ecfa6e9d211461a0be6624b4f3cf42de55b /src/core/SkBitmapScaler.h | |
parent | 1e2772ff92eadbd22f968faa75218064e592a4e9 (diff) |
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
Diffstat (limited to 'src/core/SkBitmapScaler.h')
-rw-r--r-- | src/core/SkBitmapScaler.h | 5 |
1 files changed, 5 insertions, 0 deletions
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. */ |