remove CreateLightingFilter from SkColorFilter
authorreed <reed@google.com>
Wed, 13 Jan 2016 18:43:09 +0000 (10:43 -0800)
committerCommit bot <commit-bot@chromium.org>
Wed, 13 Jan 2016 18:43:09 +0000 (10:43 -0800)
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

include/core/SkColorFilter.h
src/effects/SkColorMatrixFilter.cpp

index e89b2b1..c5d084a 100644 (file)
@@ -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.
index f24670e..ce6ca55 100644 (file)
@@ -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);
-}