blob: db86c403691608d67a9427a3648c37ddd25aead8 [file] [log] [blame]
Kevin Lubick933ea8c2020-01-06 08:10:05 -05001// Adds in the code to use pathops with SkPath
2CanvasKit._extraInitializations = CanvasKit._extraInitializations || [];
3CanvasKit._extraInitializations.push(function() {
4 CanvasKit.SkPath.prototype.op = function(otherPath, op) {
5 if (this._op(otherPath, op)) {
6 return this;
7 }
8 return null;
9 };
10
11 CanvasKit.SkPath.prototype.simplify = function() {
12 if (this._simplify()) {
13 return this;
14 }
15 return null;
16 };
17});