Lines Matching refs:CanvasKit
3 this._paint = new CanvasKit.SkPaint();
7 this._paint.setStrokeCap(CanvasKit.StrokeCap.Butt);
8 this._paint.setStrokeJoin(CanvasKit.StrokeJoin.Miter);
11 this._font = new CanvasKit.SkFont(null, 10);
13 this._strokeStyle = CanvasKit.BLACK;
14 this._fillStyle = CanvasKit.BLACK;
16 this._shadowColor = CanvasKit.TRANSPARENT;
24 this._globalCompositeOperation = CanvasKit.BlendMode.SrcOver;
25 this._imageFilterQuality = CanvasKit.FilterQuality.Low;
32 this._currentPath = new CanvasKit.SkPath();
33 this._currentTransform = CanvasKit.SkMatrix.identity();
133 case CanvasKit.BlendMode.SrcOver:
135 case CanvasKit.BlendMode.DstOver:
137 case CanvasKit.BlendMode.Src:
139 case CanvasKit.BlendMode.Dst:
141 case CanvasKit.BlendMode.Clear:
143 case CanvasKit.BlendMode.SrcIn:
145 case CanvasKit.BlendMode.DstIn:
147 case CanvasKit.BlendMode.SrcOut:
149 case CanvasKit.BlendMode.DstOut:
151 case CanvasKit.BlendMode.SrcATop:
153 case CanvasKit.BlendMode.DstATop:
155 case CanvasKit.BlendMode.Xor:
157 case CanvasKit.BlendMode.Plus:
160 case CanvasKit.BlendMode.Multiply:
162 case CanvasKit.BlendMode.Screen:
164 case CanvasKit.BlendMode.Overlay:
166 case CanvasKit.BlendMode.Darken:
168 case CanvasKit.BlendMode.Lighten:
170 case CanvasKit.BlendMode.ColorDodge:
172 case CanvasKit.BlendMode.ColorBurn:
174 case CanvasKit.BlendMode.HardLight:
176 case CanvasKit.BlendMode.SoftLight:
178 case CanvasKit.BlendMode.Difference:
180 case CanvasKit.BlendMode.Exclusion:
182 case CanvasKit.BlendMode.Hue:
184 case CanvasKit.BlendMode.Saturation:
186 case CanvasKit.BlendMode.Color:
188 case CanvasKit.BlendMode.Luminosity:
196 this._globalCompositeOperation = CanvasKit.BlendMode.SrcOver;
199 this._globalCompositeOperation = CanvasKit.BlendMode.DstOver;
202 this._globalCompositeOperation = CanvasKit.BlendMode.Src;
205 this._globalCompositeOperation = CanvasKit.BlendMode.Dst;
208 this._globalCompositeOperation = CanvasKit.BlendMode.Clear;
211 this._globalCompositeOperation = CanvasKit.BlendMode.SrcIn;
214 this._globalCompositeOperation = CanvasKit.BlendMode.DstIn;
217 this._globalCompositeOperation = CanvasKit.BlendMode.SrcOut;
220 this._globalCompositeOperation = CanvasKit.BlendMode.DstOut;
223 this._globalCompositeOperation = CanvasKit.BlendMode.SrcATop;
226 this._globalCompositeOperation = CanvasKit.BlendMode.DstATop;
229 this._globalCompositeOperation = CanvasKit.BlendMode.Xor;
232 this._globalCompositeOperation = CanvasKit.BlendMode.Plus;
235 this._globalCompositeOperation = CanvasKit.BlendMode.Plus;
242 this._globalCompositeOperation = CanvasKit.BlendMode.Multiply;
245 this._globalCompositeOperation = CanvasKit.BlendMode.Screen;
248 this._globalCompositeOperation = CanvasKit.BlendMode.Overlay;
251 this._globalCompositeOperation = CanvasKit.BlendMode.Darken;
254 this._globalCompositeOperation = CanvasKit.BlendMode.Lighten;
257 this._globalCompositeOperation = CanvasKit.BlendMode.ColorDodge;
260 this._globalCompositeOperation = CanvasKit.BlendMode.ColorBurn;
263 this._globalCompositeOperation = CanvasKit.BlendMode.HardLight;
266 this._globalCompositeOperation = CanvasKit.BlendMode.SoftLight;
269 this._globalCompositeOperation = CanvasKit.BlendMode.Difference;
272 this._globalCompositeOperation = CanvasKit.BlendMode.Exclusion;
275 this._globalCompositeOperation = CanvasKit.BlendMode.Hue;
278 this._globalCompositeOperation = CanvasKit.BlendMode.Saturation;
281 this._globalCompositeOperation = CanvasKit.BlendMode.Color;
284 this._globalCompositeOperation = CanvasKit.BlendMode.Luminosity;
307 case CanvasKit.FilterQuality.Low:
309 case CanvasKit.FilterQuality.Medium:
311 case CanvasKit.FilterQuality.High:
318 this._imageFilterQuality = CanvasKit.FilterQuality.Low;
321 this._imageFilterQuality = CanvasKit.FilterQuality.Medium;
324 this._imageFilterQuality = CanvasKit.FilterQuality.High;
334 case CanvasKit.StrokeCap.Butt:
336 case CanvasKit.StrokeCap.Round:
338 case CanvasKit.StrokeCap.Square:
345 this._paint.setStrokeCap(CanvasKit.StrokeCap.Butt);
348 this._paint.setStrokeCap(CanvasKit.StrokeCap.Round);
351 this._paint.setStrokeCap(CanvasKit.StrokeCap.Square);
374 case CanvasKit.StrokeJoin.Miter:
376 case CanvasKit.StrokeJoin.Round:
378 case CanvasKit.StrokeJoin.Bevel:
385 this._paint.setStrokeJoin(CanvasKit.StrokeJoin.Miter);
388 this._paint.setStrokeJoin(CanvasKit.StrokeJoin.Round);
391 this._paint.setStrokeJoin(CanvasKit.StrokeJoin.Bevel);
503 this._currentPath = new CanvasKit.SkPath();
511 this._paint.setStyle(CanvasKit.PaintStyle.Fill);
512 this._paint.setBlendMode(CanvasKit.BlendMode.Clear);
513 this._canvas.drawRect(CanvasKit.XYWHRect(x, y, width, height), this._paint);
531 clip.setFillType(CanvasKit.FillType.EvenOdd);
533 clip.setFillType(CanvasKit.FillType.Winding);
535 this._canvas.clipPath(clip, CanvasKit.ClipOp.Intersect, true);
590 iPaint.setFilterQuality(CanvasKit.FilterQuality.None);
606 var destRect = CanvasKit.XYWHRect(arguments[1], arguments[2],
608 var srcRect = CanvasKit.XYWHRect(0, 0, img.width(), img.height());
610 var destRect = CanvasKit.XYWHRect(arguments[5], arguments[6],
612 var srcRect = CanvasKit.XYWHRect(arguments[1], arguments[2],
633 paint.setStyle(CanvasKit.PaintStyle.Fill);
635 var alphaColor = CanvasKit.multiplyByAlpha(this._fillStyle, this._globalAlpha);
639 paint.setColor(CanvasKit.Color(0,0,0, this._globalAlpha));
661 this._currentPath.setFillType(CanvasKit.FillType.EvenOdd);
663 this._currentPath.setFillType(CanvasKit.FillType.Winding);
687 this._canvas.drawRect(CanvasKit.XYWHRect(x, y, width, height), fillPaint);
694 var blob = CanvasKit.SkTextBlob.MakeFromText(text, this._font);
726 var inverted = CanvasKit.SkMatrix.invert(this._currentTransform);
727 CanvasKit.SkMatrix.mapPoints(inverted, pts);
755 CanvasKit.FillType.Winding :
756 CanvasKit.FillType.EvenOdd);
779 temp.setFillType(CanvasKit.FillType.Winding);
838 var img = CanvasKit.MakeImage(imageData.data, imageData.width, imageData.height,
839 CanvasKit.AlphaType.Unpremul,
840 CanvasKit.ColorType.RGBA_8888);
841 var src = CanvasKit.XYWHRect(dirtyX, dirtyY, dirtyWidth, dirtyHeight);
842 var dst = CanvasKit.XYWHRect(x+dirtyX, y+dirtyY, dirtyWidth, dirtyHeight);
843 var inverted = CanvasKit.SkMatrix.invert(this._currentTransform);
864 var inverted = CanvasKit.SkMatrix.invert(this._currentTransform);
878 var combined = CanvasKit.SkMatrix.multiply(
880 CanvasKit.SkMatrix.invert(newState.ctm)
914 var inverted = CanvasKit.SkMatrix.rotated(-radians);
964 var inverted = CanvasKit.SkMatrix.scaled(1/sx, 1/sy);
998 return CanvasKit.SkMatrix.translated(this._shadowOffsetX/sx, this._shadowOffsetY/sy);
1006 var alphaColor = CanvasKit.multiplyByAlpha(this._shadowColor, this._globalAlpha);
1008 if (!CanvasKit.getColorComponents(alphaColor)[3]) {
1018 var blurEffect = CanvasKit.MakeBlurMaskFilter(CanvasKit.BlurStyle.Normal,
1037 paint.setStyle(CanvasKit.PaintStyle.Stroke);
1039 var alphaColor = CanvasKit.multiplyByAlpha(this._strokeStyle, this._globalAlpha);
1043 paint.setColor(CanvasKit.Color(0,0,0, this._globalAlpha));
1050 var dashedEffect = CanvasKit.MakeSkDashPathEffect(this._lineDashList, this._lineDashOffset);
1080 this._canvas.drawRect(CanvasKit.XYWHRect(x, y, width, height), strokePaint);
1087 var blob = CanvasKit.SkTextBlob.MakeFromText(text, this._font);
1108 var inverted = CanvasKit.SkMatrix.translated(-dx, -dy);
1120 var inverted = CanvasKit.SkMatrix.invert(newTransform);