removing GrDrawEffect

BUG=skia:

Committed: https://skia.googlesource.com/skia/+/8ddbe8b9366c8c59c4fb55f01f253de8a0b37d6e

R=bsalomon@google.com

Author: joshualitt@chromium.org

Review URL: https://codereview.chromium.org/571163002
diff --git a/include/gpu/GrEffect.h b/include/gpu/GrEffect.h
index 102b9d4..e925997 100644
--- a/include/gpu/GrEffect.h
+++ b/include/gpu/GrEffect.h
@@ -130,6 +130,11 @@
         ::operator delete(target, placement);
     }
 
+    /**
+      * Helper for down-casting to a GrEffect subclass
+      */
+    template <typename T> const T& cast() const { return *static_cast<const T*>(this); }
+
 protected:
     /**
      * Subclasses call this from their constructor to register coordinate transformations. The
@@ -155,13 +160,6 @@
         , fRequiresVertexShader(false) {}
 
     /**
-      * Helper for down-casting to a GrEffect subclass
-      */
-    template <typename T> static const T& CastEffect(const GrEffect& effect) {
-        return *static_cast<const T*>(&effect);
-    }
-
-    /**
      * If the effect subclass will read the destination pixel value then it must call this function
      * from its constructor. Otherwise, when its generated backend-specific effect class attempts
      * to generate code that reads the destination pixel it will fail.