aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar Mike Klein <mtklein@chromium.org>2018-07-12 10:28:30 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-07-12 15:01:58 +0000
commitd9c2e522ddab75f5702bb0c714c57711ade9c788 (patch)
tree75905bf0376a77aabe482616c32b44f4348c217b /src
parentbb5b7588d67aa3ed24f1b44ded654215e1818b2f (diff)
remove unused parts of SkModeColorFilter
Change-Id: Iaa2d1087b3211ec427d8260fb6d7f80a87c5f480 Reviewed-on: https://skia-review.googlesource.com/140983 Commit-Queue: Mike Klein <mtklein@chromium.org> Commit-Queue: Brian Osman <brianosman@google.com> Auto-Submit: Mike Klein <mtklein@chromium.org> Reviewed-by: Brian Osman <brianosman@google.com>
Diffstat (limited to 'src')
-rw-r--r--src/core/SkModeColorFilter.cpp2
-rw-r--r--src/core/SkModeColorFilter.h5
2 files changed, 0 insertions, 7 deletions
diff --git a/src/core/SkModeColorFilter.cpp b/src/core/SkModeColorFilter.cpp
index 7e1e26e91a..f02a296ab2 100644
--- a/src/core/SkModeColorFilter.cpp
+++ b/src/core/SkModeColorFilter.cpp
@@ -27,8 +27,6 @@
SkModeColorFilter::SkModeColorFilter(SkColor color, SkBlendMode mode) {
fColor = color;
fMode = mode;
- // cache
- fPMColor = SkPreMultiplyColor(fColor);
}
bool SkModeColorFilter::asColorMode(SkColor* color, SkBlendMode* mode) const {
diff --git a/src/core/SkModeColorFilter.h b/src/core/SkModeColorFilter.h
index c78d7897bf..138b00e30d 100644
--- a/src/core/SkModeColorFilter.h
+++ b/src/core/SkModeColorFilter.h
@@ -17,9 +17,6 @@ public:
return sk_sp<SkColorFilter>(new SkModeColorFilter(color, mode));
}
- SkColor getColor() const { return fColor; }
- SkPMColor getPMColor() const { return fPMColor; }
-
bool asColorMode(SkColor*, SkBlendMode*) const override;
uint32_t getFlags() const override;
@@ -46,8 +43,6 @@ private:
SkColor fColor;
SkBlendMode fMode;
- // cache
- SkPMColor fPMColor;
friend class SkColorFilter;