From 0daf5dd7fc682c939325e16cac6f8aa2e1295060 Mon Sep 17 00:00:00 2001 From: reed Date: Mon, 11 Jan 2016 12:34:04 -0800 Subject: 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 --- samplecode/SampleAll.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'samplecode/SampleAll.cpp') 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 -- cgit v1.2.3