diff options
author | reed <reed@google.com> | 2016-07-14 19:13:20 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-07-14 19:13:20 -0700 |
commit | 59779ae8ce316bf8b8082ec2df1683ccd38161f1 (patch) | |
tree | 4f6cbc1f8c5bfc3d390ae3c25811d501e3acfbcd /include | |
parent | 494c2b6fa125d85d99fb6e9b479f21f4f76c32bb (diff) |
remove unused TableMaskFilter
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2156463002
TBR=
Review-Url: https://codereview.chromium.org/2156463002
Diffstat (limited to 'include')
-rw-r--r-- | include/effects/SkTableMaskFilter.h | 66 |
1 files changed, 0 insertions, 66 deletions
diff --git a/include/effects/SkTableMaskFilter.h b/include/effects/SkTableMaskFilter.h deleted file mode 100644 index 757ddf2084..0000000000 --- a/include/effects/SkTableMaskFilter.h +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Copyright 2006 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 SkTableMaskFilter_DEFINED -#define SkTableMaskFilter_DEFINED - -#include "SkMaskFilter.h" -#include "SkScalar.h" - -/** \class SkTableMaskFilter - - Applies a table lookup on each of the alpha values in the mask. - Helper methods create some common tables (e.g. gamma, clipping) - */ -class SK_API SkTableMaskFilter : public SkMaskFilter { -public: - /** Utility that sets the gamma table - */ - static void MakeGammaTable(uint8_t table[256], SkScalar gamma); - - /** Utility that creates a clipping table: clamps values below min to 0 - and above max to 255, and rescales the remaining into 0..255 - */ - static void MakeClipTable(uint8_t table[256], uint8_t min, uint8_t max); - - static SkMaskFilter* Create(const uint8_t table[256]) { - return new SkTableMaskFilter(table); - } - - static SkMaskFilter* CreateGamma(SkScalar gamma) { - uint8_t table[256]; - MakeGammaTable(table, gamma); - return new SkTableMaskFilter(table); - } - - static SkMaskFilter* CreateClip(uint8_t min, uint8_t max) { - uint8_t table[256]; - MakeClipTable(table, min, max); - return new SkTableMaskFilter(table); - } - - SkMask::Format getFormat() const override; - bool filterMask(SkMask*, const SkMask&, const SkMatrix&, SkIPoint*) const override; - - SK_TO_STRING_OVERRIDE() - SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkTableMaskFilter) - -protected: - virtual ~SkTableMaskFilter(); - - void flatten(SkWriteBuffer&) const override; - -private: - SkTableMaskFilter(); - explicit SkTableMaskFilter(const uint8_t table[256]); - - uint8_t fTable[256]; - - typedef SkMaskFilter INHERITED; -}; - -#endif |