aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkFilterProc.h
diff options
context:
space:
mode:
authorGravatar Mike Reed <reed@google.com>2017-06-21 11:47:38 -0700
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-06-21 19:17:02 +0000
commit0215312f5f4e2b72c39e2a49cd8eb321fa9f9b16 (patch)
treef7684c6c9fe9e04703d1762bf7c5f468f27662d1 /src/core/SkFilterProc.h
parenta72438dd77726c51c570f587825925e7d9bf8db7 (diff)
remove unused SkFilterProcs
CQ_INCLUDE_TRYBOTS=skia.primary:Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-SKNX_NO_SIMD Bug: skia: Change-Id: I7f9abb3ecb1c7b4fd18a703198c54c6d8f5e1ef7 Reviewed-on: https://skia-review.googlesource.com/20429 Reviewed-by: Mike Reed <reed@google.com> Commit-Queue: Mike Reed <reed@google.com>
Diffstat (limited to 'src/core/SkFilterProc.h')
-rw-r--r--src/core/SkFilterProc.h134
1 files changed, 0 insertions, 134 deletions
diff --git a/src/core/SkFilterProc.h b/src/core/SkFilterProc.h
deleted file mode 100644
index 7348967fd0..0000000000
--- a/src/core/SkFilterProc.h
+++ /dev/null
@@ -1,134 +0,0 @@
-/*
- * Copyright 2008 The Android Open Source Project
- *
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- */
-
-
-#ifndef SkFilter_DEFINED
-#define SkFilter_DEFINED
-
-#include "SkMath.h"
-#include "SkFixed.h"
-
-typedef unsigned (*SkFilterProc)(unsigned x00, unsigned x01,
- unsigned x10, unsigned x11);
-
-const SkFilterProc* SkGetBilinearFilterProcTable();
-
-inline SkFilterProc SkGetBilinearFilterProc(const SkFilterProc* table,
- SkFixed x, SkFixed y)
-{
- SkASSERT(table);
-
- // convert to dot 2
- x = (unsigned)(x << 16) >> 30;
- y = (unsigned)(y << 16) >> 30;
- return table[(y << 2) | x];
-}
-
-inline SkFilterProc SkGetBilinearFilterProc22(const SkFilterProc* table,
- unsigned x, unsigned y)
-{
- SkASSERT(table);
-
- // extract low 2 bits
- x = x << 30 >> 30;
- y = y << 30 >> 30;
- return table[(y << 2) | x];
-}
-
-inline const SkFilterProc* SkGetBilinearFilterProc22Row(const SkFilterProc* table,
- unsigned y)
-{
- SkASSERT(table);
- // extract low 2 bits and shift up 2
- return &table[y << 30 >> 28];
-}
-
-inline SkFilterProc SkGetBilinearFilterProc22RowProc(const SkFilterProc* row,
- unsigned x)
-{
- SkASSERT(row);
- // extract low 2 bits
- return row[x << 30 >> 30];
-}
-
-///////////////////////////////////////////////////////////////////////////////
-
-typedef unsigned (*SkFilter32Proc)(uint32_t x00, uint32_t x01,
- uint32_t x10, uint32_t x11);
-
-const SkFilter32Proc* SkGetFilter32ProcTable();
-
-inline SkFilter32Proc SkGetFilter32Proc22(const SkFilter32Proc* table,
- unsigned x, unsigned y)
-{
- SkASSERT(table);
-
- // extract low 2 bits
- x = x << 30 >> 30;
- y = y << 30 >> 30;
- return table[(y << 2) | x];
-}
-
-inline const SkFilter32Proc* SkGetFilter32Proc22Row(const SkFilter32Proc* table,
- unsigned y)
-{
- SkASSERT(table);
- // extract low 2 bits and shift up 2
- return &table[y << 30 >> 28];
-}
-
-inline SkFilter32Proc SkGetFilter32Proc22RowProc(const SkFilter32Proc* row,
- unsigned x)
-{
- SkASSERT(row);
- // extract low 2 bits
- return row[x << 30 >> 30];
-}
-
-///////////////////////////////////////////////////////////////////////////////
-
-/** Special version of SkFilterProc. This takes the address of 4 ints, and combines them a byte at a
- time. AABBCCDD.
-*/
-typedef uint32_t (*SkFilterPtrProc)(const uint32_t*, const uint32_t*, const uint32_t*, const uint32_t*);
-
-const SkFilterPtrProc* SkGetBilinearFilterPtrProcTable();
-inline SkFilterPtrProc SkGetBilinearFilterPtrProc(const SkFilterPtrProc* table, SkFixed x, SkFixed y)
-{
- SkASSERT(table);
-
- // convert to dot 2
- x = (unsigned)(x << 16) >> 30;
- y = (unsigned)(y << 16) >> 30;
- return table[(y << 2) | x];
-}
-
-/** Given a Y value, return a subset of the proc table for that value.
- Pass this to SkGetBilinearFilterPtrXProc with the corresponding X value to get the
- correct proc.
-*/
-inline const SkFilterPtrProc* SkGetBilinearFilterPtrProcYTable(const SkFilterPtrProc* table, SkFixed y)
-{
- SkASSERT(table);
-
- y = (unsigned)(y << 16) >> 30;
- return table + (y << 2);
-}
-
-/** Given a subtable returned by SkGetBilinearFilterPtrProcYTable(), return the proc for the
- specified X value.
-*/
-inline SkFilterPtrProc SkGetBilinearFilterPtrXProc(const SkFilterPtrProc* table, SkFixed x)
-{
- SkASSERT(table);
-
- // convert to dot 2
- x = (unsigned)(x << 16) >> 30;
- return table[x];
-}
-
-#endif