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

Unified Diff: skia/ext/image_operations.h

Issue 761903003: Update from https://crrev.com/306655 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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 | « skia/ext/analysis_canvas_unittest.cc ('k') | skia/ext/image_operations.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: skia/ext/image_operations.h
diff --git a/skia/ext/image_operations.h b/skia/ext/image_operations.h
index eff89123c6bf5473f10d5495a603068aaa22310d..9e0b073cc2fb5355c918093ca5f0eaa47b0840f6 100644
--- a/skia/ext/image_operations.h
+++ b/skia/ext/image_operations.h
@@ -79,15 +79,11 @@ class SK_API ImageOperations {
// each side, then oscillates 2 more times. It gives nice sharp edges.
RESIZE_LANCZOS3,
- // Lanczos filter + subpixel interpolation. If subpixel rendering is not
- // appropriate we automatically fall back to Lanczos.
- RESIZE_SUBPIXEL,
-
// enum aliases for first and last methods by algorithm or by quality.
RESIZE_FIRST_QUALITY_METHOD = RESIZE_GOOD,
RESIZE_LAST_QUALITY_METHOD = RESIZE_BEST,
RESIZE_FIRST_ALGORITHM_METHOD = RESIZE_BOX,
- RESIZE_LAST_ALGORITHM_METHOD = RESIZE_SUBPIXEL,
+ RESIZE_LAST_ALGORITHM_METHOD = RESIZE_LANCZOS3,
};
// Resizes the given source bitmap using the specified resize method, so that
@@ -113,19 +109,6 @@ class SK_API ImageOperations {
private:
ImageOperations(); // Class for scoping only.
-
- // Supports all methods except RESIZE_SUBPIXEL.
- static SkBitmap ResizeBasic(const SkBitmap& source,
- ResizeMethod method,
- int dest_width, int dest_height,
- const SkIRect& dest_subset,
- SkBitmap::Allocator* allocator = NULL);
-
- // Subpixel renderer.
- static SkBitmap ResizeSubpixel(const SkBitmap& source,
- int dest_width, int dest_height,
- const SkIRect& dest_subset,
- SkBitmap::Allocator* allocator = NULL);
};
} // namespace skia
« no previous file with comments | « skia/ext/analysis_canvas_unittest.cc ('k') | skia/ext/image_operations.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698