diff options
author | reed <reed@google.com> | 2016-01-11 12:34:04 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-01-11 12:34:04 -0800 |
commit | 0daf5dd7fc682c939325e16cac6f8aa2e1295060 (patch) | |
tree | 9ce9e7832ff5b651bde6a762d4553cd12de13373 /samplecode/SampleAll.cpp | |
parent | 639475e375b7e62277ac5e5b96eadeaaa1afcddc (diff) |
move declaration of CreateLightingFilter into SkColorMatrixFilter
BUG=skia:4791
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1574023002
Review URL: https://codereview.chromium.org/1574023002
Diffstat (limited to 'samplecode/SampleAll.cpp')
-rw-r--r-- | samplecode/SampleAll.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/samplecode/SampleAll.cpp b/samplecode/SampleAll.cpp index 21d93bd8ae..ad3181f7cd 100644 --- a/samplecode/SampleAll.cpp +++ b/samplecode/SampleAll.cpp @@ -12,7 +12,7 @@ #include "Sk1DPathEffect.h" #include "Sk2DPathEffect.h" #include "SkBlurMaskFilter.h" -#include "SkColorFilter.h" +#include "SkColorMatrixFilter.h" #include "SkColorPriv.h" #include "SkCornerPathEffect.h" #include "SkDashPathEffect.h" @@ -385,7 +385,7 @@ protected: SkMaskFilter* embossFilter = SkEmbossMaskFilter::Create(sigma, light); SkXfermode* xfermode = SkXfermode::Create(SkXfermode::kXor_Mode); - SkColorFilter* lightingFilter = SkColorFilter::CreateLightingFilter( + SkColorFilter* lightingFilter = SkColorMatrixFilter::CreateLightingFilter( 0xff89bc45, 0xff112233); canvas->save(); @@ -551,7 +551,7 @@ protected: #if 01 int index = i % SK_ARRAY_COUNT(gLightingColors); - paint.setColorFilter(SkColorFilter::CreateLightingFilter( + paint.setColorFilter(SkColorMatrixFilter::CreateLightingFilter( gLightingColors[index].fMul, gLightingColors[index].fAdd))->unref(); #endif |