aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar reed <reed@google.com>2016-01-13 10:43:09 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2016-01-13 10:43:09 -0800
commitfa2b3a376d93e1d611e48c3c2f31ec3198d53600 (patch)
tree0dc12f782a21d24b976b7098eccc1271caa6f2ac
parent04194f32f4f5ec9029357a18c0f1f9dc3404fc0c (diff)
remove CreateLightingFilter from SkColorFilter
All callers have converted over to SkColorMatrixFilter BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1583923002 Review URL: https://codereview.chromium.org/1583923002
-rw-r--r--include/core/SkColorFilter.h3
-rw-r--r--src/effects/SkColorMatrixFilter.cpp5
2 files changed, 0 insertions, 8 deletions
diff --git a/include/core/SkColorFilter.h b/include/core/SkColorFilter.h
index e89b2b1e4f..c5d084a22d 100644
--- a/include/core/SkColorFilter.h
+++ b/include/core/SkColorFilter.h
@@ -106,9 +106,6 @@ public:
*/
static SkColorFilter* CreateModeFilter(SkColor c, SkXfermode::Mode mode);
- // DEPRECATED -- call this from SkColorMatrixFilter instead -- see skbug.com/4791
- static SkColorFilter* CreateLightingFilter(SkColor mul, SkColor add);
-
/** Construct a colorfilter whose effect is to first apply the inner filter and then apply
* the outer filter to the result of the inner's.
* The reference counts for outer and inner are incremented.
diff --git a/src/effects/SkColorMatrixFilter.cpp b/src/effects/SkColorMatrixFilter.cpp
index f24670e4bc..ce6ca5538b 100644
--- a/src/effects/SkColorMatrixFilter.cpp
+++ b/src/effects/SkColorMatrixFilter.cpp
@@ -362,8 +362,3 @@ SkColorFilter* SkColorMatrixFilter::CreateLightingFilter(SkColor mul, SkColor ad
0);
return SkColorMatrixFilter::Create(matrix);
}
-
-// DEPRECTED -- remove this when chrome/android stop calling it
-SkColorFilter* SkColorFilter::CreateLightingFilter(SkColor mul, SkColor add) {
- return SkColorMatrixFilter::CreateLightingFilter(mul, add);
-}