aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/reveal.cpp
diff options
context:
space:
mode:
authorGravatar Florin Malita <fmalita@chromium.org>2017-05-30 14:26:18 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-05-30 20:34:29 +0000
commit64790a3714467300848971aa153aca8cea91cf7b (patch)
treeded356ba8c9696866654df7d7c85b43fa71685e8 /gm/reveal.cpp
parentf2ae2b2dbcbdcc31b72fa86ed79f1cc02220528d (diff)
Delete SkGaussianEdgeShader
No longer used. Change-Id: I65a61696060ca19f528066ea587e140798450e36 Reviewed-on: https://skia-review.googlesource.com/18132 Reviewed-by: Jim Van Verth <jvanverth@google.com> Commit-Queue: Florin Malita <fmalita@chromium.org>
Diffstat (limited to 'gm/reveal.cpp')
-rw-r--r--gm/reveal.cpp17
1 files changed, 1 insertions, 16 deletions
diff --git a/gm/reveal.cpp b/gm/reveal.cpp
index 3e465556ad..a793b2da54 100644
--- a/gm/reveal.cpp
+++ b/gm/reveal.cpp
@@ -9,7 +9,6 @@
#include "sk_tool_utils.h"
#include "SkAnimTimer.h"
#include "SkBlurMaskFilter.h"
-#include "SkGaussianEdgeShader.h"
#include "SkRRectsGaussianEdgeMaskFilter.h"
#include "SkPath.h"
#include "SkPathOps.h"
@@ -314,7 +313,6 @@ namespace skiagm {
class RevealGM : public GM {
public:
enum Mode {
- kGaussianEdge_Mode,
kBlurMask_Mode,
kRRectsGaussianEdge_Mode,
@@ -386,20 +384,7 @@ protected:
// The goal is to replace this clipped draw (which clips the
// shadow) with a draw using the geometric clip
- if (kGaussianEdge_Mode == fMode) {
- canvas->save();
- clipObj->clip(canvas);
-
- // Draw with GaussianEdgeShader
- SkPaint paint;
- paint.setAntiAlias(true);
- // G channel is an F6.2 radius
- int iBlurRad = (int)(4.0f * fBlurRadius);
- paint.setColor(SkColorSetARGB(255, iBlurRad >> 8, iBlurRad & 0xFF, 0));
- paint.setShader(SkGaussianEdgeShader::Make());
- drawObj->draw(canvas, paint);
- canvas->restore();
- } else if (kBlurMask_Mode == fMode) {
+ if (kBlurMask_Mode == fMode) {
SkPath clippedPath;
SkScalar sigma = fBlurRadius / 4.0f;