Lines Matching refs:grCtx
75 var grCtx = this._MakeGrContext();
76 if (!grCtx) {
80 grCtx._context = ctx;
81 var oldDelete = grCtx.delete.bind(grCtx);
84 grCtx['delete'] = function() { function in CanvasKit.MakeWebGLContext
87 }.bind(grCtx);
89 GL.currentContext.grDirectContext = grCtx;
90 return grCtx;
115 CanvasKit.MakeOnScreenGLSurface = function(grCtx, w, h, colorspace, sc, st) { argument
116 if (!this.setCurrentContext(grCtx._context)) {
122 surface = this._MakeOnScreenGLSurface(grCtx, w, h, colorspace);
124 surface = this._MakeOnScreenGLSurface(grCtx, w, h, colorspace, sc, st);
129 surface._context = grCtx._context;
134 var grCtx = arguments[0];
135 if (!this.setCurrentContext(grCtx._context)) {
140 surface = this._MakeRenderTargetWH(grCtx, arguments[1], arguments[2]);
145 surface = this._MakeRenderTargetII(grCtx, arguments[1]);
153 surface._context = grCtx._context;