aboutsummaryrefslogtreecommitdiffhomepage
path: root/samplecode/SampleAll.cpp
diff options
context:
space:
mode:
authorGravatar reed <reed@google.com>2016-01-11 12:34:04 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2016-01-11 12:34:04 -0800
commit0daf5dd7fc682c939325e16cac6f8aa2e1295060 (patch)
tree9ce9e7832ff5b651bde6a762d4553cd12de13373 /samplecode/SampleAll.cpp
parent639475e375b7e62277ac5e5b96eadeaaa1afcddc (diff)
move declaration of CreateLightingFilter into SkColorMatrixFilter
Diffstat (limited to 'samplecode/SampleAll.cpp')
-rw-r--r--samplecode/SampleAll.cpp6
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