aboutsummaryrefslogtreecommitdiffhomepage
path: root/samplecode
diff options
context:
space:
mode:
authorGravatar Mike Reed <reed@google.com>2016-12-07 13:41:57 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2016-12-07 19:13:32 +0000
commitfd87be8ffadb37a18aa7217dfbafb9500ca11159 (patch)
treed97eb596aa4f393822a5e1ba7171ac090cff1899 /samplecode
parentfc2e7e057d6ae49ba935c2580197bd8f9f316eec (diff)
hide emboss from everyone (except android for now)
BUG=skia: Change-Id: Ibd453b0a63948e3e4950f02459d7bc01a6ed26c5 Reviewed-on: https://skia-review.googlesource.com/5671 Commit-Queue: Mike Reed <reed@google.com> Reviewed-by: Derek Sollenberger <djsollen@google.com>
Diffstat (limited to 'samplecode')
-rw-r--r--samplecode/SampleAll.cpp2
-rw-r--r--samplecode/SampleEffects.cpp2
2 files changed, 3 insertions, 1 deletions
diff --git a/samplecode/SampleAll.cpp b/samplecode/SampleAll.cpp
index fc3a95ab88..a098eb6c16 100644
--- a/samplecode/SampleAll.cpp
+++ b/samplecode/SampleAll.cpp
@@ -247,7 +247,7 @@ static void apply_shader(SkPaint* paint, int index) {
paint->setRasterizer(rastBuilder.detach());
}
-#if 1
+#ifdef SK_SUPPORT_LEGACY_EMBOSSMASKFILTER
SkScalar dir[] = { SK_Scalar1, SK_Scalar1, SK_Scalar1 };
paint->setMaskFilter(SkBlurMaskFilter::MakeEmboss(
SkBlurMask::ConvertRadiusToSigma(SkIntToScalar(3)), dir,
diff --git a/samplecode/SampleEffects.cpp b/samplecode/SampleEffects.cpp
index c998052fab..8c6793eb67 100644
--- a/samplecode/SampleEffects.cpp
+++ b/samplecode/SampleEffects.cpp
@@ -28,9 +28,11 @@ static void paint_proc1(SkPaint* paint) {
}
static void paint_proc2(SkPaint* paint) {
+#ifdef SK_SUPPORT_LEGACY_EMBOSSMASKFILTER
SkScalar dir[3] = { 1, 1, 1};
paint->setMaskFilter(
SkBlurMaskFilter::MakeEmboss(SkBlurMask::ConvertRadiusToSigma(1), dir, 0.1f, 0.05f));
+#endif
}
static void paint_proc3(SkPaint* paint) {