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

Unified Diff: src/core/SkBitmapFilter.cpp

Issue 1589683004: remove unused SkBitmapFilter::Allocate (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 11 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/SkBitmapFilter.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkBitmapFilter.cpp
diff --git a/src/core/SkBitmapFilter.cpp b/src/core/SkBitmapFilter.cpp
deleted file mode 100644
index d96a3854050c78456049a32d61070f5784cebe6c..0000000000000000000000000000000000000000
--- a/src/core/SkBitmapFilter.cpp
+++ /dev/null
@@ -1,40 +0,0 @@
-/*
- * Copyright 2013 Google Inc.
- *
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- */
-
-#include "SkBitmapFilter.h"
-#include "SkRTConf.h"
-#include "SkTypes.h"
-
-#include <string.h>
-
-// These are the per-scanline callbacks that are used when we must resort to
-// resampling an image as it is blitted. Typically these are used only when
-// the image is rotated or has some other complex transformation applied.
-// Scaled images will usually be rescaled directly before rasterization.
-
-SK_CONF_DECLARE(const char *, c_bitmapFilter, "bitmap.filter", "mitchell", "Which scanline bitmap filter to use [mitchell, lanczos, hamming, gaussian, triangle, box]");
-
-SkBitmapFilter *SkBitmapFilter::Allocate() {
- if (!strcmp(c_bitmapFilter, "mitchell")) {
- return new SkMitchellFilter;
- } else if (!strcmp(c_bitmapFilter, "lanczos")) {
- return new SkLanczosFilter;
- } else if (!strcmp(c_bitmapFilter, "hamming")) {
- return new SkHammingFilter;
- } else if (!strcmp(c_bitmapFilter, "gaussian")) {
- return new SkGaussianFilter(2);
- } else if (!strcmp(c_bitmapFilter, "triangle")) {
- return new SkTriangleFilter;
- } else if (!strcmp(c_bitmapFilter, "box")) {
- return new SkBoxFilter;
- } else {
- SkDEBUGFAIL("Unknown filter type");
- }
-
- return nullptr;
-}
-
« no previous file with comments | « src/core/SkBitmapFilter.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698