Lines Matching refs:CanvasKit
3 (function(CanvasKit){ argument
4 CanvasKit._extraInitializations = CanvasKit._extraInitializations || [];
5 CanvasKit._extraInitializations.push(function() {
7 CanvasKit.MakeSWCanvasSurface = function(idOrElement) {
17 var surface = CanvasKit.MakeSurface(canvas.width, canvas.height);
25 if (!CanvasKit.MakeCanvasSurface) {
26 CanvasKit.MakeCanvasSurface = CanvasKit.MakeSWCanvasSurface;
29 CanvasKit.MakeSurface = function(width, height) {
34 'colorType': CanvasKit.ColorType.RGBA_8888,
37 'alphaType': CanvasKit.AlphaType.Unpremul,
41 var pixelPtr = CanvasKit._malloc(pixelLen);
53 surface.getCanvas().clear(CanvasKit.TRANSPARENT);
58 CanvasKit.SkSurface.prototype.flush = function() {
63 var pixels = new Uint8ClampedArray(CanvasKit.buffer, this._pixelPtr, this._pixelLen);
71 CanvasKit.SkSurface.prototype.dispose = function() {
73 CanvasKit._free(this._pixelPtr);
78 CanvasKit.currentContext = CanvasKit.currentContext || function() {
82 CanvasKit.setCurrentContext = CanvasKit.setCurrentContext || function() {