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

Unified Diff: src/core/SkBitmapScaler.h

Issue 1174293005: change Resize to take pixmap for src (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 6 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/SkBitmapController.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 ef559df606c727c2342d6948098cc37d5295e5b8..c4c7f0ad0bff76d95d21c5b9d45d9d3260859d74 100644
--- a/src/core/SkBitmapScaler.h
+++ b/src/core/SkBitmapScaler.h
@@ -79,11 +79,8 @@ public:
RESIZE_LAST_ALGORITHM_METHOD = RESIZE_MITCHELL,
};
- static bool Resize(SkBitmap* result,
- const SkBitmap& source,
- ResizeMethod method,
- float dest_width, float dest_height,
- SkBitmap::Allocator* allocator = NULL);
+ static bool Resize(SkBitmap* result, const SkPixmap& src, ResizeMethod method,
+ float dest_width, float dest_height, SkBitmap::Allocator* = NULL);
/** Platforms can also optionally overwrite the convolution functions
if we have SIMD versions of them.
« no previous file with comments | « src/core/SkBitmapController.cpp ('k') | src/core/SkBitmapScaler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698