remove unused SkBitmapFilter::Allocate

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1589683004

TBR=

Review URL: https://codereview.chromium.org/1589683004
This commit is contained in:
reed 2016-01-14 10:40:29 -08:00 committed by Commit bot
parent a36c710bf5
commit 8229fd5c75
3 changed files with 0 additions and 43 deletions

View File

@ -31,7 +31,6 @@
'<(skia_src_path)/core/SkBitmapController.cpp',
'<(skia_src_path)/core/SkBitmapDevice.cpp',
'<(skia_src_path)/core/SkBitmapFilter.h',
'<(skia_src_path)/core/SkBitmapFilter.cpp',
'<(skia_src_path)/core/SkBitmapHeap.cpp',
'<(skia_src_path)/core/SkBitmapHeap.h',
'<(skia_src_path)/core/SkBitmapProcShader.cpp',

View File

@ -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;
}

View File

@ -65,8 +65,6 @@ public:
}
#endif
static SkBitmapFilter* Allocate();
protected:
float fWidth;
float fInvWidth;