[canvaskit] Make SkImageShader from SkImage

This removes a few src/ includes as well, to avoid using private
implementations like we did.

Change-Id: Ic9a21d04a131c30e17dfca6d8ea45bdefd362aa7
Bug: skia:
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/206062
Reviewed-by: Mike Reed <reed@google.com>
diff --git a/modules/canvaskit/htmlcanvas/pattern.js b/modules/canvaskit/htmlcanvas/pattern.js
index 6691987..056f79f 100644
--- a/modules/canvaskit/htmlcanvas/pattern.js
+++ b/modules/canvaskit/htmlcanvas/pattern.js
@@ -61,8 +61,7 @@
   this._getShader = function(currentTransform) {
     // Ignore currentTransform since it will be applied later
     this._dispose();
-    this._shader = CanvasKit.MakeImageShader(this._image, this._tileX, this._tileY,
-                                             false, this._transform);
+    this._shader = this._image.makeShader(this._tileX, this._tileY, this._transform);
     return this._shader;
   }