aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkBitmapScaler.h
diff options
context:
space:
mode:
authorGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-05-27 20:54:04 +0000
committerGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-05-27 20:54:04 +0000
commit44f41293ac94530d08fca2ce8484a7248e7a5e97 (patch)
treee73cfb7f119225876abbb90589f8c771eb022c22 /src/core/SkBitmapScaler.h
parent61a03b78d6abefdf86889e988d4596181488f981 (diff)
floating point scale factors for images
New version of https://codereview.chromium.org/298243003/ made to deal with binary file being lost. BUG= TBR=bsalomon NOTRY=true Author: humper@google.com Review URL: https://codereview.chromium.org/307553005 git-svn-id: http://skia.googlecode.com/svn/trunk@14905 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/core/SkBitmapScaler.h')
-rw-r--r--src/core/SkBitmapScaler.h20
1 files changed, 1 insertions, 19 deletions
diff --git a/src/core/SkBitmapScaler.h b/src/core/SkBitmapScaler.h
index c8d8a84185..d6636cf34e 100644
--- a/src/core/SkBitmapScaler.h
+++ b/src/core/SkBitmapScaler.h
@@ -79,28 +79,10 @@ public:
RESIZE_LAST_ALGORITHM_METHOD = RESIZE_MITCHELL,
};
- // Resizes the given source bitmap using the specified resize method, so that
- // the entire image is (dest_size) big. The dest_subset is the rectangle in
- // this destination image that should actually be returned.
- //
- // The output image will be (dest_subset.width(), dest_subset.height()). This
- // will save work if you do not need the entire bitmap.
- //
- // The destination subset must be smaller than the destination image.
static bool Resize(SkBitmap* result,
const SkBitmap& source,
ResizeMethod method,
- int dest_width, int dest_height,
- const SkIRect& dest_subset,
- const SkConvolutionProcs&,
- SkBitmap::Allocator* allocator = NULL);
-
- // Alternate version for resizing and returning the entire bitmap rather than
- // a subset.
- static bool Resize(SkBitmap* result,
- const SkBitmap& source,
- ResizeMethod method,
- int dest_width, int dest_height,
+ float dest_width, float dest_height,
const SkConvolutionProcs&,
SkBitmap::Allocator* allocator = NULL);
};