code: @Override
      public void resize(int width, int height) {
          if (mRadii == null) {
              mPath = null;
          } else {
  
              if (mPath == null)
                  mPath = new Path();
              else
                  mPath.reset();
  
  
              if (Build.VERSION.SDK_INT < Build.VERSION_CODES.LOLLIPOP)
                  mPath.addRoundRect(new RectF(0, 0, width, height), mRadii, Path.Direction.CW);
              else
                  mPath.addRoundRect(0, 0, width, height, mRadii, Path.Direction.CW);
          }
      }
docs: {@link net.qiujuer.genius.ui.drawable.TouchEffectDrawable.ClipFactory}