aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar humper@google.com <humper@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-07-19 20:30:44 +0000
committerGravatar humper@google.com <humper@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-07-19 20:30:44 +0000
commitab56cdabbd870ad015f1eb99a03585c0b212b952 (patch)
treea18101af22cd4aabd6526520ebe2b8af3b9b6c37
parent5f3f681db58d613f5b96caa0af45ba15f776fe96 (diff)
remove unused function
git-svn-id: http://skia.googlecode.com/svn/trunk@10208 2bbb7eff-a529-9590-31e7-b0007b416f81
-rw-r--r--src/core/SkConvolver.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/core/SkConvolver.cpp b/src/core/SkConvolver.cpp
index 54e46b63fe..c76027d1dd 100644
--- a/src/core/SkConvolver.cpp
+++ b/src/core/SkConvolver.cpp
@@ -20,18 +20,6 @@ namespace {
return 255;
}
- // Takes the value produced by accumulating element-wise product of image with
- // a kernel and brings it back into range.
- // All of the filter scaling factors are in fixed point with kShiftBits bits of
- // fractional part.
- inline unsigned char BringBackTo8(int a, bool takeAbsolute) {
- a >>= SkConvolutionFilter1D::kShiftBits;
- if (takeAbsolute) {
- a = abs(a);
- }
- return ClampTo8(a);
- }
-
// Stores a list of rows in a circular buffer. The usage is you write into it
// by calling AdvanceRow. It will keep track of which row in the buffer it
// should use next, and the total number of rows added.