Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(124)

Unified Diff: src/core/SkBitmapScaler.h

Issue 300113008: Make image scaling have floating point scales. Third attempt to land this (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Windows build fix Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/core/SkBitmapProcState.cpp ('k') | src/core/SkBitmapScaler.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkBitmapScaler.h
diff --git a/src/core/SkBitmapScaler.h b/src/core/SkBitmapScaler.h
index c8d8a84185e3601ef028ec56b44e3bcd5895d79a..d6636cf34ea9a44a794308c6f6a78303cdbf1e09 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);
};
« no previous file with comments | « src/core/SkBitmapProcState.cpp ('k') | src/core/SkBitmapScaler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698